def cipherVig(key): #key = int(key) key = str(key) kek = Vigenere() text = Files.ReadFromFile() print('text:', kek.NormilizeText(text), 'key:', key) #a = input() Files.WriteInFile(kek.encrypt(key, kek.NormilizeText(text)))
def PlayfairDE(mode): kek = Playfair() text = Files.ReadFromFile() Files.WriteInFile(kek.encryptDecrypt(mode, kek.NormilizeText(text)))
def dechipherVig(key): key = str(key) kek = Vigenere() text = Files.ReadFromFile() Files.WriteInFile(kek.decrypt(key, kek.NormilizeText(text)))
def DechipherRail(key): kek = RailRoadHedge() text = Files.ReadFromFile() Files.WriteInFile(kek.Decode(key, text))
def cipherRail(key): key = int(key) kek = RailRoadHedge() text = Files.ReadFromFile() Files.WriteInFile(kek.Encode(key, kek.NormilizeText(text)))