mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
- 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:
parent
13b81a2720
commit
050979d01b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue