- Author: Nicola Asuni <info@tecnick.com>
- Copyright: 2011-2026 Nicola Asuni - Tecnick.com LTD
- License: https://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE)
- Source: https://github.com/tecnickcom/tc-lib-pdf-encrypt
Com\Tecnick\Pdf\Encrypt
Classes:
- Compute: Computes the PDF encryption data.
- Data: Encryption constants and settings.
- Decrypt: Authenticates a password (or private key for public-key mode) against a PDF encryption dictionary and recovers the document file-encryption key.
- Encrypt: Encrypts data for PDF documents.
- Exception: Custom Exception class
- Output: Generates the PDF encryption dictionary.
Com\Tecnick\Pdf\Encrypt\Type
Classes:
- AES: AES
- AESnopad: AES no-padding
- AESSixteen: AESSixteen 16 bytes = 128 bit
- AESThirtytwo: AESThirtytwo 32 bytes = 256 bit
- MDFiveSixteen: MD5-16
- RCFour: RC4 is the standard encryption algorithm used in PDF format
- RCFourFive: RC4-40 is the standard encryption algorithm used in PDF format The key length is 5 bytes (40 bits)
- RCFourSixteen: RC4-128 is the standard encryption algorithm used in PDF format The key length is 16 bytes (128 bits)
- Seed: generate random seed