This is a simple Python program that allows you to encrypt and decrypt messages using base64 encoding.
- Python 3.x
- No additional Python packages are required. The program uses the built-in
base64
module.
- Clone the repository or download the
main.py
file. - Open a terminal or command prompt and navigate to the project directory.
- Run the program by executing the following command:
python main.py
. - Enter 'e' to encrypt a message or 'd' to decrypt an encrypted message.
- Follow the prompts and provide the necessary inputs.
- The program will display the encrypted or decrypted text accordingly.
$ python main.py
Enter 'e' to encrypt a message, 'd' to decrypt an encrypted message: e
Enter the text: Hello, World!
Encrypted text: SGVsbG8sIFdvcmxkIQ==
$ python main.py
Enter 'e' to encrypt a message, 'd' to decrypt an encrypted message: d
Enter the encrypted text: SGVsbG8sIFdvcmxkIQ==
Decrypted text: Hello, World!
This project is licensed under the MIT License.