1
0

remove pbkdf2 dependency, use stdlib instead

This commit is contained in:
Janus
2018-07-18 14:34:59 +02:00
parent b4b862b0cc
commit 1e715113ab
6 changed files with 9 additions and 13 deletions

View File

@@ -120,8 +120,8 @@ class DigitalBitbox_Client():
def stretch_key(self, key):
import pbkdf2, hmac
return to_hexstr(pbkdf2.PBKDF2(key, b'Digital Bitbox', iterations = 20480, macmodule = hmac, digestmodule = hashlib.sha512).read(64))
import hmac
return to_hexstr(hashlib.pbkdf2_hmac('sha512', key.encode('utf-8'), b'Digital Bitbox', iterations = 20480))
def backup_password_dialog(self):