base32

command module
v0.0.0-...-9969f41 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 7 Imported by: 0

README

base32

Base32 encoding and decoding, using the RFC 4648 alphabet ("abcdefghijklmnopqrstuvwxyz234567").

Usage

By default, encodes all input into base32 and outputs the result.

With -d/--decode, decodes all input from base32 and outputs the result.

With -x/--hex, expects hexadecimal input (or, if decoding, produce hexadecimal output).

Examples

$ echo hello | base32
nbswy3dpbi

$ echo af2c42003efc826ab4361f73f9d890942146fe0ebe806786f8e7190800000000 | base32 -x
v4weeab67sbgvnbwd5z7tweqsqqun7qox2agpbxy44mqqaaaaaaa

$ echo v4weeab67sbgvnbwd5z7tweqsqqun7qox2agpbxy44mqqaaaaaaa | base32 -dx
af2c42003efc826ab4361f73f9d890942146fe0ebe806786f8e7190800000000

$ echo nbswy3dpbi | base32 -d
hello

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