This application provides a graphical user interface (GUI) for performing Caesar Cipher encryption and decryption using Python's Tkinter library.
-
Encryption: Encrypts text using a Caesar Cipher with a specified shift value.
-
Decryption: Decrypts text using a Caesar Cipher with a specified shift value.
-
Clear: Resets the input fields and clears the result display.
-
Prepare Image Files:
- Place the following images in the same directory as the script:
encrypt.png
- Image for the Encrypt buttondecrypt.png
- Image for the Decrypt buttonreset.png
- Image for the Clear button
- Place the following images in the same directory as the script:
-
Run the Application:
- Ensure Python 3.x is installed on your system.
- Execute the script file using Python to start the application:
python caesar_cipher_gui.py
-
Using the Application:
- Enter Text: Input the text you wish to encrypt or decrypt in the "Enter Text" field.
- Shift: Enter the shift value for the Caesar Cipher in the "Shift" field.
- Encrypt: Click the Encrypt button (with the custom image) to encrypt the text.
- Decrypt: Click the Decrypt button (with the custom image) to decrypt the text.
- Clear: Click the Clear button (with the custom image) to reset the input fields and result.
To use your own images for the buttons:
-
Prepare Your Images:
- Make sure your images are in PNG format and appropriately sized (e.g., 100x50 pixels).
-
Rename and Replace:
- Replace the existing images with your custom images:
encrypt.png
for the Encrypt buttondecrypt.png
for the Decrypt buttonreset.png
for the Clear button
- Replace the existing images with your custom images:
-
Ensure Image Paths:
- Verify that the image files are in the same directory as the script.
- Error Loading Images: If images do not load, check that they are in PNG format, correctly named, and located in the same directory as the script. Ensure no file path issues are present.
This project is open-source and available for personal or educational use. Feel free to modify and share it as you like.
- Tkinter documentation and Python community resources.