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