Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Password Hashing

I am creating a web application which stores users passwords. I was wondering what are the best methods / algorithms that a programmer can use to hash passwords?

like image 682
Jamal Khan Avatar asked Dec 17 '22 10:12

Jamal Khan


1 Answers

Key strengthening techniques such as bcrypt or PBKDF2 are generally considered better than plain hashes since cracking them requires more resources. The downside of this is that generating and verifying them also requires more resources; your resources.

Regardless of exactly which algorithm you choose, always use a suitable, per-user salt.

like image 99
LukeH Avatar answered Mar 11 '23 06:03

LukeH