Skip to main content

Module v1

Module v1 

Source
Expand description

Version 1 implementation of the encryption protocol

Uses XChaCha20-Poly1305 with Argon2id key derivation. Version 1 of the encryption protocol.

Uses XChaCha20-Poly1305 with Argon2id key derivation. Unlike later versions, the header fields are not authenticated. This format is legacy: new files are always written as v3, and v1 support exists only to decrypt and list existing files via [file::EncryptedFile::decrypt] and [header::FileHeader::decrypt_filename].

This module is deliberately independent of crate::v2: the two formats share no code, so changes to one can never silently alter the other.

Modules§

crypt
Encryption and decryption primitives.
file
Encrypted file structures and whole-file decrypt operations.
header
File header structures and serialization.
key
Key derivation parameters and operations.

Constants§

ALGORITHM
The AEAD algorithm used by every v1 file.