mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Further example updating
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@103291 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
619f4c1757
commit
9aa989779f
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<reference id="ref.mcrypt">
|
||||
<title>Mcrypt Encryption Functions</title>
|
||||
<titleabbrev>mcrypt</titleabbrev>
|
||||
|
@ -132,7 +132,7 @@
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$key = "this is a very secret key";
|
||||
$key = "this is a secret key";
|
||||
$input = "Let us meet at 9 o'clock at the secret place.";
|
||||
|
||||
$encrypted_data = mcrypt_ecb (MCRYPT_3DES, $key, $input, MCRYPT_ENCRYPT);
|
||||
|
@ -159,6 +159,7 @@ $encrypted_data = mcrypt_ecb (MCRYPT_3DES, $key, $input, MCRYPT_ENCRYPT);
|
|||
mcrypt_generic_init ($td, $key, $iv);
|
||||
$encrypted_data = mcrypt_generic ($td, $input);
|
||||
mcrypt_generic_deinit ($td);
|
||||
mcrypt_module_close ($td);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
Loading…
Reference in a new issue