mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
21befe9994
commit
2cd1551c89
1 changed files with 9 additions and 4 deletions
|
@ -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">
|
||||
<?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);
|
||||
?>
|
||||
</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">
|
||||
<?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>
|
||||
|
|
Loading…
Reference in a new issue