SecureText is a simple tool that allows users to encrypt and decrypt text using a two-step process. The encryption script generates two passcodes, which are required to retrieve the original text using the decryption script.
- Encryption: Converts a piece of text into two long numeric strings.
- Decryption: Restores the original text using the two numeric strings in the correct order.
- Security: Use SecureText to safely encrypt sensitive information before sharing it over insecure channels.
- Data Integrity: Ensure that your text data is not tampered with during transmission by decrypting with the original passcodes.
- Privacy: Protect personal messages or confidential information by encrypting text before storing or sending.
Make sure you have Python installed on your machine. This project uses Python 3.
-
Clone the repository:
git clone https://github.com/adityadipakpatel/SecureText.git
cd SecureText -
(Optional) Create a virtual environment and activate it:
python -m venv env
source env/bin/activate # On Windows use `env\Scripts\activate`
-
Install the required packages (if any):
pip install -r requirements.txt
To encrypt a piece of text, run the encrypt.py script:
python encrypt.pyYou will be prompted to enter the text you wish to encrypt. The script will output two long strings of numbers, referred to as Pass1 and Pass2.
To decrypt the text, run the decrypt.py script:
python decrypt.pyYou will be prompted to enter Pass1 and Pass2. If entered correctly, the script will return the original text.
$ python encrypt.py
Enter the text to encrypt: HelloWorld
Pass1: 355863463932494276804378914434
Pass2: 639625819756877466497643720768
$ python decrypt.py
Enter Pass1: 355863463932494276804378914434
Enter Pass2: 639625819756877466497643720768
Original text: HelloWorldFeel free to fork this project, submit issues, and make pull requests. Contributions are always welcome.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions, please contact Aditya Patel.