Professional Documents
Culture Documents
Assignment # 3: Subject: Cryptography
Assignment # 3: Subject: Cryptography
Subject: Cryptography
Topic: DES
Dated: 09-12-2021
Plaintext: ayyaz114
Key: REHMAN1
Plaintext f a i q e 0 9 6
ascii 102 97 105 113 102 48 57 54
Binary 01100110 01100001 01101001 01110001 0110101 00110000 00111000 00110110
Initial Permutation:
f (RI-1, K1):
Key Generation:
Key R E H M A N 1
ascii 52 45 48 4D 41 4E 31
Binary 01010010 01000101 01001000 01001101 01000001 01001110 00110001
Key-compression Table
14 17 11 24 01 05 03 28
15 06 21 10 23 19 12 04
26 08 16 07 27 20 13 02
41 52 31 37 47 55 30 40
51 45 33 48 44 49 39 56
34 53 46 42 50 36 29 32
Passing the both Circular Left Shifted Right & Left bits through the Key Compression Table:
Dividing the above 8-bit sets in 6-bit sets for convenience during XOR:
Mixer:
Swapper (swaps the original Right 32-bits with the Mixer output):