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

Trip-codes

Name: Anonymous 2007-08-15 9:47 ID:rAGjFXj3

What's a good way to generate trip codes like 4chan uses?  Taking the user IP as an argument.

Name: Anonymous 2009-08-18 4:38

$cap = mb_convert_encoding($cap, 'SJIS', 'UTF-8');



$salt = substr($cap . 'H..', 1, 2);

$salt = ereg_replace('[^\.-z]', '.', $salt);

$salt = strtr($salt, ':;<=>?@[\\]^_`', 'ABCDEFGabcdef');


$trip = substr(crypt($cap, $salt), -10);


Now, what are we talking about again?

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