We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85d1b03 commit ca868afCopy full SHA for ca868af
cryptofuzz/utils.py
@@ -100,9 +100,9 @@ def double_sha256(self, data):
100
101
# --- Mnemonic ---
102
def mne_to_seed(self, mnemonic, password=""):
103
- salt = ("mnemonic" + password).encode('utf-8')
104
- seed = hashlib.pbkdf2_hmac('sha512', mnemonic.encode('utf-8'), salt, 2048)
105
- return seed[:32]
+ """Convert Mnemonic String to Bytes (seed)"""
+ mne = Mnemonic('english')
+ return mne.to_seed(mnemonic, password)[:32]
106
107
# --- Mnemonic To Bytes
108
def mne_to_bytes(self, mnemonic):
0 commit comments