PHP 5.3.27中password_hash的最佳替代方案? [英] Best alternative for password_hash in PHP 5.3.27?

查看:59
本文介绍了PHP 5.3.27中password_hash的最佳替代方案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在互联网上寻找加密数据库密码的最佳选择.我发现 password_hash()是最好的选择,但是后来我看到它仅适用于PHP 5.5+.显然,我的主机的版本为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.

推荐答案

下面的库为您提供了php<5.5

The library below gives you password_hash for php < 5.5

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

这篇关于PHP 5.3.27中password_hash的最佳替代方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆