genzedu777 Posted January 2, 2011 Share Posted January 2, 2011 Hi, My understanding of 'SHA' command is to encrypt the password, however is there a way to decrypt the password after the encryption? Thanks $query = "INSERT INTO mismatch_user (username, password, join_date) VALUES ('$username', SHA('$password1'), NOW())"; Quote Link to comment Share on other sites More sharing options...
mmarif4u Posted January 2, 2011 Share Posted January 2, 2011 Nope Quote Link to comment Share on other sites More sharing options...
revraz Posted January 2, 2011 Share Posted January 2, 2011 SHA is not encryption, it's a hash. Quote Link to comment Share on other sites More sharing options...
mmarif4u Posted January 2, 2011 Share Posted January 2, 2011 SHA is not encryption, it's a hash. Another good point. Quote Link to comment Share on other sites More sharing options...
genzedu777 Posted January 2, 2011 Author Share Posted January 2, 2011 Hi all, Thanks for the kind advice. So if I would like to decrypt password, I would have to use 'decrypt' function code instead of 'hash' code? May I know what is the difference between decrypt and hash code? Thanks Quote Link to comment Share on other sites More sharing options...
trq Posted January 2, 2011 Share Posted January 2, 2011 One is secure (hash), the other isn't. Quote Link to comment Share on other sites More sharing options...
genzedu777 Posted January 2, 2011 Author Share Posted January 2, 2011 Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.