Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Vigenère cipher
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Description== [[File:Vigenère square shading.svg|thumb|The Vigenère square or Vigenère table, also known as the ''[[tabula recta]]'', can be used for encryption and decryption.]] In a [[Caesar cipher]], each letter of the alphabet is shifted along some number of places. For example, in a Caesar cipher of shift 3, <code>a</code> would become <code>D</code>, <code>b</code> would become <code>E</code>, <code>y</code> would become <code>B</code> and so on. The Vigenère cipher has several Caesar ciphers in sequence with different shift values. To encrypt, a table of alphabets can be used, termed a ''[[tabula recta]]'', ''Vigenère square'' or ''Vigenère table''. It has the alphabet 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. At different points in the encryption process, the cipher uses a different alphabet from one of the rows. The alphabet used at each point depends on a repeating keyword.{{Citation needed|date=April 2012}} For example, suppose that the [[plaintext]] to be encrypted is :<code>attackatdawn</code>. The person sending the message chooses a keyword and repeats it until it matches the length of the plaintext, for example, the keyword "LEMON": :<code>LEMONLEMONLE</code> Each row starts with a key letter. The rest of the row holds the letters A to Z (in shifted order). Although there are 26 key rows shown, a code will use only as many keys (different alphabets) as there are unique letters in the key string, here just 5 keys: {L, E, M, O, N}. For successive letters of the message, successive letters of the key string will be taken and each message letter enciphered by using its corresponding key row. When a new character of the message is selected, the next letter of the key is chosen, and the row corresponding to that char is gone along to find the column heading that matches the message character. The letter at the intersection of [key-row, msg-col] is the enciphered letter. For example, the first letter of the plaintext, <code>a</code>, is paired with <code>L</code>, the first letter of the key. Therefore, row <code>L</code> and column <code>A</code> of the Vigenère square are used, namely <code>L</code>. Similarly, for the second letter of the plaintext, the second letter of the key is used. The letter at row <code>E</code> and column <code>T</code> is <code>X</code>. The rest of the plaintext is enciphered in a similar fashion: {| | Plaintext: || <code>attackatdawn</code> |- | Key: || <code>LEMONLEMONLE</code> |- | Ciphertext: || <code>LXFOPVEFRNHR</code> |} Decryption is performed by going to the row in the table corresponding to the key, finding the position of the ciphertext letter in that row and then using the column's label as the plaintext. For example, in row <code>L</code> (from <code>''L''EMON</code>), the ciphertext <code>L</code> appears in column <code>A</code>, so <code>a</code> is the first plaintext letter. Next, in row <code>E</code> (from <code>L''E''MON</code>), the ciphertext <code>X</code> is located in column <code>T</code>. Thus <code>t</code> is the second plaintext letter.
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Vigenère cipher
(section)
Add topic