age

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(ciphertext []byte, identities ...age.Identity) ([]byte, error)

func Encrypt

func Encrypt(plaintext []byte, recipients ...age.Recipient) ([]byte, error)

func EncryptForPublicKeys

func EncryptForPublicKeys(plaintext []byte, publicKeys []string) ([]byte, error)

func Fingerprint

func Fingerprint(pubKey string) string

Types

type KeyPair

type KeyPair struct {
	Identity  *age.X25519Identity
	PublicKey string
}

func GenerateKeyPair

func GenerateKeyPair() (*KeyPair, error)

Jump to

Keyboard shortcuts

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