ciphers.vernam_cipher

Attributes

plaintext

Functions

vernam_decrypt(→ str)

vernam_encrypt(→ str)

Module Contents

ciphers.vernam_cipher.vernam_decrypt(ciphertext: str, key: str) str
>>> vernam_decrypt("RIJVS","KEY")
'HELLO'
ciphers.vernam_cipher.vernam_encrypt(plaintext: str, key: str) str
>>> vernam_encrypt("HELLO","KEY")
'RIJVS'
ciphers.vernam_cipher.plaintext = 'HELLO'