Skip to content

Instantly share code, notes, and snippets.

@AndyNovo
Created February 12, 2016 04:47
Show Gist options
  • Save AndyNovo/3aa91551b9bea39bb5c0 to your computer and use it in GitHub Desktop.
Save AndyNovo/3aa91551b9bea39bb5c0 to your computer and use it in GitHub Desktop.
import hashlib
def superHash(secret, salt, iterations):
result = "0"
for i in range(iterations):
result = hashlib.sha256(result + secret + salt).hexdigest()
return result
print superHash("pass123","saltybananas", 1234567)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment