#cli #base58 #codec #utility

app bs58-cli

A cli utility for encoding/decoding base58 encoded data

2 releases

0.1.1 Nov 6, 2020
0.1.0 Dec 24, 2019

#961 in Command line utilities

MIT/Apache

48KB
638 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

~1.6–2.3MB
~40K SLoC