Jump to content
Larry Ullman's Book Forums

Recommended Posts

Hello.

I've been trying to determine the best encryption method for passwords on my site. I've used sha1 as is in the book. Can you please explain why this is the best method, if you believe it is, for securing passwords on my site rather than md5 or crypt, etc?

Thanks

Link to comment
Share on other sites

Probably should add that (as Larry states in the book) there is a difference between encryption functions and hash functions.

 

Encrypted information can be decrypted, so you'd probably want to encrypt things like credit card numbers, PIN numbers, etc., whereas things that have been hashed cannot be recovered.

  • Upvote 1
Link to comment
Share on other sites

Agreed, and I am aware of the difference. I guess I'm looking for which I should be using. Now I'm trying to have the user changed their password, when I print the query the crypted password passing is not matching the password that was crypted when the user registered, and is already in the database.

Link to comment
Share on other sites

 Share

×
×
  • Create New...