Skip to content

Enum EncryptionVersion

Namespace: OfficeOpenXml
Assembly: EPPlus.dll

The major version of the Encryption

public enum EncryptionVersion

Fields

Standard = 0

Standard Encryption. Used in Excel 2007 and previous version with compatibility pack. Default AES 128 with SHA-1 as the hash algorithm. Spincount is hardcoded to 50000

Agile = 1

Agile Encryption. Used in Excel 2010- Default.

ProtectedBySensibilityLabel = 2

The workbook is protected by a sensitiviy label. For EPPlus to work with this type of encryption you need to set a SensibilityLabelHandler that handels the decryption/encryption using the Microsoft MIPS API.