Method Encrypt
- Namespace
- DocWright.Cryptography
- Assembly
- DocWright.Cryptography.dll
Encrypt(Stream, Stream, AgileEncryptionSettings)
Encrypts a plaintext package.
public static void Encrypt(Stream plaintextPackage, Stream output, AgileEncryptionSettings settings)
Parameters
plaintextPackageStreamThe OOXML package bytes to protect.
outputStreamThe stream receiving the encrypted compound file.
settingsAgileEncryptionSettingsThe encryption settings.
Exceptions
- ArgumentNullException
An argument is null.