Function lopdf::encryption::get_encryption_key
source ยท pub fn get_encryption_key<P>(
doc: &Document,
password: P,
check_password: bool,
) -> Result<Vec<u8>, DecryptionError>
Expand description
Generates the encryption key for the document and, if check_password
is
true, verifies that the key is correct.