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

Function encryptMessage

ciphers/simple_substitution_cipher.py:31–36  ·  view source on GitHub ↗

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

(key, message)

Source from the content-addressed store, hash-verified

29 sys.exit('Error in the key or symbol set.')
30
31def encryptMessage(key, message):
32 """
33 >>> encryptMessage('LFWOAYUISVKMNXPBDCRJTQEGHZ', 'Harshil Darji')
34 'Ilcrism Olcvs'
35 """
36 return translateMessage(key, message, 'encrypt')
37
38def decryptMessage(key, message):
39 """

Callers 1

mainFunction · 0.70

Calls 1

translateMessageFunction · 0.70

Tested by

no test coverage detected