在不支持它的php 5.2上使用CRYPT_BLOWFISH [英] to use CRYPT_BLOWFISH on php 5.2 that doesn't support it
问题描述
我正在PHP 5.2上运行我的页面,该页面不支持CRYPT_BLOWFISH
但支持CRYPT_MD5
,并且听说河豚比md5安全得多.
I am running my page on PHP 5.2 that does not support CRYPT_BLOWFISH
but CRYPT_MD5
, and have heard that the blowfish is much more safer than md5.
由于我不是管理员,所以无法将PHP升级到支持它的版本.
Since I am not the supervisor thing, I can not upgrade PHP to a version that supports it.
在PHP 5.2上使用CRYPT_BLOWFISH
是否存在任何黑客手段?
Is there any hack for using CRYPT_BLOWFISH
on PHP 5.2?
和
$hash_key = crypt($something, '$2a$anySalt');
在第一面粘贴'$ 2a $'是否正确?
is pasting '$2a$' at the very first side correct?
很困惑.
P.s.如果我将 crypt()
与CRYPT_BLOWFISH
一起使用,bcrypt在crypt()
函数中能否正常工作?
P.s. If I use crypt()
with CRYPT_BLOWFISH
, will bcrypt work well in the crypt()
function?
推荐答案
您可以使用 PHPASS ,它具有支持系统的后备功能不支持CRYPT_BLOWFISH的代码.否则,您将无法真正使用我所知道的PHP中的bcrypt.
You can use PHPASS which has fallbacks to support systems that don't support CRYPT_BLOWFISH. Otherwise you can't really use bcrypt from PHP that I know of.
这篇关于在不支持它的php 5.2上使用CRYPT_BLOWFISH的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!