Cryptography

There are records of the use of some writing alteration techniques and codes in ancient Egypt (4500 b.c), among the Persians, the Greeks, and the Hebrews. Among others, in the classical Caesar’s cipher, used in ancient Rome, the letters are replaced according to certain tables as below.

abcdefghijklmnopqrstuvwxyz
efghijklmnopqrstuvwxyzabcd
Caesar’s Cipher

In this cipher, the word AMOR would be written, encrypted, as EQSV.

There are several reasons why systems similar to the one presented above are extremely fragile, for example, the existence of patterns in words in certain languages, in Portuguese, simple syllables with a consonant + vowel, prepositions and articles that are frequently used, letters that are much more frequent than another, etc. More advanced methods involved keys that would decrypt each letter, the idea would be, for example, to define a key from which the table above would be changed for each letter.

The idea is to repeat over the word to be decoded the corresponding letter repeatedly. In the example below, the chosen keyword is TREINO.


        t
        Y
r
C
e
E
i
U
n
R
o
B
t
Z
r
F

abcdefghijklmnopqrstuvwxyz
tuvwxyzabcdefghijklmnopqrs
rstuvwxyzabcdefghijklmnopq
efghijklmnopqrstuvwxyzabcd
ijklmnopqrstuvwxyzabcdefgh
nopqrstuvwxyzabcdefghijklm
opqrstuvwxyzabcdefghijklmn
Tabela para palavra chave “treino”

To decode the word, look for the Y in line t in the table above and see to what letter it corresponds to in line A, in this case, the letter F. The next step would be to look for C in line R and so on until you find the coded word – tip: The Brazil’s team with more fans.

Did you understand the procedure? Now, to play around a bit, choose your own key and encode/decode a word or short sentence (take out the spaces between the words).

Very good! Now, let’s get closer to the reality of today’s cryptography: How to generate the keyword? How to transmit it without risk? Click the button below and proceed to the next part!

Skip to content