defaulting to scrypt in to_dict fun

This commit is contained in:
idaapayo 2022-01-24 20:07:22 +03:00
parent 1c0047398a
commit 23a94c3ba1
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ class Ciphers:
return ciphertext
def to_dict(private_key_bytes, kdf :str, passphrase=''):
def to_dict(private_key_bytes, kdf='scrypt', passphrase=''):
private_key = coincurve.PrivateKey(secret=private_key_bytes)
if kdf == 'scrypt':

View File

@ -79,7 +79,7 @@ def main():
else:
pk_bytes = os.urandom(32)
pk = coincurve.PrivateKey(secret=pk_bytes)
o = to_dict(pk_bytes, 'scrypt', passphrase)
o = to_dict(pk_bytes, passphrase)
r = json.dumps(o)
print(r)