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

Function decrypt_message

ciphers/simple_substitution_cipher.py:42–47  ·  view source on GitHub ↗

>>> decrypt_message('LFWOAYUISVKMNXPBDCRJTQEGHZ', 'Ilcrism Olcvs') 'Harshil Darji'

(key: str, message: str)

Source from the content-addressed store, hash-verified

40
41
42def decrypt_message(key: str, message: str) -> str:
43 """
44 >>> decrypt_message('LFWOAYUISVKMNXPBDCRJTQEGHZ', 'Ilcrism Olcvs')
45 'Harshil Darji'
46 """
47 return translate_message(key, message, "decrypt")
48
49
50def translate_message(key: str, message: str, mode: str) -> str:

Callers 1

mainFunction · 0.70

Calls 1

translate_messageFunction · 0.70

Tested by

no test coverage detected