AES 256-bit encryption in pdf file

I am working on PDF security and trying to encrypt the password of the user and owner using AES 256-bit encryptionalgo.

I have successfully generated these keys (using the library crypto), but when these keys are written in PDFthe encryption dictionary, they do not seem to work. ( Acrobatdoes not open file)

I learned iTextSharpthat encrypts a file PDF. Now I want to decrypt this file so that some of them understand how it did iTextSharp. But, unfortunately, I did not find any tool for this. A file encrypted with iTextSharpis opened correctly in Adobe Acrobat.

+4
source share
1 answer

when encrypting keys, you must use SASLprep (IETF RFC 4013) of the stringprep profile (IETF RFC 3454). I want to add that ICU lib can easily generate a SASLprep profile (IETF RFC 4013).

0
source

All Articles