开发者

PHP CRYPT_BLOWFISH install

开发者 https://www.devze.com 2023-03-23 01:27 出处:网络
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:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消