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

determining salt strings for tripcodes

Name: Anonymous 2011-02-04 16:06

I'm trying to write a tripcode generator in Babby's first programming language, C#. I got an array of bytes that represents a password with Japanese characters in it. I've been able to encode it. The problem I'm having is making the salt string. Am I supposed to use the second and third byte or the second and third character?

Byte array: 0x25, 0xef, 0xbd, 0xae, 0xef, 0xbd, 0xb7, 0xef, 0xbc, 0xbc, 0x5f, 0x77, 0xe6, 0x96, 0xa7
Encoded: %ョキ\_w斧
Resulting tripcode: xTroLlfaCE

Name: Anonymous 2011-02-04 16:50

Bytes, most likely. Are you using S-JIS for encoding the string?

Name: Anonymous 2011-02-04 17:03

No I'm using the UTF8 encoder

Name: Anonymous 2011-02-04 17:08

Bytes obviously, also translate to Shift_JIS for 4chan compatibility.

Name: Anonymous 2011-02-04 17:10

I tried using the shift-jis encoder but it gives weird results. Using the UTF8 encoder to encode the byte array gives the correct results.

Name: Anonymous 2011-02-04 17:17

You have to decode your input and then encode to Shift_JIS, which is probably what you're doing if you're inputing it correctly.

Name: Anonymous 2011-02-04 17:20

I have the array of bytes then I'd encode to shift-jis, replace characters (& -> &, etc.) which I'd pass to crypt()? What do I encode the salt with?

Name: Anonymous 2011-02-05 0:36

Name: Anonymous 2013-01-19 14:43

/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.

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