Python extension module written in C, it allows you to encrypt and decrypt using the Vigener Cipher.
To install it just clone this repository and build this module with the following commands:
git clone https://github.com/BBlackJack07/PyGenere.git
cd PyGenere
python3 setup.py build
sudo python3 setup.py install
For now, this module provides you two functions, encrypt
and decrypt
wich both expect two arguments: a string for the message to encrypt\decrypt and another string for the encryption key.
To use this module import it with the following line:
import pygenere
# or
from pygenere import *
import pygenere as pyg
print (pyg.encrypt("Hello", "world")
==> 4sCwr
print (pyg.decrypt("4sCwr", "world")
==> Hello