Valhalla Legends Forums Archive | Battle.net Bot Development | [SRP] S

AuthorMessageTime
Yegg
[code](client) S = ((N + B - v) % N)(a + ux) % N[/code]
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
[code]ux[/code]
if
[code]x = H(s, H(C, ":", P));[/code]
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:
[code]'71535311ca1aa1bfe34d7d71d3727bc70e755788'[/code]
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.
November 2, 2005, 10:00 PM
l2k-Shadow
that's not a string, that's a 20 byte integer... interpret it as 0x71535311ca1aa1bfe34d7d71d3727bc70e755788
November 2, 2005, 10:15 PM
Yegg
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.
November 2, 2005, 10:25 PM
bethra
[quote author=Yegg link=topic=13130.msg132673#msg132673 date=1130968843]
From iago's notes on javaop.com
[/quote]

Link please.
November 3, 2005, 3:23 AM
iago
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. 
November 3, 2005, 4:57 AM

Search