Alohomora is a Python project that provides encryption and decryption functionality for files and directories using user-generated RSA key pairs. It ensures high security by utilizing 4096-bit encryption.
Encrypt file, Encrypt directory, Decrypt file, Decrypt directory, RSA encryption, RSA decryption, RSA file encryption
To use Alohomora, you need to have the cryptography
module installed. If you don't have it, you can install it by running any of the following command:
pip install cryptography
pip3 install cryptography
If you already have RSA key pairs, then paste it into the .KEYS/
directory with Private Key
file named of PRIVATE_KEY.pem
and Public Key
file named of PUBLIC_KEY.pem
.
If you don't have RSA Key pairs, then you can generate RSA key pairs from main menu. Please do only use 4096
bits as it works perfectly fine.
To run Alohomora file encryption/decryption tool, To get started, you can use any of the following commands:
python3 alohomora.py
py alohomora.py
python alohomora.py
After encryption/decryption, please destroy your both key files in .KEYS/
directory so no one can access your secrets!
- Generate RSA key pairs
- Load Keys from .KEYS/ directory
- Encrypt file or directory
- Decrypt file or directory
Contributions to Alohomora are welcome! If you would like to contribute, please follow these steps:
- Fork the repository
- Create a new branch for your feature or bug fix
- Develop and test your changes
- Commit your changes and push them to your forked repository
- Open a pull request to submit your contribution