diff --git a/isso/utils/hash.py b/isso/utils/hash.py index 111916eac..58a953b36 100644 --- a/isso/utils/hash.py +++ b/isso/utils/hash.py @@ -3,7 +3,7 @@ import codecs import hashlib -from werkzeug.security import pbkdf2_bin as pbkdf2 +from hashlib import pbkdf2_hmac as pbkdf2 def _TypeError(name, expected, val): @@ -68,7 +68,8 @@ def __init__(self, salt=None, iterations=1000, dklen=6, func="sha1"): self.func = func def compute(self, val): - return pbkdf2(val, self.salt, self.iterations, self.dklen, self.func) + return pbkdf2(hash_name=self.func, password=val, salt=self.salt, + iterations=self.iterations, dklen=self.dklen) def new(conf):