coder

command
v0.0.0-...-4aaf49e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 6 Imported by: 0

README

About

coder is a command line tool to encode / decode pipes or files between various binary-to-text encodings.

Installation

go get -u github.com/martinlindhe/gohash/cmd/coder
Encode
echo "hello" | coder base64
Decode
cat file.base64 | coder -d base64
Chained encode

Combine multiple encodings in one step:

echo -n "hello" | coder -e base64+hex

This is equivalent to the following:

echo -n "hello" | base64 -w 0 | xxd -p
Chained decode
echo -n "614756736247383d" | coder -d -n hex+base64

This is equivalent to the following:

echo -n "614756736247383d" | xxd -r -p | base64 -d

Available encodings

$ coder --list-encodings
[ascii85 base32 base36 base58 base64 base91 binary
 bubblebabble decimal hex hexup lowercase octal
 reverse rot13 rot47 uppercase uu z85]

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL