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

TRIPCODE QUINE!!!!

Name: faggot !Ep8pui8Vw2 2007-08-28 21:19 ID:8YbuJbma

Can you hack it /PROG/?

Name: Anonymous 2007-08-29 4:45 ID:7E9J51VB

>>9
Well, let's take a look at one of the first implementations of the tripcode algo:

<?php
function tripcode($name)
{
    if(ereg("(#|!)(.*)", $name, $matches))
    {
        $cap  = $matches[2];
        $cap  = strtr($cap,"&amp;", "&");
        $cap  = strtr($cap,",", ",");
        $salt = substr($cap."H.",1,2);
        $salt = ereg_replace("[^\.-z]",".",$salt);
        $salt = strtr($salt,":;<=>?@[\\]^_`","ABCDEFGabcdef");
        return substr(crypt($cap,$salt),-10)."";
    }
}
?>


echo tripcode("moot#faggot"); returns Ep8pui8Vw2.

Trying to create a 'tripcode quine' in this manner can't be done. It's about as feasible as an 'sha1 quine', so to speak.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List