wolfborg / Kanji2000-Website

A Japanese kanji quiz/review website.
1 stars 0 forks source link

Password hashing in PHP7 #10

Closed wolfborg closed 4 years ago

wolfborg commented 4 years ago

When this project was setup, it used PHP5 and had mcrypt to salt during the password hashing process. As it turns out, mcrypt is deprecated now and registering accounts won't work without it. Apparently PHP7 has easier to use password_hash() and password_verify() functions that I can use for this though, so I'll set that up and test it and update documentation.

wolfborg commented 4 years ago

Password hashing should now work for PHP5 >= 5.5.0 and PHP7. Anything older and you'll likely need to edit the register.php and login.php files (and possible the user hash database field).