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

Function test_running_key_encrypt

ciphers/running_key_cipher.py:52–58  ·  view source on GitHub ↗

>>> key = "How does the duck know that? said Victor" >>> ciphertext = running_key_encrypt(key, "DEFEND THIS") >>> running_key_decrypt(key, ciphertext) == "DEFENDTHIS" True

()

Source from the content-addressed store, hash-verified

50
51
52def test_running_key_encrypt() -> None:
53 """
54 >>> key = "How does the duck know that? said Victor"
55 >>> ciphertext = running_key_encrypt(key, "DEFEND THIS")
56 >>> running_key_decrypt(key, ciphertext) == "DEFENDTHIS"
57 True
58 """
59
60
61if __name__ == "__main__":

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected