Expand description
Modules§
- keys
- Age key handling: recipients, identities, data-key wrapping, and key generation.
- store
- SOPS-compatible dotenv store.
- util
- Small time helpers: SOPS metadata timestamps are RFC 3339, second
precision, UTC (
time.RFC3339in Go). - value
- SOPS value encryption: the
ENC[AES256_GCM,...]strings.
Structs§
- Identity
- The classic age identity type, which can decrypt files encrypted to the corresponding
Recipient. - Recipient
- The classic age recipient type. Files encrypted to this recipient can be decrypted
with the corresponding
Identity.
Functions§
- decrypt
- Decrypt the file at
pathusing environment-supplied identities only. - decrypt_
for - Decrypt the file at
pathusing identities from the environment and (whenenvironmentis given) the default per-user key file for that environment. - default_
key_ dir - Default per-user key directory (relative to the config home).
- encrypt
- Encrypt
contentand write it topathatomically forrecipients. - generate_
key - Generate a fresh age identity and write it to
path(mode 0600). Returns the full key-file text so callers can print the public key. - recipients_
of - List the recipients recorded in the encrypted file at
path.