bestgameever.py
                        
                             · 425 B · Python
                        
                    
                    
                      
                        Raw
                      
                      
                        
                          
                        
                    
                    
                
                
            # Usage: python bestgameever.py <password>
# Hint: It's alphanumeric, less than 5 characters.
from sys import argv
import hashlib
code = "98f588baf6859ca943164042560b6479dc277a8c481f186b6ef1b03cb5670dcdbeb226cd2e3808fd12f0b84eff6803290e667735b49fc4134206997e2add5ddf"
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 | # Hint: It's alphanumeric, less than 5 characters. | 
| 3 | from sys import argv | 
| 4 | import hashlib | 
| 5 | code = "98f588baf6859ca943164042560b6479dc277a8c481f186b6ef1b03cb5670dcdbeb226cd2e3808fd12f0b84eff6803290e667735b49fc4134206997e2add5ddf" | 
| 6 | if len(argv) > 1: | 
| 7 | if hashlib.sha512(hashlib.md5(argv[1]).hexdigest()).hexdigest() == code: | 
| 8 | print "Yep." | 
| 9 | else: | 
| 10 | print "Nope." | 
| 11 | else: | 
| 12 | print "Nope." |