A Python-based encryption and decryption tool. This program allows you to securely encrypt and decrypt text strings using a unique character map while adding a fun visual touch with ASCII art.
- Encrypt Strings: Transform any text into an encrypted format using randomly assigned special characters.
- Decrypt Strings: Easily decrypt encrypted text using stored encryption maps.
- ASCII Art Integration:
- Dynamically generate ASCII art for user input.
- Secure Map Storage: Each encryption process generates a unique encryption map stored in a
.pklfile for secure and later decryption.
- Encryption:
- Generates a random encryption map for all unique characters in the input string.
- Preserves spaces and non-alphabetic characters.
- Saves the encryption map as a
.pklfile for later use.
- Decryption:
- Allows you to select the correct map from saved files.
- Reverses the encryption map to decrypt the text.
- Python 3.7+
- Install the required libraries:
pip install pyfiglet
git clone https://github.com/your-username/ascii-encryptor.git
cd ascii-encryptorRun the tool using:
python encryptor.py- Select the encryption option (1).
- Enter the string you want to encrypt.
- View the generated ASCII art and encrypted string.
- The encryption map is saved automatically (e.g.,
encryption_map_1690001234.pkl).
- Select the decryption option (2).
- Choose the correct encryption map from the displayed list.
- Enter the encrypted string.
- View the decrypted text.
ascii-encryptor/
├── encryptor.py # Main Python script
├── encryption_maps/ # Folder to store encryption maps (created dynamically)
└── README.md # Project documentation
- Randomized Encryption Maps: Each encryption session generates a unique mapping for security.
- Storage of Maps: Encryption maps are stored in
.pklfiles for retrieval.
We welcome contributions! To contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature-name. - Commit your changes:
git commit -m 'Add feature-name'. - Push to the branch:
git push origin feature-name. - Submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
- ASCII art generation powered by pyfiglet.
- Inspired by the fun and creativity of text-based tools.