Skip to content

andrew000/CypherX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CypherX

Tool to encode and decode simple cyphers.


CaesarCypher

Encode and decode Caesar cypher.

from CypherX import CaesarCypher

cypher = CaesarCypher("Hello World!!!", 13)

print(cypher)

"""
RAW: Hello World!!!
Key: 13
Encoded: Uryyb Jbeyq!!!
Decoded: Uryyb Jbeyq!!!
"""

print(cypher.encoded)

"""
Uryyb Jbeyq!!!
"""

CaesarCracker

Crack Caesar cypher.

from CypherX import CaesarCracker

cracker = CaesarCracker("Uryyb Jbeyq!!!")

print(cracker)

"""
...
12: Ifmmp Xpsme!!!
13: Hello World!!!
14: Gdkkn Vnqkc!!!
...
"""

VigenereCypher

Encode and decode Vigenere cypher.

from CypherX import VigenereCypher

cypher = VigenereCypher("Hello World!!!", "pizza")

print(cypher)

"""
RAW: Hello World!!!
Key: [15, 8, 25, 25, 0]
Encoded: Wmkko Lwqkd!!!
Decoded: Swmmo Hgsmd!!!
"""

print(cypher.encoded)

"""
Wmkko Lwqkd!!!
"""