Skip to content

BBlackJack07/PyGenere

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyGenere module

Python extension module written in C, it allows you to encrypt and decrypt using the Vigener Cipher.

Installation

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

Usage

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.

Import

To use this module import it with the following line:

import pygenere
# or
from pygenere import *

Exemple

import pygenere as pyg

print (pyg.encrypt("Hello", "world")

==> 4sCwr

print (pyg.decrypt("4sCwr", "world")

==> Hello

About

Python Vigener encryption/decryption module

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published