فهرست منبع

remove unused hmac line

raylu 11 سال پیش
والد
کامیت
42920aa75d
1فایلهای تغییر یافته به همراه0 افزوده شده و 1 حذف شده
  1. 0 1
      web/db.py

+ 0 - 1
web/db.py

@@ -14,7 +14,6 @@ import config
 def hash_pw(password, salt=None):
 	if salt is None:
 		salt = os.urandom(16)
-	h = hmac.new(salt, password.encode('utf-8'), hashlib.sha256)
 	hashed = hashlib.pbkdf2_hmac('sha512', password.encode('utf-8'), salt, 100000)
 	hashed_hex = binascii.hexlify(hashed).decode()
 	salt_hex = binascii.hexlify(salt).decode()