1
0

digitalbitbox: fix stretch_key bytes/str confusion

This commit is contained in:
Janus
2018-12-07 18:41:40 +01:00
parent 31a5d0c2f0
commit 9a3f2e8fcc

View File

@@ -129,8 +129,8 @@ class DigitalBitbox_Client():
return False
def stretch_key(self, key):
return to_hexstr(hashlib.pbkdf2_hmac('sha512', key.encode('utf-8'), b'Digital Bitbox', iterations = 20480))
def stretch_key(self, key: bytes):
return to_hexstr(hashlib.pbkdf2_hmac('sha512', key, b'Digital Bitbox', iterations = 20480))
def backup_password_dialog(self):