Table of Contents

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

plaintextPackage Stream

The OOXML package bytes to protect.

output Stream

The stream receiving the encrypted compound file.

settings AgileEncryptionSettings

The encryption settings.

Exceptions

ArgumentNullException

An argument is null.