mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
- CS.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@165310 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
0df628951c
commit
afb80f672f
1 changed files with 9 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.crypt">
|
||||
<refnamediv>
|
||||
|
@ -126,17 +126,21 @@ $hash = crypt($password, substr($password, 0, 2));
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
if (CRYPT_STD_DES == 1)
|
||||
if (CRYPT_STD_DES == 1) {
|
||||
echo 'Standard DES: ' . crypt('rasmuslerdorf', 'rl') . "\n";
|
||||
}
|
||||
|
||||
if (CRYPT_EXT_DES == 1)
|
||||
if (CRYPT_EXT_DES == 1) {
|
||||
echo 'Extended DES: ' . crypt('rasmuslerdorf', '_J9..rasm') . "\n";
|
||||
}
|
||||
|
||||
if (CRYPT_MD5 == 1)
|
||||
if (CRYPT_MD5 == 1) {
|
||||
echo 'MD5: ' . crypt('rasmuslerdorf', '$1$rasmusle$') . "\n";
|
||||
}
|
||||
|
||||
if (CRYPT_BLOWFISH == 1)
|
||||
if (CRYPT_BLOWFISH == 1) {
|
||||
echo 'Blowfish: ' . crypt('rasmuslerdorf', '$2a$07$rasmuslerd...........$') . "\n";
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
Loading…
Reference in a new issue