我一直在互联网上搜索加密数据库密码的最佳选项。我发现password_hash()
是最好的选择,但后来我发现它只适用于PHP 5.5+。显然我的主机版本是5.3.27。我一直在寻找最好的替代品,但找不到任何好的。
下面的库为您提供php<5.5
https://github.com/ircmaxell/password_compat.git
我一直在互联网上搜索加密数据库密码的最佳选项。我发现password_hash()
是最好的选择,但后来我发现它只适用于PHP 5.5+。显然我的主机版本是5.3.27。我一直在寻找最好的替代品,但找不到任何好的。
下面的库为您提供php<5.5
https://github.com/ircmaxell/password_compat.git