bestgameever.py
· 374 B · Python
Raw
# Usage: python bestgameever.py <password>
from sys import argv
import hashlib
code = "392606c165d14c6867fdc42763454e2b741860a23919415745d0ad10a14f6d6042c1857c440c0e13e9843372fc7d9f178e9c73f4cb994c5ac6568ada78236a31"
if len(argv) > 1:
if hashlib.sha512(hashlib.md5(argv[1]).hexdigest()).hexdigest() == code:
print "Yep."
else:
print "Nope."
else:
print "Nope."
| 1 | # Usage: python bestgameever.py <password> |
| 2 | from sys import argv |
| 3 | import hashlib |
| 4 | code = "392606c165d14c6867fdc42763454e2b741860a23919415745d0ad10a14f6d6042c1857c440c0e13e9843372fc7d9f178e9c73f4cb994c5ac6568ada78236a31" |
| 5 | if len(argv) > 1: |
| 6 | if hashlib.sha512(hashlib.md5(argv[1]).hexdigest()).hexdigest() == code: |
| 7 | print "Yep." |
| 8 | else: |
| 9 | print "Nope." |
| 10 | else: |
| 11 | print "Nope." |