Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import hashlib, os, getpass
- password = getpass.getpass("Please enter a password.")
- salt = os.urandom(32) #Salt appended to hash
- crypted_data = password+salt
- crypted_hash = hashlib.sha1(crypted_data).hexdigest()
- print crypted_hash
- raw_input("Press any key to continue...")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement