I want to use crypt() CRYPT_BLOWFISH hashing. Since PHP version is 5.2.14, CRYPT_BLOWFISH is 0.
So, I install CRYPT_BLOWFISH using the following command:
pear install Crypt_Blowfish-1.1.0RC2
It shows Crypt_Blowfish-1.1.0RC2 is installed. However, echo CRYPT_BLOWFISH is still 0.
How can I use CRYPT_BLOWFISH hashing if I do not upgrade my PHP version?
PEAR modules don’t add features to stock PHP, so it isn’t going to affect constants like
CRYPT_BLOWFISH, nor can you use the standard functions. You’ll need to use the equivalents from theCrypt_Blowfishpackage.There’s a usage example on the PEAR docs for Crypt_Blowfish.