from ivocipher_module import cipher_char, cipher_word, decipher_char, decipher_word if __name__ == "__main__": print(cipher_char("T")) print(cipher_word("hovno")) print(decipher_char("d")) print(decipher_word("ry fxy")) print(decipher_char(cipher_char("D"))) print(cipher_word("prd makovy")) print(decipher_word(cipher_word("Prd makovy"))) print(cipher_word("CICIFUK")) print(decipher_word(cipher_word("Prd makovy")))
// this program will ask the user to enter text as well as key // returns ciphered message from ivocipher_module import cipher_char, cipher_word, decipher_char, decipher_word if __name__ == "__main__": message = input("Put here a message you want to crypt: "); key = input("Put now the key to encrypt a message: "); print("Now your message will be encrypted."); print ("Here is your encrypted message: " + cipher_word(message, key)); print("Exiting now");