This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Kasiski-Babbage cryptanalysis to get the text encripted with Vigenere | |
import fractions | |
import functools | |
import re #Import regular expresions | |
from collections import Counter | |
#---------------------------------------------------------------------------------------------- | |
#Search for the words with the given frecuency and length | |
# @originalString [string]: the original text |