This Java program provides a simple encryption and decryption functionality based on user input.
- Encrypts plaintext using a specified encryption key.
- Decrypts ciphertext using a specified decryption key.
-
Select Operation:
-
Enter 1 for encryption.
-
Enter 2 for decryption.
For encryption, enter the plaintext and encryption key. For decryption, enter the ciphertext and decryption key.
View Results:
The program will display the encrypted or decrypted text.