Steven Smith revised this gist . Go to revision
1 file changed, 1 insertion
bestgameever.py
| @@ -1,4 +1,5 @@ | |||
| 1 | 1 | # Usage: python bestgameever.py <password> | |
| 2 | + | # Hint: It's alphanumeric, less than 5 characters. | |
| 2 | 3 | from sys import argv | |
| 3 | 4 | import hashlib | |
| 4 | 5 | code = "98f588baf6859ca943164042560b6479dc277a8c481f186b6ef1b03cb5670dcdbeb226cd2e3808fd12f0b84eff6803290e667735b49fc4134206997e2add5ddf" | |
Steven Smith revised this gist . Go to revision
1 file changed, 1 insertion, 1 deletion
bestgameever.py
| @@ -1,7 +1,7 @@ | |||
| 1 | 1 | # Usage: python bestgameever.py <password> | |
| 2 | 2 | from sys import argv | |
| 3 | 3 | import hashlib | |
| 4 | - | code = "392606c165d14c6867fdc42763454e2b741860a23919415745d0ad10a14f6d6042c1857c440c0e13e9843372fc7d9f178e9c73f4cb994c5ac6568ada78236a31" | |
| 4 | + | code = "98f588baf6859ca943164042560b6479dc277a8c481f186b6ef1b03cb5670dcdbeb226cd2e3808fd12f0b84eff6803290e667735b49fc4134206997e2add5ddf" | |
| 5 | 5 | if len(argv) > 1: | |
| 6 | 6 | if hashlib.sha512(hashlib.md5(argv[1]).hexdigest()).hexdigest() == code: | |
| 7 | 7 | print "Yep." | |
Steven Smith revised this gist . Go to revision
1 file changed, 11 insertions
bestgameever.py(file created)
| @@ -0,0 +1,11 @@ | |||
| 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." | |