This repository contains a Python script that demonstrates how to encrypt and decrypt PDF files using the PyPDF2 library. The script provides a simple graphical user interface (GUI) built with Tkinter, allowing users to select a PDF file, enter a password, and perform encryption or decryption operations.
- Python 3.x
- PyPDF2 library
-
Clone the repository:
git clone https://github.com/RahulPatil-Tech/PDF_Encryption_and_Decryption_with_Python.git
-
Navigate to the project directory:
cd pdf-encryption-decryption-python
-
Install the required dependencies:
pip install PyPDF2 pip install tk
-
Run the script:
App.py
-
The GUI window will appear. Click on the "Encrypt PDF" button to encrypt a PDF file or "Decrypt PDF" to decrypt a PDF file. Select the desired PDF file, enter a password, and click the corresponding button.
1. Encrypt PDF
2. Decrypt PDF
3. File Saved As
Contributions are welcome! If you have any suggestions, improvements, or bug fixes, please feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.