Class EncryptionLevel
Specifies the encryption algorithm and key length used to protect a PDF document.
Inherited Members
Namespace: DRIT.Pdf.Security
Assembly: DRIT.Pdf.dll
Syntax
public sealed class EncryptionLevel
Constructors
EncryptionLevel(EncryptionAlgorithm, int)
Creates a custom encryption level.
Declaration
public EncryptionLevel(EncryptionAlgorithm algorithm, int keyBits)
Parameters
| Type | Name | Description |
|---|---|---|
| EncryptionAlgorithm | algorithm | |
| int | keyBits |
Fields
Aes128
AES-128 (Revision 4).
Declaration
public static readonly EncryptionLevel Aes128
Field Value
| Type | Description |
|---|---|
| EncryptionLevel |
Aes256
AES-256 (Revision 6) — the default.
Declaration
public static readonly EncryptionLevel Aes256
Field Value
| Type | Description |
|---|---|
| EncryptionLevel |
Properties
Algorithm
Encryption algorithm.
Declaration
public EncryptionAlgorithm Algorithm { get; }
Property Value
| Type | Description |
|---|---|
| EncryptionAlgorithm |
KeyBits
Key length in bits (128 or 256).
Declaration
public int KeyBits { get; }
Property Value
| Type | Description |
|---|---|
| int |