ciphers.mixed_keyword_cypher

Functions

mixed_keyword(→ str)

For keyword: hello

Module Contents

ciphers.mixed_keyword_cypher.mixed_keyword(keyword: str, plaintext: str, verbose: bool = False, alphabet: str = ascii_uppercase) str

For keyword: hello

H E L O A B C D F G I J K M N P Q R S T U V W X Y Z and map vertically

>>> mixed_keyword("college", "UNIVERSITY", True)  
{'A': 'C', 'B': 'A', 'C': 'I', 'D': 'P', 'E': 'U', 'F': 'Z', 'G': 'O', 'H': 'B',
 'I': 'J', 'J': 'Q', 'K': 'V', 'L': 'L', 'M': 'D', 'N': 'K', 'O': 'R', 'P': 'W',
 'Q': 'E', 'R': 'F', 'S': 'M', 'T': 'S', 'U': 'X', 'V': 'G', 'W': 'H', 'X': 'N',
 'Y': 'T', 'Z': 'Y'}
'XKJGUFMJST'
>>> mixed_keyword("college", "UNIVERSITY", False)  
'XKJGUFMJST'