From a97d7f80b0e9ad2ebdc8d8ca5f0539131a029514 Mon Sep 17 00:00:00 2001 From: girishsrivatsa Date: Thu, 4 Feb 2021 16:46:42 +0530 Subject: [PATCH] updated remove punctuation with key based character filtering --- pycipher/adfgvx.py | 2 +- pycipher/autokey.py | 4 ++-- pycipher/base.py | 25 +++++++++++++------------ pycipher/delastelle.py | 4 ++-- pycipher/foursquare.py | 14 +++++++------- pycipher/playfair.py | 12 ++++++------ pycipher/polybius.py | 5 +++-- 7 files changed, 34 insertions(+), 32 deletions(-) diff --git a/pycipher/adfgvx.py b/pycipher/adfgvx.py index 1c87185..0f8c0b7 100644 --- a/pycipher/adfgvx.py +++ b/pycipher/adfgvx.py @@ -53,4 +53,4 @@ def decipher(self,string): return step1 if __name__ == '__main__': - print('use "import pycipher" to access functions') + print('use "import pycipher" to access functions') \ No newline at end of file diff --git a/pycipher/autokey.py b/pycipher/autokey.py index 5bfdb50..492561b 100644 --- a/pycipher/autokey.py +++ b/pycipher/autokey.py @@ -31,8 +31,8 @@ def encipher(self,string): ret = '' for (i,c) in enumerate(string): if i