[jdev] Re: SOCKS5 Bytestream File Transfer problem
Magnus Henoch
mange at freemail.hu
Fri Feb 25 07:05:41 CST 2005
Anthony Ortiz <anthonypaulo at gmail.com> writes:
> sid = s5b_8e463861b5e6bc04
> from = venkata at 68.101.84.233/Psi
> to = aortiz at 68.101.84.233/JClient
>
> // using libidn/java/gnu/inet/encoding/Stringprep.java -- too boring
> to implement, thk god I found this!
> String SocksHost = SHA1(sid + Stringprep.nameprep(from + to)); // HASH
> OUTPUT=9134A1B74EB358B866C604B1E1B0DDEE0D664967
$ echo -n s5b_8e463861b5e6bc04venkata at 68.101.84.233/Psiaortiz at 68.101.84.233/JClient | sha1
5b3427312a46e4f44958cda3e0be1cd94bdd813f
I'm not sure what goes wrong here...
Magnus
More information about the JDev
mailing list