Adam_Duski Posted February 20, 2014 Share Posted February 20, 2014 Hey , i have a problem in encrypting a password in mysql in the register form if anyone registered make their password encrypt in mysql database but when i want to login i must used the encrypting password ,, is there's a way to use that password i entered in register form for e.g ( 1234 ) not the encrypted password Quote Link to comment Share on other sites More sharing options...
jairathnem Posted February 20, 2014 Share Posted February 20, 2014 Now-a-days encrypting with MD5,SHA1 isnt secure. Use predefined library like phpass. check this : http://stackoverflow.com/questions/1581610/how-can-i-store-my-users-passwords-safely/1581919#1581919 Quote Link to comment Share on other sites More sharing options...
mac_gyver Posted February 20, 2014 Share Posted February 20, 2014 the hash method you use during registration when the password was stored in the database table must be applied to the password during login so that you can determine if the password that was entered is the same one supplied during registration. if you are using a hash method that stores the 'salt' as part of the resulting hash value, you will actually need to retrieve the stored value from the database table and use the hash's 'check' function to determine if the entered password produces the same hash values. 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.