• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class EncryptionLevel

Specifies the encryption algorithm and key length used to protect a PDF document.

Inheritance
object
EncryptionLevel
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
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
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX