Crates.io | b64url |
lib.rs | b64url |
version | 0.1.1 |
source | src |
created_at | 2021-04-03 21:03:50.644944 |
updated_at | 2021-04-03 21:08:52.548149 |
description | Command line URL-safe Base-64 encoder/decoder |
homepage | |
repository | https://github.com/kennep/b64url/ |
max_upload_size | |
id | 378483 |
size | 17,099 |
This is a simple URL-safe Base64 encoder/decoder written in Rust.
Pre-compiled binaries for Linux, Windows and (Intel) macOS are available on the releases page.
If you have Rust and Cargo installed, you can download the source and build it yourself in the regular way:
$ cargo build
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.
This is my first Rust program, so go easy on me :) That being said, feedback, PRs, etc. are most welcome.