Encrypting passwords for a database using one-way hash technique (SHA1)


/ Published in: Ruby
Save to your folder(s)

Before you save a password to a database, it may make sense to encrypt it. That way when you do some user authentication, you can compare the users submitted password to the one on the database.


Copy this code and paste it in your HTML
  1. https://www.chrisjmendez.com/2007/10/21/ruby-encrypting-passwords-for-a-database-using-one-way-hash-technique-sha1/

URL: https://www.chrisjmendez.com/2007/10/21/ruby-encrypting-passwords-for-a-database-using-one-way-hash-technique-sha1/

Report this snippet


Comments


You need to login to view comments.