Versions in this module Expand all Collapse all v1 v1.5.0 Apr 13, 2026 v1.4.0 Apr 9, 2026 Changes in this version + func EncodeHybridRecipient(pq *mlkem.EncapsulationKey768, t *ecdh.PublicKey) (string, error) + func EncodeIdentity(name string, data []byte) string + func EncodeRecipient(name string, data []byte) string + func EncodeX25519Recipient(pk *ecdh.PublicKey) (string, error) + func ParseIdentity(s string) (name string, data []byte, err error) + func ParseRecipient(s string) (name string, data []byte, err error) + type ClientUI struct + Confirm func(name, prompt, yes, no string) (choseYes bool, err error) + DisplayMessage func(name, message string) error + RequestValue func(name, prompt string, secret bool) (string, error) + WaitTimer func(name string) + func NewTerminalUI(printf, warningf func(format string, v ...any)) *ClientUI + type Identity struct + func NewIdentity(s string, ui *ClientUI) (*Identity, error) + func NewIdentityWithoutData(name string, ui *ClientUI) (*Identity, error) + func (i *Identity) Name() string + func (i *Identity) Recipient() *Recipient + func (i *Identity) String() string + func (i *Identity) Unwrap(stanzas []*age.Stanza) (fileKey []byte, err error) + type NotFoundError struct + Err error + Name string + func (e *NotFoundError) Error() string + func (e *NotFoundError) Unwrap() error + type Plugin struct + func New(name string) (*Plugin, error) + func (p *Plugin) Confirm(prompt, yes, no string) (choseYes bool, err error) + func (p *Plugin) DisplayMessage(message string) error + func (p *Plugin) HandleIdentity(f func(data []byte) (age.Identity, error)) + func (p *Plugin) HandleIdentityAsRecipient(f func(data []byte) (age.Recipient, error)) + func (p *Plugin) HandleIdentityEncoding(f func(identity string) (age.Identity, error)) + func (p *Plugin) HandleIdentityEncodingAsRecipient(f func(identity string) (age.Recipient, error)) + func (p *Plugin) HandleRecipient(f func(data []byte) (age.Recipient, error)) + func (p *Plugin) HandleRecipientEncoding(f func(recipient string) (age.Recipient, error)) + func (p *Plugin) IdentityV1() int + func (p *Plugin) Main() int + func (p *Plugin) Name() string + func (p *Plugin) RecipientV1() int + func (p *Plugin) RegisterFlags(fs *flag.FlagSet) + func (p *Plugin) RequestValue(prompt string, secret bool) (string, error) + func (p *Plugin) SetIO(stdin io.Reader, stdout, stderr io.Writer) + type Recipient struct + func NewRecipient(s string, ui *ClientUI) (*Recipient, error) + func (r *Recipient) Name() string + func (r *Recipient) String() string + func (r *Recipient) Wrap(fileKey []byte) (stanzas []*age.Stanza, err error) + func (r *Recipient) WrapWithLabels(fileKey []byte) (stanzas []*age.Stanza, labels []string, err error)