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

Tripcodes

Name: Anonymous 2018-10-01 4:03

How are tripcodes generated?

Name: Anonymous 2018-10-01 7:10

some kind of hashing algorithm

Name: Anonymous 2018-10-01 15:03

>>2
wow, thanks for the extremely specific description

excellent post!

Name: Anonymous 2018-10-01 15:34

>>3
no problem

Name: Anonymous 2018-10-01 15:37

Are you writing a textboard software?

Name: Anonymous 2018-10-01 15:40

>>5
no, I want to write a tripcode finder

I know there are plenty of good ones already, but I want to write my own

Name: Anonymous 2018-10-01 16:25

>>6
The algorithm is:
1. convert the input to Shift JIS. (you can skip that if you don't need japanese tripcodes)
2. Generate the salt as follows:
- Take the second and third characters of the string obtained by appending H.. to the end of the input.
- Replace any characters not between . and z with ..
- Replace any of the characters in :;<=>?@[\]^_` with the corresponding character from ABCDEFGabcdef
3. Call the crypt() function with the input and salt.
4. Return the last 10 characters.

You need the old Unix crypt function (DES), see man 3 crypt.

shiichan's code:
$salt = strtr(preg_replace("/[^\.-z]/",".",substr($trip."H.",1,2)),":;<=>?@[\]^_`","ABCDEFGabcdef");
$trip = substr(crypt($trip, $salt),-10);

Name: Anonymous 2018-10-01 17:18

>>7
(you can skip that if you don't need japanese tripcodes)
wrong, some japanese input leads to non-japanese output

i.e. if you want a tripcode like !hurrdurr123 or whatever, the input might actually need to be something like #cませAe^7FQ

I know that because I used to use MTY back in the day for hardware-accelerated tripcode finding

but thanks for the rest of the info

Name: Anonymous 2018-10-03 23:13

hi

Name: Anonymous 2018-10-03 23:25

>>9
hello

Name: Anonymous 2018-10-04 18:27

>>9
check my dubs

Name: Anonymous 2018-10-04 21:05

>>11
checked

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