A simple implementation of RSA encryption and decryption in Python.
This code generates a pair of RSA keys, encrypts a file using the public key, and decrypts the encrypted file using the private key.
- Generates RSA keys
- Encrypts a file using the public key
- Decrypts the encrypted file using the private key
- Python 3.6 or later
- rsa library (
pip install rsa
)
- Clone the repository:
git clone https://github.com/Mayank-tech69/password-encryption.git
- Navigate to the project directory
- Run the code
- Follow the prompts to encrypt and decrypt a file
This project is licensed under the MIT License.
Contributions are welcome! Please submit a pull request with your changes.