Hi everyone!
I need help with the mcrypt function. My server is running apache 1.3.17 and PHP 4.07 with mcrypt 2.4.x successfully compiled. However, following warning came out when i try the mcrypt.
"Warning: Unknown list entry type in request shutdown (0)...."
functions i used are copy from the online manual..as follow
function enc($data) {
$keysize = "today is Thursday";
$td = mcrypt_module_open (MCRYPT_TripleDES, "", MCRYPT_MODE_ECB, "");
$iv = mcrypt_create_iv (mcrypt_enc_get_iv_size ($td), MCRYPT_RAND);
$encdata = mcrypt_ecb (MCRYPT_TripleDES,($keysize), $data, MCRYPT_ENCRYPT, $iv);
$hextext=bin2hex($encdata);
return $hextext; }
function hex2bin($data) {
$len = strlen($data);
return pack("H" . $len, $data);
}
Please advice.. and thanks!
from,
Desmond