Name: Anonymous 2007-08-30 5:50 ID:SUIBJgzE
ITT I will perform some saged experiments with tripcodes.
<?php
function tripcode($plain)
{
$salt = substr($plain."H.",1,2);
$salt = ereg_replace("[^\.-z]",".",$salt);
$salt = strtr($salt,":;<=>?@[\\]^_`","ABCDEFGabcdef");
return substr(crypt($plain,$salt),-10);
}
echo tripcode("tripcode"); // Outputs 3GqYIJ3Obs
?>