EncryptionOptions.Type Property
Gets or sets the encryption mechanism used to create a password-protected workbook.
Namespace: DevExpress.Office.Crypto
Assembly: DevExpress.Printing.v18.2.Core.dll
Declaration
Property Value
Type | Description |
---|---|
ModelEncryptionType | One of the ModelEncryptionType enumeration values specifying the type of encryption. The default is ModelEncryptionType.Strong. |
Available values:
Name | Description |
---|---|
Compatible | Standard encryption for OpenXml (.xlsx) files that uses a binary EncryptionInfo structure. The encryption algorithm is Advanced Encryption Standard (AES) and SHA-1 is used as the hashing algorithm. Supported in Excel 2007 and higher. |
Strong | Agile encryption for OpenXml (.xlsx) files that uses an XML EncryptionInfo structure. Default encryption algorithm is AES-128. Supported in Excel 2010 and higher. |
Remarks
The Type property is applicable only to the XLSX files and is ignored if you export a workbook to XLS format. For XLS files, the RC4 encryption is used.
To specify an encryption password, use the EncryptionOptions.Password property.