X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=szyfrow%2Fautokey.py;h=b9e2184275c6a68e898ce42f5b0fa625bd362af8;hb=b535d9d75e69cc395e8de28c99e38564655e5ac9;hp=11bfa6bdea506fc51e78e6ccfee2a3a46cefae75;hpb=f19a021eabb3222709b9d513839a14c01cfdfd38;p=szyfrow.git diff --git a/szyfrow/autokey.py b/szyfrow/autokey.py index 11bfa6b..b9e2184 100644 --- a/szyfrow/autokey.py +++ b/szyfrow/autokey.py @@ -1,3 +1,6 @@ +"""Enciphering and deciphering using the [Autokey cipher](https://en.wikipedia.org/wiki/Autokey_cipher). +Also attempts to break messages that use a Autokey cipher. +""" import math import multiprocessing from szyfrow.support.utilities import * @@ -30,7 +33,6 @@ def autokey_decipher(ciphertext, keyword): return cat(plaintext) - def autokey_sa_break( message , min_keylength=2 , max_keylength=20