note 15068 deleted from function.mcrypt-create-iv by derick

From: Date: Sun, 12 May 2002 15:42:50 +0000
Subject: note 15068 deleted from function.mcrypt-create-iv by derick
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-30525@lists.php.net to get a copy of this message
The example above does not work on my system as mcrypt_get_block_size() requires 2 arguments: the following works instead (insert the appropriate cipher and mode for your code)... $cipher = 'twofish'; $mode = 'ecb'; $block_size = mcrypt_get_block_size ($cipher,$mode); $iv = mcrypt_create_iv ($block_size, MCRYPT_DEV_RANDOM);

« previous php.notes (#30525) next »