The Python Script will let you encrypt the PDF with one OWNER and one USER password respectively. It uses PyPDF2 package to work with the PDF files.
-
Download and install Python if not in your local system.
-
Downlaod the required packages
pip install PyPDF2
- To run the script you need to use the following command
python pdfEncryption.py
- Make sure that the PDF to be encrypted is in that same folder as of this python code file.