edgevpn icon indicating copy to clipboard operation
edgevpn copied to clipboard

Feature Request: human readable passphrase instead of base64 tokens

Open thiswillbeyourgithub opened this issue 1 year ago • 3 comments

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 avatar Aug 18 '24 08:08 thiswillbeyourgithub

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 avatar Sep 11 '24 13:09 thiswillbeyourgithub

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.

thiswillbeyourgithub avatar Oct 12 '24 12:10 thiswillbeyourgithub

Update: I now use my own script called wormrot.sh that uses magic-wormhole to send files using key derived from the current time with a preshared key. The above gist will not be maintained anymore.

thiswillbeyourgithub avatar Apr 13 '25 18:04 thiswillbeyourgithub