Enum PdfDefaultEncryption
Typical settings to initialize encryption with. With PdfDefaultEncryption, the encryption can be set automized using PdfStandardSecurityHandler.SetPermission() with one single parameter.
public enum PdfDefaultEncryption
Fields
Default = 1
Use V4UsingAES, the most recent encryption method not requiring PDF 2.0.
None = 0
Do not encrypt the PDF file.
V1 = 2
Encrypt with Version 1 (RC4 and a file encryption key length of 40 bits).
V2With128Bits = 4
Encrypt with Version 2 (RC4 and a file encryption key length of more than 40 bits, PDF 1.4) with a file encryption key length of 128 bits. This was the default encryption in PDFsharp 1.5.
V2With40Bits = 3
Encrypt with Version 2 (RC4 and a file encryption key length of more than 40 bits, PDF 1.4) with a file encryption key length of 40 bits.
V4UsingAES = 6
Encrypt with Version 4 (RC4 or AES and a file encryption key length of 128 bits using a crypt filter, PDF 1.5) using AES (PDF 1.6).
V4UsingRC4 = 5
Encrypt with Version 4 (RC4 or AES and a file encryption key length of 128 bits using a crypt filter, PDF 1.5) using RC4.
V5 = 7
Encrypt with Version 5 (AES and a file encryption key length of 256 bits using a crypt filter, PDF 2.0).