Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def GetHash(Password, SystemSalt, UserSalt):
- """
- Created By Abraham Aranguren <name.surname@gmail.com> Twitter: @7a_ http://7-a.org
- Iterates a salted hash function for secure password storage
- Please see this link for more info: http://owasp.com/index.php/Password_Storage_Cheat_Sheet
- """
- Hash = Password
- for i in range(1000000):
- Hash = sha512(Hash + SystemSalt + UserSalt + str(i))
- return Hash
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement