password_debug.php
来自「Internet Task Management System可以让用户分配和管」· PHP 代码 · 共 55 行
PHP
55 行
<?php
echo "CRYPT_SALT_LENGTH is:";
echo CRYPT_SALT_LENGTH;
echo "<br><br>";
echo "CRYPT_STD_DES - Standard DES-based encryption with a two character salt<br>";
echo "Is CRYPT_STD_DES supported on your system? (1=Yes, 0=No)<br>";
echo CRYPT_STD_DES;
echo "<br><br>CRYPT_EXT_DES - Extended DES-based encryption with a nine character salt<br>";
echo "Is CRYPT_EXT_DES supported on your system? (1=Yes, 0=No)<br>";
echo CRYPT_EXT_DES;
echo "<br><br>CRYPT_MD5 - MD5 encryption with a twelve character salt starting with $1$<br>";
echo "Is CRYPT_MD5 supported on your system? (1=Yes, 0=No)<br>";
echo CRYPT_MD5;
echo "<br><br>CRYPT_BLOWFISH - Blowfish encryption with a sixteen character salt starting with $2$<br>";
echo "Is CRYPT_BLOWFISH supported on your system? (1=Yes, 0=No)<br>";
echo CRYPT_BLOWFISH;
echo "<br><br>";
echo "<hr>";
echo "<br><br>";
echo "Output of crypt('root', substr('.bxZh9KCGVIvI', 0, 2)) :<br>";
echo crypt('root', substr('.bxZh9KCGVIvI', 0, 2));//encrypt the password
echo "<br><br>";
echo "Output of crypt('root', '.bxZh9KCGVIvI') :<br>";
echo crypt('root', '.bxZh9KCGVIvI');//encrypt the password
echo "<br><br>";
echo "Output of crypt('root', substr('root', 0, 2)) :<br>";
echo crypt('root', substr('root', 0, 2));
echo "<br><br>";
echo "Output of crypt('root') :<br>";
echo crypt('root');
echo "<br><br>";
echo "Output of crypt('root', 'root') :<br>";
echo crypt('root', 'root');
echo "<br><br>";
echo "Output of crypt('root', crypt('root')) :<br>";
echo crypt('root', crypt('root'));
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?