savanddarji / Encryption-using-Vigener-Cipher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Encryption-using-Vigener-Cipher

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 (size less than plain text - needs to be enlish letters(A-Z or a-z)

The sample result is shown as below:

Please enter your plain text:                                                                                                             OnceuponatimetherelivedalioninaforestOnedayafteraheavymealItwassleepingunderatreeAfterawhiletherecameamouseanditstarttoplayonthelion       SuddenlytheliongotupwithangerandlookedforthosewhodisturbeditsnicesleepThenitsawasmallmousestandingtremblingwithfearThelionjumpedonit       andstartedtokillitThemouserequestedtheliontoforgiveitThelionfeltpityandleftitThemouseranaway
Enter the encryption key:JMD

Your encrypted Text the key jmd is:
xzfngsxzdcupnfkndhuuynpduurwuqjrraqvcaqnpdhmicqujthjhbvqduuwfmvbxhnblwsxwphamwaqhjrwnddftluqwqqunodvqdvaxbqdwplcewjdwnpwxbojkrwfknxl       xzvdpgnzohfknxlxzjxfxyilctdwshamqmxrxwhmrrafkxehftrmuvcgukqgrfvwufneonqscthwuwbmzjepjxovaxbqvcmqmuqpfunyeuuqpilctinmucthuurwvxvbhmaq       rfdwpvcmucqgcanrxorfwqqpxgvndhzghbfhmfknxlxzwxrrasleqlcfknxlxzinxwyuwhmqmxhoflcfknyrdehamqjidh

Note : If you want to recover your plain text from generated above result then you can use https://github.com/savanddarji/Cracking-a-Vigenere-Cipher