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.
Since I am not the supervisor thing, I can not upgrade PHP to a version that supports it.
Is there any hack for using CRYPT_BLOWFISH
on PHP 5.2?
and,
$hash_key = crypt($something, '$2a$anySalt');
is pasting '$2a$' at the very first side correct?
quite confused.
P.s. If I use crypt()
with CRYPT_BLOWFISH
, will bcrypt work well in the crypt()
function?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…