b64-cli 0.1.2

A simple and fast command-line tool for encoding and decoding base64 strings
Documentation

b64-cli

A simple and fast command-line tool for encoding and decoding base64 strings.

Installation

Install from crates.io:

cargo install b64-cli

Or install from source:

git clone https://github.com/corsantic/b64-cli
cd b64-cli
cargo install --path .

Usage

The basic syntax is:

b64 <command> <input>

Commands

  • encode or e - Encode a string to base64
  • decode or d - Decode a base64 string

Examples

Encoding:

b64 encode hello
# Output: aGVsbG8=

b64 e hello
# Output: aGVsbG8=

Decoding:

b64 decode aGVsbG8=
# Output: hello

b64 d aGVsbG8=
# Output: hello

Building

cargo build --release

Testing

cargo test

License

MIT