Skip to content
This repository has been archived by the owner on Dec 23, 2020. It is now read-only.
/ crypto Public archive

Encryption and Decryption codes transform plaintext in some way that is dependent on a key, producing ciphertext using by Python3.

License

Notifications You must be signed in to change notification settings

GzuPark/crypto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cipher

Encryption and Decryption codes transform plaintext in some way that is dependent on a key, producing ciphertext using by Python3.

Requirements

PyCrypto

How to use

Before you encryption or decrytion something, must know two important values.

  1. Key: String, continous string values like password that will be converted by UTF-8
  2. Initial Vector: String, 16 numbers [0-9]{16}$ and wrap it with type of string
(example)
key = 'password1234~!@#$something'
iv = '1234567890123456'

Encryption

from cipher.crypto import Cipher

data = 'Something you want to encrypt'
enc = Cipher(key, iv)
result = enc.encryption(data)

Decryption

from cipher.crypto import Cipher

data = 'Something you want to decrypt'
dec = Cipher(key, iv)
result = dec.decryption(data)

About

Encryption and Decryption codes transform plaintext in some way that is dependent on a key, producing ciphertext using by Python3.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages