age

package
v0.0.0-...-1c9a7a8 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Age

type Age struct {
	// contains filtered or unexported fields
}

func Generate

func Generate(basePath string) (a *Age, err error)

func MakeFromIdentity

func MakeFromIdentity(path_or_identity string) (a *Age, err error)

func MakeFromIdentityFile

func MakeFromIdentityFile(basePath string) (a *Age, err error)

func MakeFromIdentityString

func MakeFromIdentityString(contents string) (a *Age, err error)

func (*Age) Close

func (a *Age) Close() error

func (Age) Decrypt

func (a Age) Decrypt(src io.Reader) (out io.Reader, err error)

func (Age) Encrypt

func (a Age) Encrypt(dst io.Writer) (out io.WriteCloser, err error)

func (Age) Identities

func (a Age) Identities() []Identity

func (Age) Recipients

func (a Age) Recipients() []Recipient

type Identity

type Identity = age.Identity

type Recipient

type Recipient = age.Recipient

type X25519Identity

type X25519Identity = age.X25519Identity

type X25519Recipient

type X25519Recipient = age.X25519Recipient

Jump to

Keyboard shortcuts

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