Click or drag to resize
Pdf Library for .NET

PdfEncryptionAlgorithm Enumeration

The encryption algorithm used for PDF security.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.HtmlToPdf.Universal (in SelectPdf.HtmlToPdf.Universal.dll) Version: 26.4
Syntax
public enum PdfEncryptionAlgorithm
Members
Member nameValueDescription
RC41 RC4 encryption algorithm.
AES2 AES encryption algorithm.
AESGCM3 AES-GCM (Galois/Counter Mode) encryption algorithm (PDF 2.0). Uses a 256-bit key (EncryptKey256Bit).
Example
PdfDocument doc = new PdfDocument();
doc.Security.Algorithm = PdfEncryptionAlgorithm.AES;
doc.Security.UserPassword = "open-me";
See Also