Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.
/ base64url Public archive

Base64url encode or decode FILE or standard input, to standard output.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

koyashiro/base64url

Repository files navigation

base64url

CI

Base64url encode or decode FILE or standard input, to standard output.

Install

cargo install --git https://github.com/koyashiro/base64url

Usage

$ base64url --help
Base64url encode or decode FILE or standard input, to standard output.

USAGE:
    base64url [OPTIONS] [FILE]

ARGS:
    <FILE>    With no FILE, or when FILE is -, read standard input

OPTIONS:
    -d, --decode     Decode data
    -h, --help       Print help information
    -V, --version    Print version information

Encode

Encode string.

$ echo -n hello | base64url
aGVsbG8

Encode binary.

$ head -c 16 /dev/random | base64url
6tp3BcfXk8-ku2eeSH6-7w

Decode

Decode to string.

$ echo -n aGVsbG8 | base64url -d
hello

Decode to binary.

$ echo -n 6tp3BcfXk8-ku2eeSH6-7w | base64url -d | hexdump
0000000 daea 0577 d7c7 cf93 bba4 9e67 7e48 efbe
0000010

About

Base64url encode or decode FILE or standard input, to standard output.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages