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

Feature Request: human readable passphrase instead of base64 tokens #544

Open
thiswillbeyourgithub opened this issue Aug 18, 2024 · 2 comments

Comments

@thiswillbeyourgithub
Copy link
Contributor

For years now there have been many ways to turn random strings inro human readable words and I think it would be nice. For example in python: https://pypi.org/project/bip39/

@thiswillbeyourgithub
Copy link
Contributor Author

thiswillbeyourgithub commented Sep 11, 2024

I still think this is needed but added it in my gist anyway. It's one way (so only used for quick verification, not to find a peer given only words) and can be found there

It uses Trezor's python-mnemonic package

@thiswillbeyourgithub
Copy link
Contributor Author

thiswillbeyourgithub commented Oct 12, 2024

FYI I ended up creating my own pure python library that reversibly convert seeds to words. Here it is : https://github.com/thiswillbeyourgithub/HumanReadableSeed

I updated the prior gist to use it.

You can use it to turn the edgevpn token into words and back.

To check this :
[ $(uvx HumanReadableSeed@latest toseed "$(uvx HumanReadableSeed@latest toread $EDGEVPNTOKEN | tail -n 1)") == "$EDGEVPNTOKEN" ] && echo "The key was indeed reversibly converted"

An edgevpn token gets converted in about 240 words. But this can be reduced by storing only the values as we know the keys and their order.

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

1 participant