armor

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: MIT Imports: 8 Imported by: 0

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 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 ReadClearSignedMessage

func ReadClearSignedMessage(signedMessage string) (string, error)

ReadClearSignedMessage returns the message body from a clearsigned message.

func Unarmor

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

Unarmor unarmors an armored key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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