Ida/pbkdf2 #2

Closed
idaapayo wants to merge 8 commits from idaapayo/funga-eth:Ida/pbkdf2 into master
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 23a94c3ba1 - Show all commits

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)