- Changed the second example

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@32723 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Derick Rethans 2000-09-15 17:48:37 +00:00
parent 13b81a2720
commit 050979d01b

View file

@ -60,7 +60,7 @@ $encrypted_data = mcrypt_ecb (MCRYPT_TripleDES, $key, $input, MCRYPT_ENCRYPT);
$key = "this is a very secret key";
$input = "Let us meet at 9 o'clock at the secret place.";
$td = mcrypt_module_open (MCRYPT_TripleDES, "", MCRYPT_MODE_ECB);
$td = mcrypt_module_open (MCRYPT_TripleDES, "", MCRYPT_MODE_ECB, "");
$iv = mcrypt_create_iv (mcrypt_enc_get_iv_size ($td), MCRYPT_RAND);
mcrypt_generic_init ($td, $key, $iv);
$encrypted_data = mcrypt_generic ($td, $input);