Comments and reviews will be appreciated: darji@uwindsor.ca or savanddarji@gmail.com
The code converts plain text into shift cipher text.
It requires two inputs: 1. Plain text (any size - needs to be enlish letters(A-z or a-z) and 2. Key (single number between 1 to 25)
Each letter of plain text increments by 'key' number i.e. key = 5, 'a' in plain text will be 'f'.
The sample result is shown as below:
Enter the cipher text: OnceuponatimetherelivedalioninaforestOnedayafteraheavymealItwassleepingunderatreeAfterawhiletherecameamouseanditstartedtoplayonthelionSuddenlytheliongotupwithangerandlookedforthosewhodisturbeditsnicesleepThenitsawasmallmousestandingtremblingwithfearThelionjumpedonitandstartedtokillitThemouserequestedtheliontoforgiveitThelionfeltpityandleftitThemouseranaway.
Enter the Key:6
Your shift ciphered text for the given key: utikavutgzoskznkxkrobkjgroutotgluxkyzutkjgeglzkxgnkgbeskgrozcgyyrkkvotmatjkxgzxkkglzkxgcnorkznkxkigskgsuaykgtjozyzgxzkjzuvrgeutznkroutyajjktreznkroutmuzavcozngtmkxgtjruuqkjluxznuykcnujoyzaxhkjozytoikyrkkvznktozygcgysgrrsuaykyzgtjotmzxkshrotmcoznlkgxznkroutpasvkjutozgtjyzgxzkjzuqorrozznksuaykxkwakyzkjznkroutzuluxmobkozznkroutlkrzvozegtjrklzozznksuaykxgtgcgeh
Note : If you want to recover your plain text then you can use https://github.com/savanddarji/Cracking-a-Shift-Cipher