A python package for Encryption/Decryption
- Caeser Cipher
- Substitution Cipher
- Deffie-Hellman Key Exchange
from cp.<caeser,substitution> import encrypt,decrypt
plaintext = "Hello World"
ciphertext = encrypt(plaintext,key=1)
plaintext = decrypt(ciphertext,key=1)
from cp.substitution import encrypt,decrypt,generate_key
plaintext = "Hello World"
key = generate_key()
ciphertext = encrypt(plaintext,key)
plaintext = decrypt(ciphertext,key)