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:
Jason Sheets 2002-11-11 03:08:40 +00:00
parent 619f4c1757
commit 9aa989779f

View file

@ -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>