Skip to content

simple demonstration of a frequency attack on a Vigenère cipher

Notifications You must be signed in to change notification settings

tsaglam/VigenereFrequencyAttack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Vigenere Frequency Attack

A simple demonstration of a frequency attack on a Vigenère cipher implemented in Haskell. This attack is based on the Friedman test and frequency analysis.

Call decodeVigenere code 5 to decode the cipher text code with a maximal key length of 5.

The cipher text code is:

GGAAKWRJTUWQHWSGAOAADBFTCGLYSFGWRCGLYASPGNSARZANTLHNLCBFTESRLLOJZAGOEGWNQLOGZIACPRGPYWNBLOADYPSRRLHRQCNJENDOGLHRHRBTLREIFOESWEYVIFWMCGWRJEQOESWEYDIXWWRUAALDBSNLLHVFGNTOHLIGKOJWMNQAFOEYDNBLTEQIGKGBANTLOOWAYGNTHRBUEFKBHLTUSTFLAELIAYTBUHNFGRLHRLEPZNVUAYUOZEUAATLSNQSSCWCVSLFZOHLOHLTBWVRJYHFDRJPNADNFDBNEEOOECEQKTHVEALOHLTUWRROOECIAYOALHVKYBMAEWTUWNBTLRSTYSSYAFGANTMPGZETDOOWIAGUEOIYVLLANRIUVLAODEPMREWNGKYFLEZASVFAYGTBXWNQLRXTUGLQANTLHRTATGNGZIFGNRTYIARGMEBXTUWNNLUEWOSLHRHRBTLRESOMTGZAGKNBLAYDBNVTJGTUGUFSNQLHVJTRWNSGRNDOGGFRFGVFERJSNFDEWSRSRPZEFOAFSKVFDBXAGGMVUMBEEALFBJCBEPHLEEKCVWNPWMHUHYAKRHHLKIPKPBKTZSNUSTGSNCJOWWCGSNRFTVJESAEYVOSJEFWAEUHGZAGOAFTRBSDYQACGLVLIPSLEWAYAZRVTUSTJGRXANGWNQWDGGIZHRBNEGZEUMMNFCBFDVLIBFCBMLQSLFGBRKUONEELEQLOQWGESDRATRVWNJDFFOJVEA

About

simple demonstration of a frequency attack on a Vigenère cipher

Topics

Resources

Stars

Watchers

Forks