Exemple #1
0
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)))
Exemple #2
0
def PlayfairDE(mode):
    kek = Playfair()
    text = Files.ReadFromFile()
    Files.WriteInFile(kek.encryptDecrypt(mode, kek.NormilizeText(text)))
Exemple #3
0
def dechipherVig(key):
    key = str(key)
    kek = Vigenere()
    text = Files.ReadFromFile()
    Files.WriteInFile(kek.decrypt(key, kek.NormilizeText(text)))
Exemple #4
0
def DechipherRail(key):
    kek = RailRoadHedge()
    text = Files.ReadFromFile()
    Files.WriteInFile(kek.Decode(key, text))
Exemple #5
0
def cipherRail(key):
    key = int(key)
    kek = RailRoadHedge()
    text = Files.ReadFromFile()
    Files.WriteInFile(kek.Encode(key, kek.NormilizeText(text)))