MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / decryptMessage

Function decryptMessage

ciphers/simple_substitution_cipher.py:38–43  ·  view source on GitHub ↗

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

(key, message)

Source from the content-addressed store, hash-verified

36 return translateMessage(key, message, 'encrypt')
37
38def decryptMessage(key, message):
39 """
40 >>> decryptMessage('LFWOAYUISVKMNXPBDCRJTQEGHZ', 'Ilcrism Olcvs')
41 'Harshil Darji'
42 """
43 return translateMessage(key, message, 'decrypt')
44
45def translateMessage(key, message, mode):
46 translated = ''

Callers 1

mainFunction · 0.70

Calls 1

translateMessageFunction · 0.70

Tested by

no test coverage detected