document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. import hashlib
  2.  
  3. # the Pre-hashed password is \'dave\'
  4.  
  5.  
  6. userPassword = input("Enter user password > ").encode("utf-8")
  7. PreSalt = "fishes".encode("utf-8")
  8. print("Hashing Password")
  9. newHash = hashlib.sha1()
  10. newHash.update(userPassword + PreSalt)
  11. hashedPassword = str(newHash.hexdigest())
  12.                
  13. print ("This is the hashed Password =     \'" + str(newHash.hexdigest()) + "\'")
  14. preHashedPassword = "3b0acbcffbcaf692b83d218077e279bb41c921b8"
  15. print ("This is the Pre hashed Password = \'" + str(preHashedPassword) + "\'\\nChecking the password with the one stored.")
  16. if (preHashedPassword == hashedPassword):
  17.     print ("These Match!")
  18.     print ("Authenticated!")
  19. else:
  20.     print ("These don\'t match!")
  21.     print ("Authentication Failed")
  22. #print (len(hashedPassword))
  23.  
  24. # Made by Aidan Crane, No credit needed for non-commercial use, otherwise credit plz :)
');