php
/**
* 单向字符串加密算法 不能用作密码加密
*/
if (crypt_std_des == 1)
{
echo "standard des: ".crypt("hello world")."\n";
}
else
{
echo "standard des not supported.\n";
}
if (crypt_ext_des == 1)
{
echo "extended des: ".crypt("hello world")."\n";
}
else
{
echo "extended des not supported.\n";
}
if (crypt_md5 == 1)
{
echo "md5: ".crypt("hello world")."\n";
}
else
{
echo "md5 not supported.\n";
}
if (crypt_blowfish == 1)
{
echo "blowfish: ".crypt("hello world");
}
else
{
echo "blowfish des not supported.";
}
?>
作者:k7gxn56











