A simple program for RSA encryption, decryption, and signature generation.
- Generate RSA key pairs for encryption and decryption.
- Encrypt files using the recipient's public key.
- Decrypt files using the recipient's private key.
- Generate digital signatures for files using the sender's private key.
- Verify digital signatures using the sender's public key.
- Python 3.6 or above
- RSA, Pickle, YAML, GZip
- Clone the repository:
$ git clone https://github.com/arcaus/rsa.git
$ cd rsa- Install the required libraries:
pip install rsa
pip install pickle
pip install pyyaml- Run the script and choose the encryption option.
- Enter the path of the file you want to encrypt.
- A new ciphertext.pkl file has been generated with the encrypted data and the signature.
- Run the script and choose the decryption option.
- Enter the path of the file (ciphertext.pkl) you want to decrypt.
- You should receive the plaintext along with the verification status.
Contributions are welcome! Here's how you can contribute:
- Fork the repository.
- Create a new branch for your feature/bugfix: git checkout -b feature-name
- Commit your changes: git commit -m 'Add some feature'
- Push to the branch: git push origin feature-name
- Create a pull request.
Please ensure your pull request follows the project's coding conventions and style.
This project is licensed under the MIT License. Feel free to use, modify, and distribute it according to the terms of the license.