>>> key = "How does the duck know that? said Victor" >>> ciphertext = running_key_encrypt(key, "DEFEND THIS") >>> running_key_decrypt(key, ciphertext) == "DEFENDTHIS" True
()
| 50 | |
| 51 | |
| 52 | def 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 | |
| 61 | if __name__ == "__main__": |