Overview of Cryptography Eras and Techniques
Overview of Cryptography Eras and Techniques
PRINCIPLE
2
The Three Eras of Cryptography
3 3
The artisanal era
Caesar cipher
Substitution encryption
Encryption with Transpositions
Vigenère Cipher
Steganography
etc.
4 4
EXAMPLE 1: The shift
We associate each letter of the French alphabet (26 letters) with its rank from 1 to 26. We make a
shift of 3 letters in this alphabet. (it is said that 3 is the encryption key)
1) Fill in a table with the 26 letters of the alphabet and their correspondents by this offset.
What is the equivalent of x, y, z?
2) We consider the text:
Let's give to Caesar what is Caesar's.
We associate with each letter of this text its corresponding one by this shift.
Find the new text obtained.
3) Reverse path: let the text obtained by the same shift of 3 letters:
« do not forget to take »
Find the original text.
4) Establish a method to make this reverse path. (i.e., find a decryption key)
Instead of shifting the letters, we will multiply their rank by 7 and calculate the remainder of the division by.
26 of these products. Let's take the text again:
Render unto Caesar what is Caesar's
1) By associating each letter of this text with its corresponding one through this multiplication, find the
new text obtained.
Inverse path: let the text obtained by this multiplication be:
avbktgjiqv
Find the original text.
3) Find a decryption key
4) To see if the choice of 7 has a particularity, redo the same calculations by multiplying.
By 8, the ranks of the letters, before calculating the remainders of the division by 26.
What is the disadvantage that we find in this case?
6
Cryptography to Secure the
communications
Cryptography allows for communication with
hidden, concealed messages (information)
to prevent them from being read by third parties
(confidentiality).
The user or users authorized to access these
messages have keys that allow them to
access and read them
7
cryptography Definition
11
Caesar cipher
The previous encryption uses a
substitution technique. Each letter of
the French alphabet is replaced by a
unique other letter from the same alphabet. We
can be replaced by the letters of another
alphabet or other symbols. It is necessary
only that each letter be transformed
in a unique other symbol to be able to
decipher.
12
Substitution mono-alphabetic
In the previous example, each letter of the alphabet
French is encrypted by one and only one other.
letter of this alphabet.
We have a permutation (bijection) of the set of
letters of this alphabet.
How many possibilities are there to
monographic substitution with the alphabet
French? 26! = 26 x 25 x 24 x 23 x ...... x 2 x 1
=403291461126605635584000000 13
Encryption with substitutions
EXAMPLE:
The text appears to be a random string of characters and does not convey a meaningful sentence in any language.
ARMEPRXUPZFPMXMPXEFJEPZXPEEPPMMPZJEKQRXKRVCJXEZKUPEKPFPVNCJUKZZPMJEVEUPZHJEZ
RAMPFPMRCARZZRFPFPQURESPLVXRQRXKMPKJVUFPFPVNBJHXKRVN
14 14
Frequency analysis
Attack by analysis of
frequencies
Al-Kindi IX ecentury
15 15
Frequency analysis
French Alphabet
17 17
Example of cryptanalysis
A coded message
HUPZFPKUJXZREZRHUPZHMVZXPVUZAJCAPZJEKPNHMJZPRLVPMLVPZCXEVKPZFPSRUKFREZF
PZZKRKXJEZARMEPRXUPZFPMXMPXEFJEPZXPEEPPMMPZJEKQRXKRVCJXEZKUPEKPFPVNCJU
KZZPMJEVEUPZHJEZRAMPFPMRCARZZRFPFPQURESPLVXRQRXKMPKJVUFPFPVNBJHXKRVN
•Comptez les occurrences des lettres 34P,21 Z, 15 E, 13 R, 13 X, 12 K, 9 FP, 8PZ
•Intuition: P = e Z = s; {E, R, X, K} corresponds to {A, I, N, T} but in which
order?
•Intuition : PZ = is FP = the or of
After some trial and error, we obtain:
18 18
Cryptanalysis (continued)
It is easy to find the word 'stations' so
the or
-..[Link]..es...sie..s.o..es
onte..losea..el..[Link]
.[Link]
[Link]..oins
[Link].e...[Link].
he..says..that..he..loves..you...
e.e...[Link]...
19 19
Cryptanalysis (finance)
It is easy to find the word "beach resorts" so the b
and the r
the other house is not there
The station is intense.
[Link]
ta..oinstrente.e...[Link]
She is a great person.
..[Link]..
20 20
Encryption with Transpositions
21 21
Encryption with Transpositions
23 23
Vigenère Square
24 24
Steganography
(from Greek steganos: covered and graphein: writing)
An alternative to cryptography:
Covered writing hides a message in clear in
the dispersant in an innocuous message.
Historically: skull, mask, wax tablet,
invisible ink, microfilm dot.
Currently: watermarking.
Disadvantage: Takes up a lot of space
25 25
Steganography in an image
26 26
Steganography
27 27
The Enigma machine
28
The Enigma machine
30
Kerckhoffs' Principles (1883)
31 31
The Scientific and Technical Era
Cryptography: a science
33 33
Cryptography: 2 Types
34
Symmetric Cryptography
or to Secret Key
35 35
Secret key cryptography
36 36
Secret key cryptography
For N correspondents, N(N-1)/2 secret keys are needed, one key per
couple of people.
37 37
Secret key cryptography
Utilisateur C
User I
User D
User H
User E
User F
User G
38 38
Secret key cryptography
39 39
Continuous encryption
Streaming encryption (or on-the-fly) converts the text
en clair en texte chiffré bit par bit.
Key K
40 40
Continuous encryption
key
Examples: Clair encrypted
This encryption was used between the United States and the USSR (telephone
41 41
red).
Continuous encryption RC4
44 44
Block Ciphering
The plaintext is divided into blocks of a certain length.
fix according to an alphabet, and the algorithm encrypts block by block.
Examples: DES, 3DES, AES by [Link] (Standard since 2000)
45 45
Block cipher (DES)
47
Block cipher (DES)
49
The Modern Era
Revolution in cryptography
51
One-way functions
52
Example of a one-way function
The discrete logarithm
If p is a prime number, then (Fp*, x) is a
cyclic group
that is to say, there exists A belonging to Fp* ,
such that for all x in Fp*
on the existence and uniqueness of a
n such that x = a^n
is called the discrete logarithm of x to the base a.
53
Safe idea
54
Diffie-Hellman key exchange
55
public key cryptography
56
Example 1: RSA Cryptosystem
57
The RSA cryptosystem
58
RSA Encryption
59
RSA Encryption
60
PRACTICAL EXAMPLE
61
Modular exponentiation
Modular exponentiation
Excel Table:
63
Other goals of cryptography
65
Example2:
El Gamal encryption
66
Example2:
El Gamal encryption
67
The El Gamal encryption:
Example
71
Examples of hash functions
72
Cryptographic Hash Functions
73
Cryptographic Hash Functions
74
Objectives of cryptography achieved
by hashing functions
75
Sizing of the number of bits of a
hash function
76
Sizing of the number of bits of a
hash function
77
Sizing of the number of bits of a
hash function
78
Electronic Signature Scheme
79