Skip to main content

Module encrypt

Module encrypt 

Source
Expand description

Low-level age-format encryption with a caller-supplied FileKey. Custom age-format writer that accepts a known FileKey.

Since age::Encryptor generates a random FileKey internally and doesn’t expose it, we need a custom encrypt function to reuse a cached FileKey. This produces spec-compliant age v1 binary files.

Enums§

EncryptWithFileKeyError
Error returned by encrypt_with_file_key.

Functions§

encrypt_with_file_key
Encrypt plaintext using a known FileKey + recipient.