Message150649
"Calculating the hash of a null byte gives you the xor of your two seeds."
Not directly because prefix is first multiplied by 1000003. So hash("\0") gives you (prefix*1000003) % 2^32 ^ suffix.
Example:
$ ./python
secret={b7abfbbf, db6cbb4d}
Python 3.3.0a0 (default:547e918d7bf5+, Jan 5 2012, 01:36:39)
>>> hash("")
1824997618
>>> hash("\0")
-227042383
>>> hash("\0"*2)
1946249080
>>> 0xb7abfbbf ^ 0xdb6cbb4d
1824997618
>>> (0xb7abfbbf * 1000003) & 0xffffffff ^ 0xdb6cbb4d
4067924912
>>> hash("\0") & 0xffffffff
4067924913 |
|
Date |
User |
Action |
Args |
2012-01-05 00:58:44 | vstinner | set | recipients:
+ vstinner, lemburg, gvanrossum, barry, georg.brandl, terry.reedy, jcea, pitrou, christian.heimes, benjamin.peterson, eric.araujo, Arfrever, alex, dmalcolm, Mark.Shannon, Zhiping.Deng, PaulMcMillan |
2012-01-05 00:58:44 | vstinner | set | messageid: <1325725124.08.0.369442188913.issue13703@psf.upfronthosting.co.za> |
2012-01-05 00:58:43 | vstinner | link | issue13703 messages |
2012-01-05 00:58:43 | vstinner | create | |
|