import hashlib def xor_func(s1,s2): return ''.join(chr(ord(a) ^ ord(b)) for a,b in zip(s1,s2)) def verify(txid,secret,lessthan): sha512 = hashlib.sha512() sha512.update(xor_func(secret,txid)) b = long(sha512.hexdigest(),16) result = b % 65537 if result<lessthan: print "win!" else: print "lose!"
current time: Thu, 28 Sep 2017 14:29:15 +0000
Date | Secret |
---|---|
September 27 2017 | 553d17dac6c8f6b8fb8deb6d826d239f4308dfa170ce1aa21b6a4e46422d55d6 |
September 26 2017 | 0bc83bf23dd72c43597d7f5c6df47070d15a41c485f554a8e69e37b17fdd9846 |
September 25 2017 | 0af9aa94d2c077b6782c06077ebb2948e3549bd669bb63b2f550b8dbeab175d1 |
September 24 2017 | 45f5cfaff40152082392e0da40e26188946ea92ad06352f24543ab3b461c76f5 |
September 23 2017 | 0568e6992a315ee6e947ba4ad13eb066dcc62b975127b417388f6104ceb4c4a3 |
September 22 2017 | 8ba8081b80531fd67bf8c4a928758660c7606af449b62ebbd1de1cc6544d7708 |
September 21 2017 | 791ffef536b32fdd485f620d04475e89813cf1a791f9bcf4d2981de340e777f1 |
September 20 2017 | 2d5b2eeed4cb284a80a417eabe1a3b0d8450400cb67948fe192df7ec81501759 |
September 19 2017 | d00f451b77d98dfe5ea424744e773bde1e69c1750ac96739fc92206931f196c6 |
September 18 2017 | 16d18770d836eddb6440423a2c7ce19e7e8edcd0c52dacff5286d778bd23d4ec |
September 17 2017 | c2db571e6b4de3f19196be6e0249e90a764bd551d785446551888c5c2dbc8eb5 |
September 16 2017 | 8326ce4ecf510d5a22520770660f2340247930c9cf7b261aa6240b497e380607 |
September 15 2017 | a00fc3fba58f90d3f5b3b25c260035e0d3d7e8f011404e52ccad0855bac99578 |
September 14 2017 | c2924fe2021fafe13151fe96a30a6b04f810d78fe5c278454d6403167fc1abfd |