_Affine Ciphere Ciphere Ciphere Ciphere.pptx

husseinzayed4 5 views 8 slides Jul 29, 2024
Slide 1
Slide 1 of 8
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8

About This Presentation

-


Slide Content

Section 3 GCD Affine Cipher

GCD  

GCD gcd(30,12) = gcd(12,30 mod 12) = gcd(12,6) =gcd(6,12 mod 6) = gcd(6, 0) = 6

Affine Cipher  

Encryption We have to add the alphabet letters abcefghijklmnopqurstuvwxyz 01234567…………… the number of letter h is 6 Key = (7,2) F(6) = 7 (6) + 2 = 44 it is greater than the domain 44 mod 26 = 18 with letter s

Encryption If the result is = 57 then subtract from it 26 It will give 33 So, then subtract another 26 it will be 7 and it will be letter “i”.

Decryption  

Decryption y = 15*(4-2) = 30 for letter “e” 30 mod 26 = 4 which is letter “e” y = 15*(1-2) = -15 for letter “b” -15 mod 26 = 11 which is letter “l” y = 15*(22-2) = 300 for letter “w” 300 mod 26 = 14 which is letter “o”
Tags