diff --git a/VERSION b/VERSION index d193721d..f8cb74e5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-07-18 13:40:06) dev +Version 2.00.0 (2012-07-18 13:46:20) dev diff --git a/gluon/utils.py b/gluon/utils.py index ad690ed7..133dfc90 100644 --- a/gluon/utils.py +++ b/gluon/utils.py @@ -73,8 +73,9 @@ def get_digest(value): def hmac_hash(value, salt, digest_alg='md5'): if isinstance(digest_alg,str) and digest_alg.startswith('pbkdf2'): - iterations, keylen = digest_alg[7:-1].split(',') - return pbkdf2_hex(value, salt, int(iterations), int(keylen)) + iterations, keylen, alg = digest_alg[7:-1].split(',') + return pbkdf2_hex(value, salt, int(iterations), + int(keylen),get_digest(alg)) digest_alg = get_digest(digest_alg) d = hmac.new(salt,value,digest_alg) return d.hexdigest() diff --git a/gluon/validators.py b/gluon/validators.py index 6d14fcd2..ff28b5f4 100644 --- a/gluon/validators.py +++ b/gluon/validators.py @@ -2551,7 +2551,7 @@ class LazyCrypt(object): key = 'md5:uuid' key = 'sha512:uuid' ... - key = 'pbkdf2(100,64):uuid' 100 iterations and 64 chars length + key = 'pbkdf2(1000,64,sha512):uuid' 1000 iterations and 64 chars length """ if self.crypted: return self.crypted