Skip to content

Instantly share code, notes, and snippets.

@confiks
Created June 25, 2021 08:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save confiks/8fcb480d87a50cf1bb5e40e2f0930fad to your computer and use it in GitHub Desktop.
Save confiks/8fcb480d87a50cf1bb5e40e2f0930fad to your computer and use it in GitHub Desktop.
base45-with-base58.sh
wget -O base58.py https://raw.githubusercontent.com/keis/base58/master/base58/__init__.py
sed "s~123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ \$%*+-./:~" base58.py > base45.py
python3 -c 'import base45; print(base45.b58encode("hello world"))'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment