varmor

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package varmor provides versioned armoring for arbitrary sequences of bytes.

The armored form is free of whitespace (including newlines), safe to embed in URLs (other than possibly its length) and safe to pass unescaped in a POSIX shell.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unwrap

func Unwrap(varmoredBody string) ([]byte, error)

Unwrap an armored string.

Errors conditions include:

  • The input is provably truncated.
  • Base64 decoding failure.
  • Input indicates a future version of of the format that we do not support.
  • Input does not appear to be the the result of Wrap().

func Wrap

func Wrap(body []byte) string

Wrap an array of bytes in armor, returning the resulting string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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