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

Function decrypt_message

ciphers/mono_alphabetic_ciphers.py:39–44  ·  view source on GitHub ↗

>>> decrypt_message("QWERTYUIOPASDFGHJKLZXCVBNM", "Hello World") 'Itssg Vgksr'

(key: str, message: str)

Source from the content-addressed store, hash-verified

37
38
39def decrypt_message(key: str, message: str) -> str:
40 """
41 >>> decrypt_message("QWERTYUIOPASDFGHJKLZXCVBNM", "Hello World")
42 'Itssg Vgksr'
43 """
44 return translate_message(key, message, "decrypt")
45
46
47def main() -> None:

Callers 1

mainFunction · 0.70

Calls 1

translate_messageFunction · 0.70

Tested by

no test coverage detected