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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.