MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / main

Function main

ciphers/mono_alphabetic_ciphers.py:47–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45
46
47def main() -> None:
48 message = "Hello World"
49 key = "QWERTYUIOPASDFGHJKLZXCVBNM"
50 mode = "decrypt" # set to 'encrypt' or 'decrypt'
51
52 if mode == "encrypt":
53 translated = encrypt_message(key, message)
54 elif mode == "decrypt":
55 translated = decrypt_message(key, message)
56 print(f"Using the key {key}, the {mode}ed message is: {translated}")
57
58
59if __name__ == "__main__":

Callers 1

Calls 2

encrypt_messageFunction · 0.70
decrypt_messageFunction · 0.70

Tested by

no test coverage detected