Skip to content

savanddarji/Encryption-using-Vigener-Cipher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

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