Property Encryption
- Namespace
- DocWright
- Assembly
- DocWright.dll
Encryption
Gets or sets the settings used to encrypt the saved package, or null to save it unencrypted (the default).
Encryption wraps the package the writer produced; it does not change what the writer produces. Decrypting the result therefore yields bytes identical to the same save with this property left null — which is asserted by test, and is what lets the unencrypted path keep its byte-for-byte determinism guarantee while the encrypted one necessarily gives it up to a random salt.
Only the DOCX writer honours this. Saving to a flow format with encryption requested raises UnsupportedFeatureException rather than quietly writing an unprotected file.
public AgileEncryptionSettings? Encryption { get; set; }