December 15, 2021 06:48 am GMT
Original Link: https://dev.to/manuthecoder/what-algorithm-do-you-use-to-store-your-passwords-5ci9
what algorithm do you use to store your passwords?
Yes, technically, you should be using Argon2 or Bcrypt or PBKDF2.
Argon2 is actually really secure.
Argon2 is modern ASIC-resistant and GPU-resistant secure key derivation function. It has better password cracking resistance (when configured correctly) than PBKDF2, Bcrypt and Scrypt (for similar configuration parameters for CPU and RAM usage).
If anyone here uses md5, sha512, sha256, or any weird hashing algorithms, I'll be upset.
This was me when i started PHP:
$password = md5(md5(md5(md5($_GET['password']))));
The correct way:
$password = password_hash($_POST["password"], PASSWORD_ARGON2I);
Original Link: https://dev.to/manuthecoder/what-algorithm-do-you-use-to-store-your-passwords-5ci9
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To