소스 검색

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()