pub fn encrypt_content(
plaintext: &str,
password: &str,
params: &EncryptionParams,
) -> Result<EncryptedContent, EncryptionError>Expand description
Encrypt content for client-side decryption.
This uses AES-256-GCM with PBKDF2-SHA256 key derivation, matching the Web Crypto API implementation in scripts.rs.
ยงNote
This is the production encryption path for feature-enabled HTML export. It intentionally uses the same algorithm and parameter contract as the browser-side Web Crypto decryptor so exported pages can be decrypted client-side without a server round-trip.