Skip to content

uendihoxha/VigenereCipher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VigenereCipher

Vigenère Cipher is the simpliest polyalphabetic substitution cipher. The ciphertext is obtained by modular addition of a (repeating) keyword and an open text. The keyword must be repeated as many times to become the same length as the plaintext. The encryption of the text is done using the Vigenère table/Vigenère square, which consists of the alphabets written out 26 times in different rows, each alphabet shifted cyclically to the left compared to the previous alphabet, corresponding to the 26 possible Caesar Ciphers.

ENCRYPTION & DECRYPTION can be described by the formula:

ImgName

ci - i-th character of the ciphertext

pi - i-th character of the open text

ki - i-th character of the key phrase (if the key phrase is shorter than the open text,is reapeated to match the length of the open text)

26 - length of the alphabet

This cipher has many weaknesses, but the primary weakness of the Vigenère cipher is the repeating nature of its key. If a cryptanalyst correctly guesses the length of the key ( it's fairly easy to guess the key length, for example by looking at correlations between characters n positions apart.), then the ciphertext can be treated as interwoven Caesar ciphers, which, individually, can be easily broken.

About

Simple Vigenère Cipher GUI program in Java

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages