encryptOdfEntry

fnubyte[] encryptOdfEntry(const(ubyte)[] plaintext, string password, ref OdfEncryptionParams params)

Encrypts ODF content using AES-256-CBC with PBKDF2 key derivation.

Parameters

plaintextThe raw content bytes to encrypt.
passwordThe encryption password.
paramsThe encryption parameters (salt and IV will be generated if empty).

Returns

The encrypted bytes. The params struct is updated with the

generated salt, IV, and checksum.