Click or drag to resize

SecurityHandler Constructor (Int32, Int32)

Create a standard security handler

Namespace:  pdftron.SDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public SecurityHandler(
	int key_len,
	int enc_code
)

Parameters

key_len
Type: SystemInt32
The bit length of the encryption key (40 or 128 bit).
enc_code
Type: SystemInt32
The encryption algorithm identifier. The number corresponds to the V entry in encryption dictionary. Currently allowed values are(see Table 3.18 in PDF Reference Manual v1.6 for more details):
  1. Encryption using 40-bit RC4 algorithm.
  2. Encryption using 128-bit RC4 algorithm. Available in PDF 1.4 and above.
  3. This algorithm was deprecated by PDF standard and is not supported.
  4. Encryption using Crypt filters and 128-bit AES(Advanced Encryption Standard) algorithm. Available in PDF 1.6 and above.
See Also