package base32

Import Path
	encoding/base32 (on and

Dependency Relation
	imports 2 packages, and imported by 0 packages

Involved Source Files
	d-> base32.go

Exported Type Names

type CorruptInputError int64 (T) Error() string T : error
type Encoding (struct) An Encoding is a radix 32 encoding/decoding scheme, defined by a 32-character alphabet. The most common is the "base32" encoding introduced for SASL GSSAPI and standardized in RFC 4648. The alternate "base32hex" encoding is used in DNSSEC. (*T) Decode(dst, src []byte) (n int, err error) (*T) DecodeString(s string) ([]byte, error) (*T) DecodedLen(n int) int (*T) Encode(dst, src []byte) (*T) EncodeToString(src []byte) string (*T) EncodedLen(n int) int (T) WithPadding(padding rune) *Encoding func NewEncoding(encoder string) *Encoding func Encoding.WithPadding(padding rune) *Encoding func NewDecoder(enc *Encoding, r io.Reader) io.Reader func NewEncoder(enc *Encoding, w io.Writer) io.WriteCloser var HexEncoding *Encoding var StdEncoding *Encoding
Exported Values
var HexEncoding *Encoding HexEncoding is the ``Extended Hex Alphabet'' defined in RFC 4648. It is typically used in DNS.
func NewDecoder(enc *Encoding, r io.Reader) io.Reader NewDecoder constructs a new base32 stream decoder.
func NewEncoder(enc *Encoding, w io.Writer) io.WriteCloser NewEncoder returns a new base32 stream encoder. Data written to the returned writer will be encoded using enc and then written to w. Base32 encodings operate in 5-byte blocks; when finished writing, the caller must Close the returned encoder to flush any partially written blocks.
func NewEncoding(encoder string) *Encoding NewEncoding returns a new Encoding defined by the given alphabet, which must be a 32-byte string.
const NoPadding rune = -1 // No padding
var StdEncoding *Encoding StdEncoding is the standard base32 encoding, as defined in RFC 4648.
const StdPadding rune = 61 // Standard padding character