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: Sun, 18 Dec 2016 20:45:00 +0000
Date | Secret |
---|---|
December 17 2016 | cf82699a9b658b76a04bfb433ea8af2fe23208bb4fa27f32b58224883ae5253c |
December 16 2016 | 91d595d57692bcfe7a67b65413ebd50182bd5a0012275c1cf1af64c7bc0761fc |
December 15 2016 | 6775b8ffcd070708f1310978feb957fcd9e174f903f4340d6bfd4a22b3f29202 |
December 14 2016 | 5d4d20ca09b857bdfbd424b635d00362e2b51e1ad3ae0e9f9ee870c51f2be85a |
December 13 2016 | 725683658c76a93308ff1b19ae3aa5e5b15a9729d9c8d97ec853a728b788e950 |
December 12 2016 | 816e7a3a963e232a23149f6105a49e4cbb233502cf044f7d32ca5fb5ee422c91 |
December 11 2016 | 16cff3f5ee8aa3b77380f8cc6d0a7ee50f1cedad5bf2740ca623597fd4025e19 |
December 10 2016 | 094e8a84828bb6a2541dde2c64d3b4f0f46e303f61d80f4164727214c8a5c676 |
December 09 2016 | e9bf1f31d7a058a405ca1e4879b9d4c6e25c352a56e8ce7c7228041ab7d6a275 |
December 08 2016 | 2152c94b3bc6c749c33c592ea35f86c50520c8453a16e566e4e6bced188bf060 |
December 07 2016 | 521b54783e5472788a94354b0cc313ebbb436f0b571270bcfe2c07b49ad2f9da |
December 06 2016 | c48c484da54e9619a1d93ca5e12577439f591c514ccb160561cbb84dfddc9641 |
December 05 2016 | 51b2b97612c88f3d6e00cca01b224e9842c8ba9576bfe757399d3d1b9f4498e9 |
December 04 2016 | c6043bf7c8111aa79307371b5e507105e68d173b8dabe9cea9aadadea97f71bf |