import hashlib import struct def verify(txid,secret,lessthan): sha512 = hashlib.sha512() sha512.update(secret+txid) b = long(sha512.hexdigest(),16) result = b % 65537 if result<lessthan: print "win!" else: print "lose!"
current time: Sun, 25 Jan 2015 01:52:13 +0000
Date | Secret |
---|---|
January 24 2015 | 2ab05e1600cd61c001708053282ace87 |
January 23 2015 | 25b7403afa5814f452879eb51200a043 |
January 22 2015 | 2a736db0cfa8ba524bbca9a8f66d4cb2 |
January 21 2015 | 91a91a92dee70693926cd3f299a1ea03 |
January 20 2015 | 4e7ec17ade32463b7055fc69a2aa780b |
January 19 2015 | be7d1123bb3b58dc5fb89ce5b960df74 |
January 18 2015 | 347e14e5d4748958516a5d2e6dcca7a3 |
January 17 2015 | c4859a8ca2e90f3db8d86d3afb115c57 |
January 16 2015 | f5743727b9801a4ce94fef5c46a41458 |
January 15 2015 | 9da4839f265b3fb309b9a711b671b0e4 |
January 14 2015 | 8ed2d287db94ea21a2432e8e4f2f32ab |
January 13 2015 | b669ba787d737ead94c18cb2f692c433 |
January 12 2015 | 9455d7f87e25f6939e3509836bcaf8c6 |
January 11 2015 | c7af49ab23cf713ddd780e6d71bb6e9b |