AESCipher
Overview
AESCipher is a class in Aspose.Pdf FOSS for Java.
AES cipher for PDF encryption and decryption — CBC mode.
Methods
| Signature | Description |
|---|---|
encrypt(key: byte[], data: byte[]) → byte[] | Encrypts data using AES-CBC with PKCS5 padding and a random IV. |
encryptWithIV(key: byte[], iv: byte[], plaintext: byte[]) → byte[] | Encrypts data using AES-CBC with an explicit IV and no padding. |
decrypt(key: byte[], data: byte[]) → byte[] | Decrypts AES-CBC encrypted data. |
decryptWithIV(key: byte[], iv: byte[], cipherText: byte[]) → byte[] | Decrypts with explicit IV (for R=6 key recovery where IV is all zeros). |