A Python-based tool to easily encrypt and decrypt files with strong encryption. This project is designed to help users protect their sensitive files by encrypting them and then securely decrypting them when needed.
- Encrypt files with a passphrase (basic encryption).
- Decrypt encrypted files back to their original form.
- Supports valid file extensions for encryption and decryption operations.
- Python 3.7+
- Cryptography library (for encryption/decryption)
You can install the required dependencies by running:
pip install -r requirements.txt
cryptography
: A library to handle encryption and decryption.
- To encrypt a file, use the
encrypt_files
function. The function will encrypt one or more files and save the encrypted version.
Example:
from module_name import encrypt_files
file_path = 'path/to/file1.pdf' # file to encrypt
key = b'your-secret-key-here' # key for encryption (must be 32 bytes)
# Automatically generated be encrypt_files
encrypt_files(file_path, key)
- To encrypt a file, use the
decrypt_files
function. The function will decrypt one or more files and save the decrypted version.
Example:
from module_name import decrypt_files
file_path = 'path/to/file1.pdf' # file to decrypt
key = b'your-secret-key-here' # key for decryption (must be 32 bytes)
# Automatically generated be decrypt_files
decrypt_files(file_path, key)
-
This tool supports encryption and decryption only for files with the following extensions:
txt
pdf
docx
jpg
mp4
mkv
-
Files with unsupported extensions will not be processed.
We welcome contributions to this project!
Here are ways you can help:
- Report bugs or request features via GitHub Issues.
- Fork the repository and submit a pull request for improvements or new features.
- Fork this repository.
- Create a new branch for your feature or fix.
- Make your changes.
- Test your changes thoroughly.
- Submit a pull request describing your changes.
- For large changes, please open an issue first to discuss it.
This project is licensed under the MIT License. See the LICENSE file for more details.
For any questions or suggestions, please contact the project maintainer at