This project is an interactive application for encrypting and decrypting text using various algorithms. It uses an object-oriented approach in Python and provides a user-friendly interface with ipywidgets
.
- Encryption and Decryption: Supports multiple encryption and decryption algorithms.
- Interactive Interface: Uses
ipywidgets
for a dynamic user interface. - Algorithm Selection: Choose from different encryption algorithms.
- Key Selection: Specify encryption/decryption keys.
- Save Results: Save encrypted and decrypted text to a file.
- Caesar Cipher
- Base64 Encoding
- Vigenère Cipher
- Python 3.x
ipywidgets
library
You can install ipywidgets
using pip:
pip install ipywidgets
The base class Cipher
and subclasses for specific algorithms like CaesarCipher
, Base64Cipher
, and VigenereCipher
are defined. These classes include methods for encryption and decryption.
The EncryptionApp
class sets up the user interface using ipywidgets
. The interface includes text boxes for input, dropdowns for algorithm selection, and buttons for encrypting, decrypting, and saving results.
- Set up your environment: Make sure you have Python and
ipywidgets
installed. - Run the code: Execute the code in a Jupyter Notebook.
- Use the interface: Enter text, select an algorithm, input a key, and click the buttons to encrypt, decrypt, and save results.
This project is licensed under the MIT License.