Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seed = mnemo.to_seed(words, passphrase="") get error bad key length #96

Closed
arlicle opened this issue Mar 30, 2022 · 3 comments
Closed

Comments

@arlicle
Copy link

arlicle commented Mar 30, 2022

mnemo = Mnemonic("english")
words = mnemo.generate(strength=256)
seed = mnemo.to_seed(words, passphrase="")

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/edison/Library/Python/3.8/lib/python/site-packages/mnemonic/mnemonic.py", line 239, in to_seed
    stretched = hashlib.pbkdf2_hmac(
ValueError: [digital envelope routines: CRYPTO_internal] bad key length
@prusnak
Copy link
Member

prusnak commented Mar 30, 2022

Works for me here. Sounds like your installation is funky.

@prusnak prusnak closed this as completed Mar 30, 2022
@arlicle
Copy link
Author

arlicle commented Mar 30, 2022

My systerm is mac 12.1 (21C52)

@prusnak
Copy link
Member

prusnak commented Mar 30, 2022

My systerm is mac 12.1 (21C52)

Works just fine with system Python 3.8.9 on macOS 12.3.

Try updating your OS to 12.3 if that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants