This program uses Java to encrypt and decrypt messages by replacing the characters in the message by using an encryption key specified by the user Made with Java v11.0.
Ray Odero
This program uses the Caesar Cipher method of encryption to encrypt the messages. The characters in the message are replaced by new characters depending on the encryption key entered. The key shifts the characters forward depending on the key number and replaces the characters with the new characters as specified by the key. The user inputs a message then specifies how many positions they would like the characters of their message shifted by, the program then encrypts the message and outputs the encrypted message. The user can also use the program to decrypt the message by simply inputting the message that was encrypted the key that was used and pressing enter, the process being the same but this time in reverse.
Behaviour | Input | Output |
---|---|---|
Encrypt: “live long” | key: 2 | Encrypted: “NKXG NQPI” |
Decrypt: “NKXG NQPI” | key used: 2 | Decrypted: “LIVE LONG” |
Copy/Paste the project files and run the App.java file. Visit the live link on the project description.
Java
IntelliJ IDEA 2019.2 Community Edition
Reach out to us through ray.odero64@gmail.com
MIT 2021 ray-odero93