1

I just want some simple code on how to hash a password(i read about the function crypt()???) because apparently md5 and sha isn't good enough... and then also how to add salts? my main worry is how i will compare them afterwards with the salt implemented... i know how to write and read from the database. I just need a code snippet on the actual hashing process and the comparing process. I understand all the concepts on salts and hashing, I am just not too sure of the code. Thanks a lot everyone.

Oh also if you could it would help if you could also show how to prevent timing attacks.

  • You might enjoy this article: https://crackstation.net/hashing-security.htm it describes hash/salting concepts and provides a PHP implementation – Firefly Jun 20 '15 at 04:33

0 Answers0