简体   繁体   English

在php 5.2.6中访问bcrypt的最简单方法?

[英]Simplest way to get access to bcrypt in php 5.2.6?

I want to up my password hashing security with bcrypt, but I'm stuck on php 5.2.6 (due to being on debian 5.0). 我想使用bcrypt来提高密码哈希安全性,但是我被困在php 5.2.6上(由于使用的是debian 5.0)。 What would the the least invasive way to do so? 最小的侵入方式是什么?

Apparently the suhosin patch bundles some kind of bcrypt implementation but I don't know if there will be performance issues and I don't know how to squash the changes to sessions that come with suhosin. 显然,suhosin修补程序捆绑了某种bcrypt实现,但我不知道是否会出现性能问题,也不知道如何压缩suhosin随附的会话的更改。

Alternatively I could persue an upgrade from php 5.2.6 to php 5.3, which has builtin fallback support for bcrypt, but then I expect I'll have to deal with compatibility issues from upgrading. 另外,我可以说服从php 5.2.6升级到php 5.3,该版本已内置对bcrypt的后备支持,但是我希望我必须处理升级带来的兼容性问题。

Alternatively I would love to just be able to apt-get install server/external software support for bcrypt in debian if there is some way to do that. 另外,如果有某种方法,我希望能够在debian中获得对bcrypt的安装服务器/外部软件支持。

What's the simplest approach? 最简单的方法是什么?

Simplest approach is to just install a newer version of PHP. 最简单的方法是只安装更新版本的PHP。 Dotdeb has one: Dotdeb有一个:

deb http://php53.dotdeb.org/ lenny all

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM