• Welcome to Valhalla Legends Archive.
 

[SRP] S

Started by Yegg, November 02, 2005, 04:00 PM

Previous topic - Next topic

Yegg

(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.

l2k-Shadow

#1
that's not a string, that's a 20 byte integer... interpret it as 0x71535311ca1aa1bfe34d7d71d3727bc70e755788
Quote from: replaced on November 04, 2006, 11:54 AM
I dunno wat it means, someone tell me whats ix86 and pmac?
Can someone send me a working bot source (with bnls support) to my email?  Then help me copy and paste it to my bot? ;D
Já jsem byl určenej abych tady žil,
Dával si ovar, křen a k tomu pivo pil.
Tam by ses povídaj jak prase v žitě měl,
Já nechci před nikym sednout si na prdel.

Já nejsem z USA, já nejsem z USA, já vážně nejsem z USA... a snad se proto na mě nezloběj.

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.


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. 
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*