mcrypt: generic_init failed
| From: | Adelaide Yip | Date: | Tue, 23 Nov 2004 13:18:35 +0000 |
| Subject: | mcrypt: generic_init failed | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-202727@lists.php.net to get a copy of this message | ||
Hi,
Our website uses mcrypt functions to encrypt and decrypt passwords
stored in the PostgreSQL database. The website encrypted/decrypted
passwords flawlessly under PHP 4.0.4, however, we recently upgraded the
server that the website is stored on to PHP 4.2.3.
Since then, each time a password is encrypted/decrypted using any of the
mcrypt-functions, the following error displays even though the code was
untouched:
Fatal error: generic_init failed in
/home/httpd/html/domainsunderdevelop/include/class.databaseconnection.php on line 498
Line 498 on class.databaseconnection.php is:
$NewString = mcrypt_cbc( $this->CIPHER, $this->KEY, $RawString, $Mode,
$iv );
We installed libmcrypt 2.4.9 after upgrading PHP to 4.2.3.
If you have any suggestions or ideas, please let me know.
Thanks in advance,
Adelaide