Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best alternative for password_hash in PHP 5.3.27?

I've been searching around the internet for the best option to encrypt passwords for databases. I've found that password_hash() is the best option, but then I saw that it is only for PHP 5.5+. Apparently my host has version 5.3.27. And I've been searching for the best alternative but couldn't find anything good.

like image 805
Baspetersnl Avatar asked Feb 15 '23 13:02

Baspetersnl


1 Answers

The library below gives you password_hash for php < 5.5

https://github.com/ircmaxell/password_compat.git

like image 107
Matthew Avatar answered Feb 17 '23 11:02

Matthew