|
Posted by Tom Rogers on 04/13/05 02:56
Hi,
Wednesday, April 13, 2005, 6:04:05 AM, you wrote:
MH> I get the following error when I try your suggestion:
MH> Unknown error type: [8] Undefined variable: iv
MH> Code:
$key = md5($this->>_cypherkey);
MH> $key = substr($key, 0, mcrypt_enc_get_key_size($this->td));
MH> $iv_size = mcrypt_enc_get_iv_size($this->td);
MH> #$iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);
MH> $iv = pack("a".$iv_size,$iv);
Yes I forgot to put $iv = 0; before that line.
--
regards,
Tom
Navigation:
[Reply to this message]
|