开发者

PHP CRYPT_BLOWFISH install

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜