Ias Assignment
Ias Assignment
General instruction follow all the steps (rounds) Feistel Cipher Structure to
encryption and decryption process; by using both (S &P box) tables.
Submission Date 5/01/2025
ANSWER
plain-text : “we are the beginner of cryptography”
key : “0f1571c947d9e859 ”
To convert the phrase "we are the beginner of cryptography" into hexadecimal and
binary, we first convert each character into its ASCII value, then represent that value
in hexadecimal and binary formats.
Understand the Conversion Process
Every character in the phrase (including spaces) has an ASCII value.
ASCII values are then converted to hexadecimal (base 16) and binary (base 2).
Step 1: Convert to ASCII, Hexadecimal and Binary
Each character in the phrase has an ASCII value:
Character ASCII Value Hexadecimal Binary
w 119 77 01110111
e 101 65 01100101
(space) 32 20 00100000
a 97 61 01100001
r 114 72 01110010
e 101 65 01100101
(space) 32 20 00100000
t 116 74 01110100
h 104 68 01101000
e 101 65 01100101
(space) 32 20 00100000
b 98 62 01100010
e 101 65 01100101
g 103 67 01100111
i 105 69 01101001
n 110 6E 01101110
n 110 6E 01101110
e 101 65 01100101
r 114 72 01110010
(space) 32 20 00100000
o 111 6F 01101111
Character ASCII Value Hexadecimal Binary
f 102 66 01100110
(space) 32 20 00100000
c 99 63 01100011
r 114 72 01110010
y 121 79 01111001
p 112 70 01110000
t 116 74 01110100
o 111 6F 01101111
g 103 67 01100111
r 114 72 01110010
a 97 61 01100001
p 112 70 01110000
h 104 68 01101000
y 121 79 01111001
Hexadecimal Result:
77 65 20 61 72 65 20 74 68 65 20 62 65 67 69 6E 6E 65 72 20 6F 66 20 63 72 79 70
74 6F 67 72 61 70 68 79
Binary Result:
01110111 01100101 00100000 01100001 01110010 01100101 00100000 01110100
01101000 01100101 00100000 01100010 01100101 01100111 01101001 01101110
01101110 01100101 01110010 00100000 01101111 01100110 00100000 01100011
01110010 01111001 01110000 01110100 01101111 01100111 01110010 01100001
01110000 01101000 01111001
0 0 0 0 1 1 1 1
0 0 0 1 0 1 0 1
0 1 1 1 0 0 0 1
1 1 0 0 1 0 0 1
0 1 0 0 0 1 1 1
1 1 0 1 1 0 0 1
1 1 1 0 1 0 0 0
0 1 0 1 1 0 0 1
0 1 1 1 0 1 1 1
0 1 1 0 0 1 0 1
0 0 1 0 0 0 0 0
0 1 1 0 0 0 0 1
0 1 1 1 0 0 1 0
0 1 1 0 0 1 0 1
0 0 1 0 0 0 0 0
0 1 1 1 0 1 0 0
Apply the Initial Permutation (IP) table to the plain-text binary string.
B. Aplay IP
Initial Permutation Table:
58 50 42 34 26 18 10 2
60 52 44 36 28 20 12 4
62 54 46 38 30 22 14 6
64 56 48 40 32 24 16 8
57 49 41 33 25 17 9 1
59 51 43 35 27 19 11 3
61 53 45 37 29 21 13 5
63 55 47 39 31 23 15 7
Rearrange the 64-bit plain-text binary using this table.
1 0 1 1 1 0 1 1
1 0 0 1 0 0 0 1
1 0 1 0 0 0 1 1
0 0 1 0 1 0 1 1
0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1
0 0 0 0 0 0 0 0
0 0 0 1 0 0 1 1
10111011 10010001 10100011 00101011 00000000 11111111 00000000 00010011
Step 4: Split into Left and Right Halves
After applying the Initial Permutation, divide the result into two halves:
o Left Half (L0): First 32 bits
o Right Half (R0): Last 32 bits