Location: PHPKode > projects > Internet Task Management System > itms_mysql_build_0111/password_debug.php
<?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'));

?>
Return current item: Internet Task Management System