Versions in this module Expand all Collapse all v1 v1.14.4 Jul 14, 2022 Changes in this version + const Ext + const IDFile + var DefaultAskPass = newAskPass() + var OldIDFile = ".age-ids" + var OldKeyring = filepath.Join(appdir.UserConfig(), "age-keyring.age") + func IsOnlyNative(ctx context.Context) bool + func WithOnlyNative(ctx context.Context, at bool) context.Context + type Age struct + func New() (*Age, error) + func (a *Age) Concurrency() int + func (a *Age) Decrypt(ctx context.Context, ciphertext []byte) ([]byte, error) + func (a *Age) Encrypt(ctx context.Context, plaintext []byte, recipients []string) ([]byte, error) + func (a *Age) Ext() string + func (a *Age) FindIdentities(ctx context.Context, keys ...string) ([]string, error) + func (a *Age) FindRecipients(ctx context.Context, search ...string) ([]string, error) + func (a *Age) Fingerprint(ctx context.Context, id string) string + func (a *Age) FormatKey(ctx context.Context, id, tpl string) string + func (a *Age) GenerateIdentity(ctx context.Context, _ string, _ string, pw string) error + func (a *Age) IDFile() string + func (a *Age) Identities(ctx context.Context) ([]age.Identity, error) + func (a *Age) IdentityRecipients(ctx context.Context) ([]age.Recipient, error) + func (a *Age) Initialized(ctx context.Context) error + func (a *Age) ListIdentities(ctx context.Context) ([]string, error) + func (a *Age) ListRecipients(context.Context) ([]string, error) + func (a *Age) Lock() + func (a *Age) Name() string + func (a *Age) ReadNamesFromKey(ctx context.Context, buf []byte) ([]string, error) + func (a *Age) RecipientIDs(ctx context.Context, buf []byte) ([]string, error) + func (a *Age) Version(ctx context.Context) semver.Version + type Keypair struct + Email string + Identity string + Name string + type Keyring []Keypair