Jump to content

md5 or salt?


$php_mysql$

Recommended Posts

thanks bro and for login auth how could i use it?

 

Exactly the same way you create it. You take the password the user enters on login and apply the EXACT same hashing/salting algorithym and compare it to the value in the database. I would highly suggest creating a single function to create your hashed value to use when storing new password and for comparing passwords at login. That will ensure you are doing exactly the same thing in both instances.

Link to comment
https://forums.phpfreaks.com/topic/217586-md5-or-salt/#findComment-1129596
Share on other sites

thanks bro and for login auth how could i use it?

 

Exactly the same way you create it. You take the password the user enters on login and apply the EXACT same hashing/salting algorithym and compare it to the value in the database. I would highly suggest creating a single function to create your hashed value to use when storing new password and for comparing passwords at login. That will ensure you are doing exactly the same thing in both instances.

 

thanks that was a good suggestion  ;)

Link to comment
https://forums.phpfreaks.com/topic/217586-md5-or-salt/#findComment-1129599
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.