An encryption programme that can encrypt or decrypt text based on either one or two keys, based on user's choice.
It is a type of substitution cipher in which each letter in the plaintext is replaced by a letter some fixed number of positions down the alphabet.
Encrypt using one key - Put the text to be encrypted in a '.txt' file called "decrypted.txt" and put the file in the root folder. The key to use for encryption can be assigned to 'key' variable in line 37. Then run "CaesarCipher.java". The encrypted text will be placed in a file called "encrypted.txt".
Decrypt using one key - Put the text to be decrypted in a '.txt' file called "encrypted.txt" and put the file in the root folder. Then run "CaesarBreaker.java". The decrypted text will be placed in a file called "decrypted.txt".
Encrypt using two key - Put the text to be encrypted in a '.txt' file called "decrypted.txt" and put the file in the root folder. The key to use for encryption can be assigned to 'key1' and 'key2' variable in line 26 and 27. Then run "CaesarCipherTwoKey.java". The encrypted text will be placed in a file called "encrypted.txt".
Decrypt using two key - Put the text to be decrypted in a '.txt' file called "encrypted.txt" and put the file in the root folder. Then run "CaesarBreakerTwoKey.java". The decrypted text will be placed in a file called "decrypted.txt".