Skip to content

Instantly share code, notes, and snippets.

@GzuPark
Created January 22, 2019 02:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GzuPark/9972fbda4a7546d6ad12f6119cad5dad to your computer and use it in GitHub Desktop.
Save GzuPark/9972fbda4a7546d6ad12f6119cad5dad to your computer and use it in GitHub Desktop.
from cipher.crypto import Cipher
data = 'Something you want to decrypt'
dec = Cipher(key, iv)
result = dec.decryption(data)
from cipher.crypto import Cipher
data = 'Something you want to encrypt'
enc = Cipher(key, iv)
result = enc.encryption(data)
key = 'password1234~!@#$something'
iv = '1234567890123456'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment