Vigenère Cipher in Python
01:26 - Input Message and Key
02:16 - Mapping Key to Message
03:58 - Creating Vigenere Table
06:31 - Encryption
08:40 - Decryption
10:02 - key row to letter head of column
12:14 - Testing the working of cipher
-*- Support on Patreon: / voxelpixel
-*- Source Code: https://github.com/VoxelPixel
Hi!! In this video I'll be coding vigenère cipher encryption and decryption using Python
Vigenere Cipher is a form of poly-alphabetic substitution, its algorithm is as following:
Take plaintext and a key
repeat key till its total length is equal to plaintext.
create a 26x26 table containing letters of alphabets, from second row, each row's letters r shifted to left
by one position
-Encryption-
To encrypt, take a letter in plaintext along with its corresponding letter in key
use plaintext letter as column index and key's letter as row of vigenère table
row-column intersection's value is the ciphertext letter
-Decryption-
To decrypt, take a letter in ciphertext along with itss corresponding letter in key
use key's letter as row index and letter heading of column which contains cipher letter is the required plaintext