Expand description
Rust Encryption Engine library for the renc CLI.
This crate mirrors the zenc file format and provides streaming encryption
and decryption with either a password (Argon2id) or recipient public key.
Use the renc binary for the CLI and JSON event output.
Modules§
- utils
- JSON event helpers for the CLI.
Structs§
- Done
Info - Completion info for encrypt/decrypt operations.
- Header
- Parsed header for the renc v1 format.
- KdfParams
- Argon2id parameter set stored in renc headers.
- Keypair
Enums§
Functions§
- decrypt_
file_ with_ password - Decrypt a password-mode file to the given output path.
- decrypt_
file_ with_ secret - Decrypt a public-key mode file using the recipient secret key (base64).
- encrypt_
file_ with_ password - Encrypt a file using a password-derived key (Argon2id).
- encrypt_
file_ with_ pubkey - Encrypt a file to a recipient Ed25519 public key (base64).
- generate_
keypair - Generate a new Ed25519 keypair (base64-encoded) for public-key mode.
- read_
header_ from_ file - Read and parse the renc header from an encrypted file.