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

Function decrypt

ciphers/porta_cipher.py:55–60  ·  view source on GitHub ↗

>>> decrypt('marvin', 'QRACRWU') 'JESSICA'

(key: str, words: str)

Source from the content-addressed store, hash-verified

53
54
55def decrypt(key: str, words: str) -> str:
56 """
57 >>> decrypt('marvin', 'QRACRWU')
58 'JESSICA'
59 """
60 return encrypt(key, words)
61
62
63def get_position(table: tuple[str, str], char: str) -> tuple[int, int]:

Callers 1

porta_cipher.pyFile · 0.70

Calls 1

encryptFunction · 0.70

Tested by

no test coverage detected