TC2027

Caesar and Vigenere Ciphers

Image result for ciphers

 

This page was very useful and I found it very illustrative for both ciphers.

 

http://practicalcryptography.com/ciphers/

In class and because I was in a hurry I did a pretty bad Vigenere with matrices and confusing indexing. I had to exploit more the python language and use more of its features so I came up with the following functions for encrypting and encrypting. I also did an additional method called ‘getShiftedArray’ in order to shift the alphabet and continue with the indexing of each letter in reference to it.

This ended up being very handy for both ciphers. The function only does the splitting from shift point to the right and from shift point to the left, the concatenation of both lists into one list does the final encryption table reference.

Both ciphers can be encountered in my github repository

This is a message to ken

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s