Keyword Cipher Encryption and Decryption in Python

preview_player
Показать описание
Keyword Cipher in Python
01:07 - Keyword Operations
01:49 - Checking repetition of letters in keyword
03:35 - Alphabet generation with keyword and removing keyword letters from alphabet
05:08 - Encryption
06:51 - Decryption
08:23 - cipher testing

Keyword cipher encryption and decryption using python

Keyword is a monoalphabetic substitution cipher, its algorithm is as following:
- Pick a letter as a keyword but no letter of alphabet should repeat in this keyword
- Write that word at beginning of alphabet and remove it's letters from alphabet, this version of alphabet will be used for encryption
- Write alphabet under the version of alphabet created above
- Replace each letter of message with a letter at position of alphabet in keyword alphabet
- To Decrypt a letter of message, replace that letter in keyword alphabet with a letter in alphabet at that position
Рекомендации по теме
Комментарии
Автор

Source code link can be found in video description

voxelpixel
join shbcf.ru