Best alternative for password_hash in PHP 5.3.27?

筅森魡賤 提交于 2019-12-12 11:19:46

问题


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.


回答1:


The library below gives you password_hash for php < 5.5

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



来源:https://stackoverflow.com/questions/20229058/best-alternative-for-password-hash-in-php-5-3-27

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!