What is the best way to encrypt a password to store in mysql databese? I mean in both ways ( encryption and decryption)?
I read about md5 is not enough since it's easly be decrypted....
What do you suggest i should do to hash passwords and decrypt it?
PHP
Last Comment
BR
8/22/2022 - Mon
ste5an
The best way? The best way is not to store passwords. Store a salted hash instead.
Dave Baldwin
Hashes like MD5 and SHA are one-way functions. MD5 takes some serious computing power to break it. SHA takes more. Where there is no financial reward for 'breaking' the passwords, MD5 is still used because it is good enough.
Thank you all,
So i should use salted hash and to store passwords, when i check the passwords i actually check the hash version of the password to compare if it is valid or not?