ciphers.running_key_cipher ========================== .. py:module:: ciphers.running_key_cipher .. autoapi-nested-parse:: https://en.wikipedia.org/wiki/Running_key_cipher Attributes ---------- .. autoapisummary:: ciphers.running_key_cipher.plaintext Functions --------- .. autoapisummary:: ciphers.running_key_cipher.running_key_decrypt ciphers.running_key_cipher.running_key_encrypt ciphers.running_key_cipher.test_running_key_encrypt Module Contents --------------- .. py:function:: running_key_decrypt(key: str, ciphertext: str) -> str Decrypts the ciphertext using the Running Key Cipher. :param key: The running key (long piece of text). :param ciphertext: The ciphertext to be decrypted. :return: The plaintext. .. py:function:: running_key_encrypt(key: str, plaintext: str) -> str Encrypts the plaintext using the Running Key Cipher. :param key: The running key (long piece of text). :param plaintext: The plaintext to be encrypted. :return: The ciphertext. .. py:function:: test_running_key_encrypt() -> None >>> key = "How does the duck know that? said Victor" >>> ciphertext = running_key_encrypt(key, "DEFEND THIS") >>> running_key_decrypt(key, ciphertext) == "DEFENDTHIS" True .. py:data:: plaintext