HostingDirect
New member
I am having a very strange mcrypt problem since I upgraded to PHP 4.1.2. When I try to log into my program looks like I get logged in but I get the following error over and over.
=========================
Warning: key size is 0 in /home/virginia/public_html/inc/generic.php on line 399
Warning: mcrypt_generic_init: Key length incorrect in /home/virginia/public_html/inc/generic.php on line 399
=========================
function crypt_init()
{
$td = mcrypt_module_open (MCRYPT_CAST_256, "", MCRYPT_MODE_ECB, "");
$iv = mcrypt_create_iv (mcrypt_enc_get_iv_size ($td), MCRYPT_RAND);
mcrypt_generic_init ($td, $key, $iv);
return $iv;
}
This the phpinfo to my server http://hdllc.net/tools/phpinfo.php
Any ideas what changed in 4.1.2
Thanks!
=========================
Warning: key size is 0 in /home/virginia/public_html/inc/generic.php on line 399
Warning: mcrypt_generic_init: Key length incorrect in /home/virginia/public_html/inc/generic.php on line 399
=========================
function crypt_init()
{
$td = mcrypt_module_open (MCRYPT_CAST_256, "", MCRYPT_MODE_ECB, "");
$iv = mcrypt_create_iv (mcrypt_enc_get_iv_size ($td), MCRYPT_RAND);
mcrypt_generic_init ($td, $key, $iv);
return $iv;
}
This the phpinfo to my server http://hdllc.net/tools/phpinfo.php
Any ideas what changed in 4.1.2
Thanks!
Last edited: