Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 812 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 812 Bytes

Vigenère

This repository provides a Python module that implements a simple Vigenère cipher based on this comment.

Usage

The encrypt and decrypt functions defined in vigenere.py are wrappers for transform. For example, running

from vigenere import *

t = "Hello world!"
k = "Key"
e = encrypt(t, k)
d = decrypt(e, k)

print(e)
print(d)

prints

sKf8UyCUl8Jz
Hello world!

to the Python console. Executing the bash script launcher opens a Terminal window with Python and the vigenere module preloaded.

License

All repository content is licensed under the MIT license.