3 releases
0.1.2 | May 23, 2023 |
---|---|
0.1.1 | Nov 6, 2020 |
0.1.0 | Dec 24, 2019 |
#1823 in Encoding
65KB
950 lines
bs58-cli
A CLI utility for encoding/decoding base58 encoded data.
Installation
Currently bs58-cli
is only distributed through crates.io, install Rust
then install with:
> cargo install bs58-cli
Updating crates.io index
[...]
> bs58 --help
bs58 0.1.0
A utility for encoding/decoding base58 encoded data.
[...]
Examples
Encoding some data
> echo '04305e2b2473f058' | xxd -r -p | bs58
he11owor1d
Decoding some data
> echo -n 'he11owor1d' | bs58 -d | xxd -p
04305e2b2473f058
Decoding with a different alphabet
> echo -n 'he11owor1d' | bs58 -da=ripple | xxd -p
6065e79bba2f78
Encoding with a custom alphabet
> echo 'babce1c947b425' | xxd -r -p | bs58 -a='custom(abcdefghijkmnopqrstuvwxyz123456789ABCDEFGHJKLMNPQRSTUVWXYZ)'
he11owor1d
Dependencies
~3–12MB
~147K SLoC