在PHP IIS上使用mcrypt_create_iv [英] Using mcrypt_create_iv on PHP IIS
问题描述
我正在尝试在我们的网站上设置密码设置,并在 https:/中找到了PBKDF2功能. /defuse.ca/php-pbkdf2.htm
尝试时,我得到:
I'm trying to set up password salting on our website, and found the PBKDF2 functions at https://defuse.ca/php-pbkdf2.htm
When I try it, I get:
致命错误:mcrypt_create_iv():无法收集足够的随机数 第23行的include \ PBKDF2.php中的数据
Fatal error: mcrypt_create_iv(): Could not gather sufficient random data in include\PBKDF2.php on line 23
我不确定是否需要做任何事情来完成这项工作.它在IIS7.5上运行
I'm not sure if I need to do anything to make this work. It's running on IIS7.5
推荐答案
我使用的是PHP 5.3.6,它显然与mcrypt_create_iv()有bug.
切换到最新版本5.4.7并开始工作.
I was using PHP 5.3.6, which apparently has a bug with mcrypt_create_iv().
Switched to the latest version 5.4.7 and it started working.
这篇关于在PHP IIS上使用mcrypt_create_iv的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!