Skip to content

Instantly share code, notes, and snippets.

@gabrtv
Created October 19, 2011 23:24
Show Gist options
  • Save gabrtv/1299982 to your computer and use it in GitHub Desktop.
Save gabrtv/1299982 to your computer and use it in GitHub Desktop.
The GPU Instance Defense
commit f3ba9767192780a0dd5f575f52abae8661a2143d
Author: gabrtv <[email protected]>
Date: Wed Oct 19 17:01:28 2011 -0600
switch to sha-512 password hashing (aka the GPU instance defense)
diff --git a/c2core/crypto.py b/c2core/crypto.py
index 98c8711..fc9ad56 100644
--- a/c2core/crypto.py
+++ b/c2core/crypto.py
@@ -15,7 +15,7 @@ def salt_func():
def hash_func():
"""Return a new message digest object"""
- return hashlib.sha1()
+ return hashlib.sha512()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment