minor fix (follow-up 737417fb80)
This commit is contained in:
@@ -202,7 +202,7 @@ class Plugins(DaemonThread):
|
|||||||
salt = os.urandom(32)
|
salt = os.urandom(32)
|
||||||
privkey = self.derive_privkey(password, salt)
|
privkey = self.derive_privkey(password, salt)
|
||||||
pubkey = privkey.get_public_key_bytes()
|
pubkey = privkey.get_public_key_bytes()
|
||||||
key = chr(PLUGIN_PASSWORD_VERSION) + salt + pubkey
|
key = bytes([PLUGIN_PASSWORD_VERSION]) + salt + pubkey
|
||||||
return key.hex()
|
return key.hex()
|
||||||
|
|
||||||
def get_pubkey_bytes(self) -> Tuple[Optional[bytes], bytes]:
|
def get_pubkey_bytes(self) -> Tuple[Optional[bytes], bytes]:
|
||||||
|
|||||||
Reference in New Issue
Block a user