Updating info on 3DES/TripleDES

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@34039 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Ron Chmara 2000-10-18 04:08:37 +00:00
parent 21befe9994
commit 2cd1551c89

View file

@ -37,13 +37,13 @@
and <function>mcrypt_ofb</function>) can operate in both modes
which are named MCRYPT_ENCRYPT and MCRYPT_DECRYPT, respectively.
<example>
<title>Encrypt an input value with TripleDES in ECB mode</title>
<title>Encrypt an input value with TripleDES under 2.2.x in ECB mode</title>
<programlisting role="php">
&lt;?php
$key = "this is a very secret key";
$input = "Let us meet at 9 o'clock at the secret place.";
$encrypted_data = mcrypt_ecb (MCRYPT_TripleDES, $key, $input, MCRYPT_ENCRYPT);
$encrypted_data = mcrypt_ecb (MCRYPT_3DES, $key, $input, MCRYPT_ENCRYPT);
?&gt;
</programlisting>
</example>
@ -54,7 +54,7 @@ $encrypted_data = mcrypt_ecb (MCRYPT_TripleDES, $key, $input, MCRYPT_ENCRYPT);
If you linked against libmcrypt 2.4.x, these functions are still
available, but it is recommended that you use the advanced functions.
<example>
<title>Encrypt an input value with TripleDES in ECB mode</title>
<title>Encrypt an input value with TripleDES under 2.4.x in ECB mode</title>
<programlisting role="php">
&lt;?php
$key = "this is a very secret key";
@ -142,6 +142,11 @@ mcrypt_generic_end ($td);
listed by mcrypt as supported, you can safely assume that this
documentation is outdated.
<itemizedlist>
<listitem>
<simpara>
MCRYPT_3DES
</simpara>
</listitem>
<listitem>
<simpara>
MCRYPT_ARCFOUR_IV (libmcrypt 2.4.x only)
@ -309,7 +314,7 @@ mcrypt_generic_end ($td);
</listitem>
<listitem>
<simpara>
MCRYPT_TRIPLEDES
MCRYPT_TRIPLEDES (libmcrypt 2.4.x only)
</simpara>
</listitem>
<listitem>