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 the Crypt_Blowfish
package.
There's a usage example on the PEAR docs for Crypt_Blowfish.
精彩评论