Creates a new V2 crypt filter with RC4 encryption.
Configuration options including key length.
Authentication event trigger.
Crypt filter method identifier.
Key length in bits.
Protected OptionalsecuritySecurity handler for cryptographic operations.
Gets an RC4 cipher for encryption/decryption.
OptionalobjectNumber: numberThe PDF object number for key derivation.
OptionalgenerationNumber: numberThe PDF generation number for key derivation.
An RC4 cipher instance.
Gets the current security handler.
The security handler, or undefined if not set.
Sets the security handler for this crypt filter.
The security handler to use for key derivation.
Converts this crypt filter to a PDF dictionary representation.
The crypt filter dictionary.
V2 crypt filter using RC4 encryption. Implements the legacy RC4 stream cipher for PDF encryption.
Example