Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Tripcode testing thread

Name: Anonymous 2007-08-30 5:50 ID:SUIBJgzE

ITT I will perform some saged experiments with tripcodes.

Name: Anonymous 2008-01-02 6:52

>>319

<?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

?>

Newer Posts