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

Function encrypt_message

ciphers/vigenere_cipher.py:20–25  ·  view source on GitHub ↗

>>> encrypt_message('HDarji', 'This is Harshil Darji from Dharmaj.') 'Akij ra Odrjqqs Gaisq muod Mphumrs.'

(key: str, message: str)

Source from the content-addressed store, hash-verified

18
19
20def encrypt_message(key: str, message: str) -> str:
21 """
22 >>> encrypt_message('HDarji', 'This is Harshil Darji from Dharmaj.')
23 'Akij ra Odrjqqs Gaisq muod Mphumrs.'
24 """
25 return translate_message(key, message, "encrypt")
26
27
28def decrypt_message(key: str, message: str) -> str:

Callers 1

mainFunction · 0.70

Calls 1

translate_messageFunction · 0.70

Tested by

no test coverage detected