Skip to main content

Crate renc

Crate renc 

Source
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§

DoneInfo
Completion info for encrypt/decrypt operations.
Header
Parsed header for the renc v1 format.
KdfParams
Argon2id parameter set stored in renc headers.
Keypair

Enums§

Mode
Encryption mode stored in the header.
RencError
Errors emitted by renc operations.

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.