From 5c6415ccc2300ad12b36b470f0cb4612f06e423e Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Sun, 29 Jun 2014 14:45:08 -0400 Subject: [PATCH] fix sha512_crypt.encrypt and explicitely set rounds to 500000 --- gam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gam.py b/gam.py index 8f65445e..af3ed39c 100644 --- a/gam.py +++ b/gam.py @@ -1048,7 +1048,7 @@ def doDelegates(users): def gen_sha512_hash(password): from passlib.hash import sha512_crypt - return sha512_crypt(password) + return sha512_crypt.encrypt(password, rounds=500000) def getDelegates(users): emailsettings = getEmailSettingsObject()