Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Yegg on November 02, 2005, 04:00 PM

Title: [SRP] S
Post by: Yegg on November 02, 2005, 04:00 PM
(client) S = ((N + B - v) % N)(a + ux) % N
From iago's notes on javaop.com, this formula for S uses the value of x in it. My question is how can you have
ux
if
x = H(s, H(C, ":", P));
Note that H is just your standard SHA1 hash algorithm.
If my account had a salt value of 15, my username (C) was "USER" and my password (P) was "PASS", then according to Python's sha library would form the following value:
'71535311ca1aa1bfe34d7d71d3727bc70e755788'
This value is a string, I don't get how I can multiply a value by a string. Unless I replace each value with its ordinal representation? Any help is appreciated, I'm quite confused over this.
Title: Re: [SRP] S
Post by: l2k-Shadow on November 02, 2005, 04:15 PM
that's not a string, that's a 20 byte integer... interpret it as 0x71535311ca1aa1bfe34d7d71d3727bc70e755788
Title: Re: [SRP] S
Post by: Yegg on November 02, 2005, 04:25 PM
Ahh, Ok. It was just the way I was reading it. I've been a Python programmer for a while before I became interested in C [based languages], so it confuses you on quite a few things. Thank you very much Shadow.
Title: Re: [SRP] S
Post by: Sorc.Polgara on November 02, 2005, 09:23 PM
Quote from: Yegg on November 02, 2005, 04:00 PM
From iago's notes on javaop.com

Link please.
Title: Re: [SRP] S
Post by: iago on November 02, 2005, 10:57 PM
He is correct.  It's a very very large integer is all. 

polgara: I pasted a link in your other thread, but here it is again:
http://www.javaop.com/~iago/SRP.html

If you have questions about it, I recommend posting them on http://www.x86labs.org/forum.  I read that forum far more frequently than this one.