(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.
that's not a string, that's a 20 byte integer... interpret it as 0x71535311ca1aa1bfe34d7d71d3727bc70e755788
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.
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.