b64url

Crates.iob64url
lib.rsb64url
version0.1.1
sourcesrc
created_at2021-04-03 21:03:50.644944
updated_at2021-04-03 21:08:52.548149
descriptionCommand line URL-safe Base-64 encoder/decoder
homepage
repositoryhttps://github.com/kennep/b64url/
max_upload_size
id378483
size17,099
Kenneth Wang Pedersen (kennep)

documentation

README

b64url

This is a simple URL-safe Base64 encoder/decoder written in Rust.

Build status

Download

Pre-compiled binaries for Linux, Windows and (Intel) macOS are available on the releases page.

Building

If you have Rust and Cargo installed, you can download the source and build it yourself in the regular way:

$ cargo build

Usage

It is designed to be used as a filter and reads the data to be encoded or decoded from standard input.

To encode something:

$ echo "You fight like a dairy Farmer!" | b64url -e
WW91IGZpZ2h0IGxpa2UgYSBkYWlyeSBGYXJtZXIh

To decode something:

$ echo "SG93IGFwcHJvcHJpYXRlLiBZb3UgZmlnaHQgbGlrZSBhIGNvdyE" | b64url -d
How appropriate. You fight like a cow!

The default, if neither -e nor -d is given, is to encode the input.

Feedback

This is my first Rust program, so go easy on me :) That being said, feedback, PRs, etc. are most welcome.

Commit count: 23

cargo fmt