bs58-cli

Crates.iobs58-cli
lib.rsbs58-cli
version0.1.2
sourcesrc
created_at2019-12-24 21:00:41.876895
updated_at2023-05-23 13:56:24.452082
descriptionA cli utility for encoding/decoding base58 encoded data
homepage
repositoryhttps://github.com/Nullus157/bs58-rs
max_upload_size
id192197
size27,194
Nemo157 (Nemo157)

documentation

README

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
Commit count: 268

cargo fmt