Page 1 of 1

Tripcode

Posted: Thu Dec 08, 2005 8:33 pm
by Ambush Commander
Hi, I want to add a tripcode to my application

Tripcodes should be:
* Small

Tripcodes are flexible in that:
* Inputs are generally small
* They can use any printable character

Would a truncated (say, 10 letters of an) md5() hash of the secret key, username and password work? Or would a full md5 be preferable (even though it's much longer)? It appears sha256() is too big for tripcodes...

Posted: Fri Dec 09, 2005 9:56 am
by Maugrim_The_Reaper
Depending on the user base size - would seem to be workable using MD5. Like everything similar there's a small chance of a collision, but in reality how likely is that for your use?