Ida/pbkdf2 #2
@ -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':
|
||||
|
@ -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)
|
||||
lash
commented
... and then you don't have to change this. ... and then you don't have to change this.
|
||||
r = json.dumps(o)
|
||||
|
||||
print(r)
|
||||
|
Loading…
Reference in New Issue
Block a user
can we have scrypt as default please? that makes it backward compatible