claird / PyPDF4

A utility to read and write PDFs with Python
obsolete-https://pythonhosted.org/PyPDF2/
Other
328 stars 61 forks source link

AES encryption #23

Open jyy1082 opened 5 years ago

jyy1082 commented 5 years ago

Does this project support AES 128/256 encryption?

acsor commented 5 years ago

PyPDF indeed supports file encryption, but I never worked on that feature nor can say how it was implemented. For finding it out yourself, check the PdfFileReader and PdfFileWriter classes in pdf.py.

There's another annexed, similar module, that you might consider, namely filters.py. It has no encryption mechanisms but just primitives to compress/decompress data inside PDF filters.