armor

package
v2.4.7 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 7 Imported by: 16

Documentation

Overview

Package armor contains a set of helper methods for armoring and unarmoring data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArmorKey

func ArmorKey(input []byte) (string, error)

ArmorKey armors input as a public key.

func ArmorWithType

func ArmorWithType(input []byte, armorType string) (string, error)

ArmorWithType armors input with the given armorType.

func ArmorWithTypeAndCustomHeaders added in v2.1.0

func ArmorWithTypeAndCustomHeaders(input []byte, armorType, version, comment string) (string, error)

ArmorWithTypeAndCustomHeaders armors input with the given armorType and headers.

func ArmorWithTypeBuffered

func ArmorWithTypeBuffered(w io.Writer, armorType string) (io.WriteCloser, error)

ArmorWithTypeBuffered returns a io.WriteCloser which, when written to, writes armored data to w with the given armorType.

func Unarmor

func Unarmor(input string) ([]byte, error)

Unarmor unarmors an armored input into a byte array.

Types

This section is empty.

Jump to

Keyboard shortcuts

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