mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-09-22 20:13:58 +08:00
add support for aes-128 decryption #34
This commit is contained in:
@@ -358,7 +358,7 @@
|
||||
|
||||
if (useAes)
|
||||
{
|
||||
throw new PdfDocumentEncryptedException("Decryption for AES-128 not currently supported.", encryptionDictionary);
|
||||
return AesEncryptionHelper.Decrypt(data, finalKey);
|
||||
}
|
||||
|
||||
return RC4.Encrypt(finalKey, data);
|
||||
|
Reference in New Issue
Block a user