Security

What is the Caesar Cipher?

In this tutorial, we are going to see What is the Caesar Cipher?

This encoding system is one of the oldest since Julius Caesar would have used it. The coding principle is based on adding a constant value to all the characters of the message, or more exactly to their ASCII code.

It is just a question of shifting the set of values of the characters in the message by a certain number of positions, that is to say, in a way, of substituting each letter by another. For example, by shifting the message “HELLO” by 3 positions, we get “KHOOR”. When the addition of the value results in a letter exceeding the letter Z, it is easy to continue starting from A, which is equivalent to performing a modulo 26.
 

 
As an example of Caesar Cipher, in the movie Space Odyssey, the computer is called HAL. This nickname is in fact IBM shifted by 1 position downwards…

The key is the character corresponding to the value that is added to the message to perform the encryption. In our case, the key is C, because it is the 3rd letter of the alphabet.

This encryption system is certainly simple to implement, but it has the disadvantage of being totally symmetrical, which means that it is enough to make a subtraction to know the initial message. A primary method can consist of a simple subtraction of the numbers 1 to 26 to see if one of these numbers gives an understandable message.

A more advanced method consists in calculating the frequency of appearance of the letters in the coded message. Indeed, depending on the language, some letters appear more frequently than others (in French, for example, the most used letter is the letter E), so the letter appearing most often in a text encrypted by Caesar’s cipher will probably correspond to the letter E, a simple subtraction gives the encryption key…
 

 

Example of Caesar Cipher:

 


 
mcq-security-question-and-answerComputer Security MCQs – Multiple Choice Questions and Answers – Part 1Multiple choice questions and answers (MCQs) on Computer Security to prepare for exams, tests, and certifications. These questions are taken from a real written exam…Read More

Leave a Reply

Your email address will not be published. Required fields are marked *