Uploaded by User35703

(Kriptografi) Tugas DES

advertisement
DES (Data Encryption Standar)
Plaintext
= AZWARAMA
Key
= 17010024
1 = 0(1) 0(2) 1(3) 1(4) 0(5) 0(6) 0(7) 1(8)
7 = 0(9) 0(10) 1(11) 1(12) 0(13) 1(14) 1(15) 1(16)
0 = 0(17) 0(18) 1(19) 1(20) 0(21) 0(22) 0(23) 0(24)
1 = 0(25) 0(26) 1(27) 1(28) 0(29) 0(30) 0(31) 1(32)
0 = 0(33) 0(34) 1(35) 1(36) 0(37) 0(38) 0(39) 0(40)
0 = 0(41) 0(42) 1(43) 1(44) 0(45) 0(46) 0(47) 0(48)
PC 1
57
1
10
19
63
7
14
21
49
58
2
11
55
62
6
13
41
50
59
3
47
54
61
5
33
42
51
60
39
45
53
28
25
34
43
52
31
38
45
20
17
26
35
44
23
30
37
12
2 = 0(49) 0(50) 1(51) 1(52) 0(53) 0(54) 1(55) 0(56)
4 = 0(57) 0(58) 1(59) 1(60) 0(61) 1(62) 0(63) 0(64)
0000000
0000000
0011111
1111111
0100001
0100000
1000000
0001111
C0 = 0000000 0000000
0011111 1111111
D0 = 0100001 0100000
1000000 0001111
11
9
18
27
36
15
22
29
4
 Tabel Left Shift
Putaran ke = 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Pergeseran = 1 1 2 2 2 2 2 2 1 2 2 2 2 2 2 1
 C0 = 0000000 0000000 0011111 1111111
D0 = 0100001 0100000 1000000 0001111
 C1 = 0000000 0000000 0111111 1111110
D1 = 1000010 1000001 0000000 0001110
 C2 = 0000000 0000000 1111111 1111100
D2 = 0000101 0000010 0000000 0011101
 C3 = 0000000 0000011 1111111 1110000
D3 = 0010100 0001000 0000000 1110100
 C4 = 0000000 0001111 1111111 1000000
D4 = 1010000 0100000 0000011 1010000
 C5 = 0000000 0111111 1111110 0000000
D5 = 1000001 0000000 0001110 1000010
 C6 = 0000001 1111111 1111000 0000000
D6 = 0000100 0000000 0111010 0001010
 C7 = 0000111 1111111 1100000 0000000
D7 = 0010000 0000001 1101000 0101000
 C8 = 0011111 1111111 0000000 0000000
D8 = 1000000 0000111 0100001 0100000
12
 C9 = 0111111 1111110 0000000 0000000
D9 = 0000000 0001110 1000010 1000001
 C10 = 1111111 1111000 0000000 0000001
D10 = 0000000 0111010 0001010 0000100
 C11 = 1111111 1100000 0000000 0000111
D11 = 0000001 1101000 0101000 0010000
 C12 = 1111111 0000000 0000000 0011111
D12 = 0000111 0100001 0100000 1000000
 C13 = 1111100 0000000 0000000 1111111
D13 = 0011101 0000101 0000010 0000000
 C14 = 1110000 0000000 0000011 1111111
D14 = 1110100 0010100 0001000 0000000
 C15 = 1000000 0000000 0001111 1111111
D15 = 1010000 1010000 0100000 0000011
 C16 = 0000000 0000000 0011111 1111111
D16 = 0100001 0100000 1000000 0000111
13
PC 2
14
3
23
16
41
30
44
46
17
28
19
7
52
40
49
42
11
15
12
27
31
51
39
50
24
6
4
20
37
45
56
36
1
21
26
13
47
33
34
29
5
10
8
2
55
48
53
32
 C1 =
D1
K1 =
0000000(7) 0000000(14) 0111111(21) 1111110(28)
1000010(35) 1000001(42) 0000000(49) 0001110(56)
010100 000010 110010 101100
000001 000000 000011 010110
 C2 =
D2
K2 =
0000000(7) 0000000(14) 1111111(21) 1111100(28)
0000101(35) 0000010(42) 0000000(49) 0011101(56)
010100 001010 110010 100100
110000 000010 000101 000000
 C3 =
D3
K3 =
0000000(7) 0000011(14) 1111111(21) 1110000(28)
0010100(35) 0001000(42) 0000000(49) 1110100(56)
110100 001010 110000 100110
011000 001010 001000 001000
 C4 =
D4
K4 =
0000000(7) 0001111(14) 1111111(21) 1000000(28)
1010000(35) 0100000(42) 0000011(49) 1010000(56)
111000 001010 011000 100110
011100 000001 010000 001010
 C5 =
D5
K5 =
0000000(7) 0111111(14) 1111110(21) 0000000(28)
1000001(35) 0000000(42) 0001110(49) 1000010(56)
111000 001001 011000 100110
000011 000001 000000 101010
14
 C6 =
D6
K6 =
0000001(7) 1111111(14) 1111000(21) 0000000(28)
0000100(35) 0000000(42) 0111010(49) 0001010(56)
111000 001001 001001 110010
000001 000111 100001 100000
 C7 =
D7
K7 =
0000111(7) 1111111(14) 1100000(21) 0000000(28)
0010000(35) 0000001(42) 1101000(49) 0101000(56)
101001 001101 001001 110010
001000 001000 100001 110000
 C8 =
D8
K8 =
0011111(7) 1111111(14) 0000000(21) 0000000(28)
1000000(35) 0000111(42) 0100001(49) 0100000(56)
101001 100101 001101 010010
100000 001000 010000 010010
 C9 =
D9
K9 =
0111111(7) 1111110(14) 0000000(21) 0000000(28)
0000000(35) 0001110(42) 1000010(49) 1000001(56)
001101 100101 001101 010011
100000 010001 001100 001000
 C10 =
D10
K10 =
1111111(7) 1111000(14) 0000000(21) 0000001(28)
0000000(35) 0111010(42) 0001010(49) 0000100(56)
001011 110101 000101 010001
100010 000001 001000 100000
 C11 =
D11
K11 =
1111111(7) 1100000(14) 0000000(21) 0000111(28)
0000001(35) 1101000(42) 0101000(49) 0010000(56)
000011 100100 000111 011001
010100 000000 101000 100100
15
 C12 =
D12
K12 =
1111111(7) 0000000(14) 0000000(21) 0011111(28)
0000111(35) 0100001(42) 0100000(49) 1000000(56)
000111 110100 100110 011001
000100 000010 100010 001000
 C13 =
D13
K13 =
1111100(7) 0000000(14) 0000000(21) 1111111(28)
0011101(35) 0000101(42) 0000010(49) 0000000(56)
000111 110000 100110 001001
001000 010011 000000 010001
 C14 =
D14
K14 =
1110000(7) 0000000(14) 0000011(21) 1111111(28)
1110100(35) 0010100(42) 0001000(49) 0000000(56)
000100 110010 100010 001101
001000 100010 000000 100010
 C15 =
D15
K15 =
1000000(7) 0000000(14)0001111(21) 1111111(28)
1010000(35) 1010000(42) 0100000(49) 0000011(56)
000110 010010 110010 001100
001001 000000 000100 000110
 C16 =
D16
K16 =
0000000(7) 0000000(14)0011111(21) 1111111(28)
0100001(35) 0100000(42) 1000000(49) 0000111(56)
010100 010010 110010 001100
000101 100000 000100 000000
16
PlainText = AZWARAMA
A
= 0(1) 1(2) 0(3) 0(4) 0(5) 0(6) 0(7) 1(8)
TABEL IP
Z
= 0(9) 1(10) 0(11) 1(12) 1(13) 0(14) 1(15) 0(16)
W
= 0(17) 1(18) 0(19) 1(20) 0(21) 1(22) 1(23) 1(24)
A
= 0(25) 1(26) 0(27) 0(28) 0(29) 0(30) 0(31) 1(32)
R
= 0(33) 1(34) 0(35) 1(36) 0(37) 0(38) 1(39) 0(40)
A
= 0(41) 1(42) 0(43) 0(44) 0(45) 0(46) 0(47) 1(48)
58
60
62
64
57
59
61
63
M
= 0(49) 1(50) 0(51) 0(52) 1(53) 1(54) 0(55) 1(56)
A
= 0(57) 1(58) 0(59) 0(60) 0(61) 1(62) 0(63) 1(64)
11111111
00010110
11000100
11101101
00000000
00000000
01000010
00010110
50
52
54
56
49
51
53
55
42
44
46
48
41
43
45
47
34
36
38
40
33
35
37
39
26
28
30
32
25
27
29
31
18
20
22
24
17
19
21
23
L0 = 11111111 00010110
11000100 11101101
R0 = 00000000 00000000
01000010 00010110
17
10
12
14
16
9
11
13
15
2
4
6
8
1
3
5
7
 EKSPANSI
R0
0(1) 0(2) 0(3) 0(4) 0(5) 0(6) 0(7) 0(8)
0(9) 0(10) 0(11) 0(12) 0(13) 0(14) 0(15) 0(16)
0(17) 1(18) 0(19) 0(20) 0(21) 0(22) 1(23) 0(24)
0(25) 0(26) 0(27) 1(28) 0(29) 1(30) 1(31) 0(32)
32
4
8
12
16
20
24
28
1
5
9
13
17
21
25
29
2
6
10
14
18
22
26
30
3
7
11
15
19
23
27
31
4
8
12
16
20
24
28
32
5
9
13
17
21
25
29
1
E (R0) = 000000 000000 000000 000000 001000 000100 000010 101100
 ITERASI 1
E(R0) = 000000 000000 000000 000000 001000 000100 000010 101100
K1 = 010100 000010 110010 101100 000001 000000 000011 010110
A1 = 010100 000010 110010 101100 001001 000100 000001 111010
A1 = 010100 000010 110010 101100 001001 000100 000001 111010
A1 Dibagi menjadi 8 blok
S1 = 010100
S2 = 000010
S3 = 110010
S4 = 101100
S5 = 001001
S6 = 000100
S7 = 000001
S8 = 111010
Masing masing di subtitusikan ke
table S - Box
18
Cara menentukan baris ambil 1 digit awal dan 1 digit akhir dari S. Cara menentukan kolom
yaitu diambil dari digit 2 sampai digit 5 dari S.
http://octarapribadi.blogspot.com/2012/10/contoh-enkripsi-dengan-algoritma-des.html
 S1
0000 0001 0010
00 14
4
13
01 0
15
7
10 4
1
14
11 15
12
8
….
….
….
….
….
1010
6
12
9
3
 010100
Baris = 00
Kolom = 1010
S1 = 6 = 0110
 S2
0000 0001 0010
00 15
1
8
01 3
13
4
10 0
14
7
11 13
8
10
….
….
….
….
….
0100
6
15
10
3
 000010
Baris = 00
Kolom = 0001
S2 = 1 = 0001
 S3
0000 0001 0010
00 10
0
9
01 13
7
0
10 13
6
4
11 1
10
13
….
….
….
….
….
1001
13
8
1
15
 110010
Baris = 10
Kolom = 1001
S3 = 1 = 0001
 S4
0000 0001 0010
00 7
13
14
01 13
8
11
10 10
6
9
11 3
15
0
….
….
….
….
….
0110
9
0
7
13
 101100
Baris = 10
Kolom = 0110
S4 = 7 = 0111
19
 S5
0000 0001 0010 0011 0100
00 2
12
4
1
7
01 14
11
2
12
4
10 4
2
1
11
10
11 11
8
12
7
1
 001001
Baris = 01
Kolom = 0100
S5 = 4 = 0010
 S6
0000 0001 0010 0011 0100
00 12
1
10
15
9
01 10
15
4
2
7
10 9
14
15
5
2
11 4
3
2
12
9
 000100
Baris = 00
Kolom = 0010
S6 = 10 = 1010
 S7
0000 0001 0010 0011 0100
00 4
11
2
14
15
01 14
0
11
7
4
10 1
4
11
13
12
11 6
11
13
8
1
 000001
Baris = 01
Kolom = 0000
S7 = 14 = 1100
 S8
0000 0001 0010
00 13
2
8
01 1
15
13
10 7
11
4
11 2
1
14
 111010
Baris = 10
Kolom = 1101
S8 = 3 = 0011
…
…
…
…
…
1101
0
14
3
5
B 1 = S1 S2 S3 S4 S 5 S6 S 7 S8
B1 = 0110 0001 0001 0111 0010 1010 1100 0011
20
 Tabel P – Box
16 7 20 21
1 15 23 26
2 8 24 14
19 13 30 6
29
5
32
22
12
18
27
11
28
31
3
4
17
10
9
25
B1
0(1) 1(2) 1(3) 0(4) 0(5) 0(6) 0(7) 1(8)
0(9) 0(10) 0(11) 1(12) 0(13) 1(14) 1(15) 1(16)
0(17) 0(18) 1(19) 0(20) 1(21) 0(22) 1(23) 0(24)
1(25) 1(26) 0(27) 0(28) 0(29) 0(30) 1(31) 1(32)
10010100
01110010
11011010
10000001
P(B1) = 10010100 01110010 11011010 10000001
P(B1) = 10010100 01110010 11011010 10000001
L0 = 11111111 00010110 11000100 11101101
R1 = 01101011 01100100 00011110 01101100
21
 EKSPANSI
R1
0(1) 1(2) 1(3) 0(4) 1(5) 0(6) 1(7) 1(8)
0(9) 1(10) 1(11) 0(12) 0(13) 1(14) 0(15) 0(16)
0(17) 0(18) 0(19) 1(20) 1(21) 1(22) 1(23) 0(24)
0(25) 1(26) 1(27) 0(28) 1(29) 1(30) 0(31) 0(32)
32
4
8
12
16
20
24
28
1
5
9
13
17
21
25
29
2
6
10
14
18
22
26
30
3
7
11
15
19
23
27
31
4
8
12
16
20
24
28
32
5
9
13
17
21
25
29
1
E (R1)= 001101 010110 101100 001000 000011 111100 001101 011000
 ITERASI 2
E(R1) = 001101 010110 101100 001000 000011 111100 001101 011000
K2 = 010100 001010 110010 100100 110000 000010 000101 000000
A2 = 011001 011100 011110 101100 110011 111110 001000 011000
A2 = 011001 011100 011110 101100 110011 111110 001000 011000
S1 = 011001
S2 = 011100
S3 = 011110
S4 = 101100
S5 = 110011
S6 = 111110
S7 = 001000
S8 = 011000
22
 S1
0000 0001 0010
00 14
4
13
01 0
15
7
10 4
1
14
11 15
12
8
….
….
….
….
….
1100
5
9
3
10
 011001
Baris = 01
Kolom = 1100
S1 = 9 = 1001
 S2
0000 0001 0010
00 15
1
8
01 3
13
4
10 0
14
7
11 13
8
10
….
….
….
….
….
1110
5
11
2
14
 011100
Baris = 00
Kolom = 1110
S2 = 5 = 0101
 S3
0000 0001 0010
00 10
0
9
01 13
7
0
10 13
6
4
11 1
10
13
….
….
….
….
….
1111
8
1
7
12
 011110
Baris = 00
Kolom = 1111
S3 = 8 = 1000
 S4
0000 0001 0010
00 7
13
14
01 13
8
11
10 10
6
9
11 3
15
0
….
….
….
….
….
0110
9
0
7
13
 101100
Baris = 10
Kolom = 0110
S4 = 7 = 0111
 S5
0000 0001 0010
00 2
12
4
01 14
11
2
10 4
2
1
11 11
8
12
….
….
….
….
….
1001
5
0
9
15
 110011
Baris = 11
Kolom = 1001
S5 = 15 = 1111
23
 S6
0000 0001 0010
00 12
1
10
01 10
15
4
10 9
14
15
11 4
3
2
….
….
….
….
….
1111
11
8
6
13
 111110
Baris = 10
Kolom = 1111
S6 = 6 = 0110
 S7
0000 0001 0010
00 4
11
2
01 14
0
11
10 1
4
11
11 6
11
13
….
….
….
….
….
0100
15
4
12
1
 001000
Baris = 00
Kolom = 0100
S7 = 15 = 1111
 S8
0000 0001 0010
00 13
2
8
01 1
15
13
10 7
11
4
11 2
1
14
….
….
….
….
….
1100
5
0
15
3
 011000
Baris = 00
Kolom = 1100
S8 = 5 = 0101
B 2 = S1 S2 S3 S4 S 5 S6 S 7 S8
B2 = 1001 0101 1000 0111 1111 0110 1111 0101
24
 Tabel P – Box
16 7 20 21
1 15 23 26
2 8 24 14
19 13 30 6
29
5
32
22
12
18
27
11
28
31
3
4
17
10
9
25
B2
1(1) 0(2) 0(3) 1(4) 0(5) 1(6) 0(7) 1(8)
1(9) 0(10) 0(11) 0(12) 0(13) 1(14) 1(15) 1(16)
1(17) 1(18) 1(19) 1(20) 0(21) 1(22) 1(23) 0(24)
1(25) 1(26) 1(27) 1(28) 0(29) 1(30) 0(31) 1(32)
10100011
11110100
01011101
10111011
P(B2)
L1 = R0
R2
P(B2) = 10100011 11110100 01011101 10111011
= 10100011 11110100 01011101 10111011
= 00000000 00000000 01000010 00010110
= 10100011 11110100 00011111 10101101
25
 EKSPANSI
R2
1(1) 0(2) 1(3) 0(4) 0(5) 0(6) 1(7) 1(8)
1(9) 1(10) 1(11) 1(12) 0(13) 1(14) 0(15) 0(16)
0(17) 0(18) 0(19) 1(20) 1(21) 1(22) 1(23) 1(24)
1(25) 0(26) 1(27) 0(28) 1(29) 1(30) 0(31) 1(32)
32
4
8
12
16
20
24
28
1
5
9
13
17
21
25
29
2
6
10
14
18
22
26
30
3
7
11
15
19
23
27
31
4
8
12
16
20
24
28
32
5
9
13
17
21
25
29
1
E (R2)= 110100 000111 111110 101000 000011 111111 110101 011011
 ITERASI 3
E(R2) = 110100 000111 111110 101000 000011 111111 110101 011011
K3 = 111000 001001 011000 100110 011000 001010 001000 001000
A3 = 001100 001110 100110 001110 011011 110101 111101 010011
A3 = 001100 001110 100110 001110 011011 110101 111101 010011
S1 = 001100
S2 = 001110
S3 = 100110
S4 = 001110
S5 = 011011
S6 = 110101
S7 = 111101
S8 = 010011
26
 S1
001100
Baris = 00
Kolom = 0110
S1 = 11 = 1001
 S2
001110
Baris = 00
Kolom = 0111
S2 = 4 = 0100
 S3
100110
Baris = 10
Kolom = 0011
S3 = 9 = 1001
 S4
001110
Baris = 00
Kolom = 0111
S4 = 10 = 1010
 S5
011011
Baris = 01
Kolom = 1101
S5 = 10 = 1010
27
 S6
110101
Baris = 11
Kolom = 1010
S6 = 1 = 0001
 S7
111101
Baris = 11
Kolom = 1110
S7 = 3 = 0011
 S8
010011
Baris = 01
Kolom = 1001
S8 = 5 = 0101
B 3 = S1 S2 S3 S4 S 5 S6 S 7 S8
B3 = 1001 0100 1001 1010 1010 0001 0011 0101
28
 Tabel P – Box
16 7 20 21
1 15 23 26
2 8 24 14
19 13 30 6
29
5
32
22
12
18
27
11
28
31
3
4
17
10
9
25
B3
1(1) 0(2) 0(3) 1(4) 0(5) 1(6) 0(7) 0(8)
1(9) 0(10) 0(11) 1(12) 1(13) 0(14) 1(15) 0(16)
1(17) 0(18) 1(19) 0(20) 0(21) 0(22) 0(23) 1(24)
0(25) 0(26) 1(27) 1(28) 0(29) 1(30) 0(31) 1(32)
00000111
11000000
00101101
11110010
P(B3)
L2 = R1
R3
P(B3) = 00000111 11000000 0010110 11110010
= 00000111 11000000 00101101 11110010
= 01101011 01100100 00011110 01101100
= 01101100 10100100 00110011 10011110
29
 EKSPANSI
R3
0(1) 1(2) 1(3) 0(4) 1(5) 1(6) 0(7) 0(8)
1(9) 0(10) 1(11) 0(12) 0(13) 1(14) 0(15) 0(16)
0(17) 0(18) 1(19) 1(20) 0(21) 0(22) 1(23) 1(24)
1(25) 0(26) 0(27) 1(28) 1(29) 1(30) 1(31) 0(32)
32
4
8
12
16
20
24
28
1
5
9
13
17
21
25
29
2
6
10
14
18
22
26
30
3
7
11
15
19
23
27
31
4
8
12
16
20
24
28
32
5
9
13
17
21
25
29
1
E (R3)= 001101 011001 010100 001000 000110 100111 110011 111100
 ITERASI 4
E(R3) = 001101 011001 010100 001000 000110 100111 110011 111100
K4 = 111000 001010 011000 100110 011100 000001 010000 001010
A4 = 110101 010011 001100 101110 011010 100110 100011 110110
A4 = 110101 010011 001100 101110 011010 100110 100011 110110
S1 = 110101
S2 = 010011
S3 = 001100
S4 = 101110
S5 = 011010
S6 = 100110
S7 = 100011
S8 = 110110
30
 S1
110101
Baris = 11
Kolom = 1010
S1 = 3 = 0011
 S2
010011
Baris = 01
Kolom = 1001
S2 = 0 = 0000
 S3
001100
Baris = 00
Kolom = 0110
S3 = 15 = 1111
 S4
101110
Baris = 10
Kolom = 0111
S4 = 13 = 1101
 S5
011010
Baris = 00
Kolom = 1101
S5 = 0 = 0000
31
 S6
100110
Baris = 10
Kolom = 0011
S6 = 5 = 0101
 S7
100011
Baris = 11
Kolom = 0001
S7 = 11 = 1011
 S8
110110
Baris = 10
Kolom = 1011
S8 = 13 = 1101
B 4 = S1 S2 S3 S4 S 5 S6 S 7 S8
B4 = 0011 0000 1111 1101 0000 0101 1011 1101
32
 Tabel P – Box
16 7 20 21
1 15 23 26
2 8 24 14
19 13 30 6
29
5
32
22
12
18
27
11
28
31
3
4
17
10
9
25
B4
0(1) 0(2) 1(3) 1(4) 0(5) 0(6) 0(7) 0(8)
1(9) 1(10) 1(11) 1(12) 1(13) 1(14) 0(15) 1(16)
0(17) 0(18) 0(19) 0(20) 0(21) 1(22) 0(23) 1(24)
1(25) 0(26) 1(27) 1(28) 1(29) 1(30) 0(31) 1(32)
10001110
00000001
00111111
01101111
P(B4)
L3 = R2
R4
P(B4) = 10001110 00000001 00111111 01101111
= 10001110 00000001 00111111 01101111
= 10100011 11110100 00011111 10101101
= 00101101 11110101 00100000 11000010
33
 EKSPANSI
R4
0(1) 0(2) 1(3) 0(4) 1(5) 1(6) 0(7) 1(8)
1(9) 1(10) 1(11) 1(12) 0(13) 1(14) 0(15) 1(16)
0(17) 0(18) 1(19) 0(20) 0(21) 0(22) 0(23) 0(24)
1(25) 1(26) 0(27) 0(28) 0(29) 0(30) 1(31) 0(32)
32
4
8
12
16
20
24
28
1
5
9
13
17
21
25
29
2
6
10
14
18
22
26
30
3
7
11
15
19
23
27
31
4
8
12
16
20
24
28
32
5
9
13
17
21
25
29
1
E (R4)= 000101 011011 111110 101010 100100 000001 011000 000100
 ITERASI 5
E(R4) = 000101 011011 111110 101010 100100 000001 011000 000100
K5 = 111000 001001 011000 100110 000011 000001 000000 101010
A5 = 111101 010010 100110 001100 100111 000000 011000 101110
A5 = 111101 010010 100110 001100 100111 000000 011000 101110
S1 = 111101
S2 = 010010
S3 = 100110
S4 = 001100
S5 = 100111
S6 = 000000
S7 = 011000
S8 = 101110
34
 S1
111101
Baris = 11
Kolom = 1110
S1 = 6 = 0110
 S2
010010
Baris = 00
Kolom = 1001
S2 = 7 = 0111
 S3
100110
Baris = 10
Kolom = 0011
S3 = 9 = 1001
 S4
001100
Baris = 00
Kolom = 0110
S4 = 9 = 1001
 S5
100111
Baris = 11
Kolom = 0011
S5 = 7 = 0111
35
 S6
000000
Baris = 00
Kolom = 0000
S6 = 12 = 1100
 S7
011000
Baris = 00
Kolom = 1100
S7 = 5 = 0101
 S8
101110
Baris = 10
Kolom = 0111
S8 = 2 = 0010
B 5 = S1 S2 S3 S4 S 5 S6 S 7 S8
B5 = 0110 0111 1001 1001 0111 1100 0101 0010
36
 Tabel P – Box
16 7 20 21
1 15 23 26
2 8 24 14
19 13 30 6
29
5
32
22
12
18
27
11
28
31
3
4
17
10
9
25
B5
0(1) 1(2) 1(3) 0(4) 0(5) 1(6) 1(7) 1(8)
1(9) 0(10) 0(11) 1(12) 1(13) 0(14) 0(15) 1(16)
0(17) 1(18) 1(19) 1(20) 1(21) 1(22) 0(23) 0(24)
0(25) 1(26) 0(27) 1(28) 0(29) 0(30) 1(31) 0(32)
11110110
00010110
11000011
11011000
P(B5)
L4 = R3
R5
P(B5) = 11110110 00010110 11000011 11011000
= 11110110 00010110 11000011 11011000
= 01101100 10100100 00110011 10011110
= 10011010 10110010 11110000 01000110
37
 EKSPANSI
R5
1(1) 0(2) 0(3) 1(4) 1(5) 0(6) 1(7) 0(8)
1(9) 0(10) 1(11) 1(12) 0(13) 0(14) 1(15) 0(16)
1(17) 1(18) 1(19) 1(20) 0(21) 0(22) 0(23) 0(24)
0(25) 1(26) 0(27) 0(28) 0(29) 1(30) 1(31) 0(32)
32
4
8
12
16
20
24
28
1
5
9
13
17
21
25
29
2
6
10
14
18
22
26
30
3
7
11
15
19
23
27
31
4
8
12
16
20
24
28
32
5
9
13
17
21
25
29
1
E (R5)= 010011 110101 010110 100101 011110 100000 001000 001101
 ITERASI 6
E(R5) = 010011 110101 010110 100101 011110 100000 001000 001101
K6 = 111000 001001 001001 110010 000001 000111 100001 100000
A6 = 101011 111101 011111 010111 011111 100111 101001 101101
A6 = 101011 111101 011111 010111 011111 100111 101001 101101
S1 = 101011
S2 = 111101
S3 = 011111
S4 = 010111
S5 = 011111
S6 = 100111
S7 = 101001
S8 = 101101
38
 S1
101011
Baris = 11
Kolom = 0101
S1 = 9 = 1001
 S2
111101
Baris = 11
Kolom = 1110
S2 = 14 = 1110
 S3
011111
Baris = 01
Kolom = 1111
S3 = 1 = 0001
 S4
010111
Baris = 01
Kolom = 1011
S4 = 12 = 1100
 S5
011111
Baris = 01
Kolom = 1111
S5 = 15 = 1111
39
 S6
100111
Baris = 11
Kolom = 0011
S6 = 12 = 1100
 S7
101001
Baris = 11
Kolom = 0100
S7 = 1 = 0001
 S8
101101
Baris = 11
Kolom = 0110
S8 = 8 = 1000
B 6 = S1 S2 S3 S4 S 5 S6 S 7 S8
B6 = 1001 1110 0001 1100 1111 1100 0001 1000
40
 Tabel P – Box
16 7 20 21
1 15 23 26
2 8 24 14
19 13 30 6
29
5
32
22
12
18
27
11
28
31
3
4
17
10
9
25
B6
1(1) 0(2) 0(3) 1(4) 1(5) 1(6) 1(7) 0(8)
0(9) 0(10) 0(11) 1(12) 1(13) 1(14) 0(15) 0(16)
1(17) 1(18) 1(19) 1(20) 1(21) 1(22) 0(23) 0(24)
0(25) 0(26) 0(27) 1(28) 1(29) 0(30) 0(31) 0(32)
01111111
10001100
00010000
11011010
P(B6)
L5 = R4
R6
P(B6) = 01111111 01111111 00010000 11011010
= 01111111 01111111 00010000 11011010
= 00101101 11110101 00100000 11000010
= 01010010 10001010 00110000 00011000
41
 EKSPANSI
R6
0(1) 1(2) 0(3) 1(4) 0(5) 0(6) 1(7) 0(8)
1(9) 0(10) 0(11) 0(12) 1(13) 0(14) 1(15) 0(16)
0(17) 0(18) 1(19) 1(20) 0(21) 0(22) 0(23) 0(24)
0(25) 0(26) 0(27) 1(28) 1(29) 0(30) 0(31) 0(32)
32
4
8
12
16
20
24
28
1
5
9
13
17
21
25
29
2
6
10
14
18
22
26
30
3
7
11
15
19
23
27
31
4
8
12
16
20
24
28
32
5
9
13
17
21
25
29
1
E (R6)= 001010 100101 010001 010100 000110 100000 000011 110000
 ITERASI 7
E(R6) = 001010 100101 010001 010100 000110 100000 000011 110000
K7 = 101001 001101 001001 110010 001000 001000 100001 110000
A7 = 100011 101000 011000 100110 001110 101000 100010 000000
A7 = 100011 101000 011000 100110 001110 101000 100010 000000
S1 = 100011
S2 = 101000
S3 = 011000
S4 = 100110
S5 = 001110
S6 = 101000
S7 = 100010
S8 = 000000
42
 S1
100011
Baris = 11
Kolom = 0001
S1 = 12 = 1100
 S2
101000
Baris = 10
Kolom = 0100
S2 = 10 = 1010
 S3
011000
Baris = 00
Kolom = 1100
S3 = 11 = 1011
 S4
100110
Baris = 10
Kolom = 0011
S4 = 0 = 0000
 S5
001110
Baris = 00
Kolom = 0111
S5 = 6 = 0110
43
 S6
101000
Baris = 10
Kolom = 0100
S6 = 2 = 0010
 S7
100010
Baris = 10
Kolom = 0001
S7 = 4 = 0100
 S8
000000
Baris = 00
Kolom = 0000
S8 = 13 = 1101
B 7 = S1 S2 S3 S4 S 5 S6 S 7 S8
B7 = 1100 1010 1011 0000 0110 0010 0100 1101
44
 Tabel P – Box
16 7 20 21
1 15 23 26
2 8 24 14
19 13 30 6
29
5
32
22
12
18
27
11
28
31
3
4
17
10
9
25
B7
1(1) 1(2) 0(3) 0(4) 1(5) 0(6) 1(7) 0(8)
1(9) 0(10) 1(11) 1(12) 0(13) 0(14) 0(15) 0(16)
0(17) 1(18) 1(19) 0(20) 0(21) 0(22) 1(23) 0(24)
0(25) 1(26) 0(27) 0(28) 1(29) 1(30) 0(31) 1(32)
01001100
10111100
10001001
10100100
P(B7)
L6 = R5
R7
P(B7) = 01001100 10111100 10001001 10100100
= 01001100 10111100 10001001 10100100
= 10011010 10110010 11110000 01000110
= 11010110 01001110 01111001 11100010
45
 EKSPANSI
R7
1(1) 1(2) 0(3) 1(4) 0(5) 1(6) 1(7) 0(8)
0(9) 1(10) 0(11) 0(12) 1(13) 1(14) 1(15) 0(16)
0(17) 1(18) 1(19) 1(20) 1(21) 0(22) 0(23) 1(24)
1(25) 1(26) 1(27) 0(28) 0(29) 0(30) 1(31) 0(32)
32
4
8
12
16
20
24
28
1
5
9
13
17
21
25
29
2
6
10
14
18
22
26
30
3
7
11
15
19
23
27
31
4
8
12
16
20
24
28
32
5
9
13
17
21
25
29
1
E (R7)= 011010 101100 001001 011100 001111 110011 111100 000101
 ITERASI 8
E(R7) = 011010 101100 001001 011100 001111 110011 111100 000101
K8 = 101001 100101 001101 010010 100000 001000 010000 010010
A8 = 110011 001001 000100 001110 101111 111011 101100 010111
A8 = 110011 001001 000100 001110 101111 111011 101100 010111
S1 = 110011
S2 = 001001
S3 = 000100
S4 = 001110
S5 = 101111
S6 = 111011
S7 = 101100
S8 = 010111
46
 S1
110011
Baris = 11
Kolom = 1001
S1 = 11 = 1011
 S2
001001
Baris = 01
Kolom = 0100
S2 = 15 = 1111
 S3
000100
Baris = 00
Kolom = 0010
S3 = 9 = 1001
 S4
001110
Baris = 00
Kolom = 0111
S4 = 10 = 1010
 S5
101111
Baris = 11
Kolom = 0111
S5 = 13 = 1101
47
 S6
111011
Baris = 11
Kolom = 1101
S6 = 0 = 0000
 S7
101100
Baris = 10
Kolom = 0110
S7 = 7 = 0111
 S8
010111
Baris = 01
Kolom = 1011
S8 = 11 = 1011
B 8 = S1 S2 S3 S4 S 5 S6 S 7 S8
B8 = 1011 1111 1001 1010 1101 0000 0111 1011
48
 Tabel P – Box
16 7 20 21
1 15 23 26
2 8 24 14
19 13 30 6
29
5
32
22
12
18
27
11
28
31
3
4
17
10
9
25
B8
1(1) 0(2) 1(3) 1(4) 1(5) 1(6) 1(7) 1(8)
1(9) 0(10) 0(11) 1(12) 1(13) 0(14) 1(15) 0(16)
1(17) 1(18) 0(19) 1(20) 0(21) 0(22) 0(23) 0(24)
0(25) 1(26) 1(27) 1(28) 1(29) 0(30) 1(31) 1(32)
01101111
11011110
01001111
01010010
P(B8)
L7 = R6
R8
P(B8) = 01101111 11011110 01001111 01010010
= 01101111 11011110 01001111 01010010
= 01010010 10001010 00110000 00011000
= 00111101 01010100 01111111 01001010
49
 EKSPANSI
R8
0(1) 0(2) 1(3) 1(4) 1(5) 1(6) 0(7) 1(8)
0(9) 1(10) 0(11) 1(12) 0(13) 1(14) 0(15) 0(16)
0(17) 1(18) 1(19) 1(20) 1(21) 1(22) 1(23) 1(24)
0(25) 1(26) 0(27) 0(28) 1(29) 0(30) 1(31) 0(32)
32
4
8
12
16
20
24
28
1
5
9
13
17
21
25
29
2
6
10
14
18
22
26
30
3
7
11
15
19
23
27
31
4
8
12
16
20
24
28
32
5
9
13
17
21
25
29
1
E (R8)= 000111 111010 101010 101000 001111 111110 101001 010100
 ITERASI 9
E(R8) = 000111 111010 101010 101000 001111 111110 101001 010100
K9 = 001101 100101 001101 010011 100000 010001 001100 001000
A9 = 001010 011111 100111 111011 101111 101111 100101 011100
A9 = 001010 011111 100111 111011 101111 101111 100101 011100
S1 = 001010
S2 = 011111
S3 = 100111
S4 = 111011
S5 = 101111
S6 = 101111
S7 = 100101
S8 = 011100
50
 S1
001010
Baris = 00
Kolom = 0101
S1 = 15 = 1111
 S2
011111
Baris = 01
Kolom = 1111
S2 = 5 = 0101
 S3
100111
Baris = 11
Kolom = 0011
S3 = 0 = 0000
 S4
111011
Baris = 11
Kolom = 1101
S4 = 7 = 0111
 S5
101111
Baris = 11
Kolom = 0111
S5 = 13 = 1101
51
 S6
101111
Baris = 11
Kolom = 0111
S6 = 10 = 1010
 S7
100101
Baris = 11
Kolom = 0010
S7 = 13 = 1101
 S8
011100
Baris = 00
Kolom = 1110
S8 = 12 = 1100
B 9 = S1 S2 S3 S4 S 5 S6 S 7 S8
B9 = 1111 0101 0000 0111 1101 1010 1101 1100
52
 Tabel P – Box
16 7 20 21
1 15 23 26
2 8 24 14
19 13 30 6
29
5
32
22
12
18
27
11
28
31
3
4
17
10
9
25
B9
1(1) 1(2) 1(3) 1(4) 0(5) 1(6) 0(7) 1(8)
0(9) 0(10) 0(11) 0(12) 0(13) 1(14) 1(15) 1(16)
1(17) 1(18) 0(19) 1(20) 1(21) 0(22) 1(23) 0(24)
1(25) 1(26) 0(27) 1(28) 1(29) 1(30) 0(31) 0(32)
10111011
11110100
11010010
00110011
P(B9)
L8 = R7
R9
P(B9) = 10111011 11110100 11010010 00110011
= 10111011 11110100 11010010 00110011
= 11010110 01001110 01111001 11100010
= 01101101 10111010 10101011 11010001
53
 EKSPANSI
R9
0(1) 1(2) 1(3) 0(4) 1(5) 1(6) 0(7) 1(8)
1(9) 0(10) 1(11) 1(12) 1(13) 0(14) 1(15) 0(16)
1(17) 0(18) 1(19) 0(20) 1(21) 0(22) 1(23) 1(24)
1(25) 1(26) 0(27) 1(28) 0(29) 0(30) 0(31) 1(32)
32
4
8
12
16
20
24
28
1
5
9
13
17
21
25
29
2
6
10
14
18
22
26
30
3
7
11
15
19
23
27
31
4
8
12
16
20
24
28
32
5
9
13
17
21
25
29
1
E (R9)= 101101 011011 110111 110101 010101 010111 111010 100010
 ITERASI 10
E(R9) = 101101 011011 110111 110101 010101 010111 111010 100010
K10 = 001011 110101 000101 010001 100010 000001 001000 100000
A10 = 100110 101110 110010 100100 110111 010110 110010 000010
A10 = 100110 101110 110010 100100 110111 010110 110010 000010
S1 = 100110
S2 = 101110
S3 = 110010
S4 = 100100
S5 = 110111
S6 = 010110
S7 = 110010
S8 = 000010
54
 S1
100110
Baris = 10
Kolom = 0011
S1 = 8 = 1000
 S2
101110
Baris = 10
Kolom = 0111
S2 = 1 = 0001
 S3
110010
Baris = 10
Kolom = 1001
S3 = 1 = 0001
 S4
100100
Baris = 10
Kolom = 0010
S4 = 9 = 1001
 S5
110111
Baris = 11
Kolom = 1011
S5 = 9 = 1001
55
 S6
010110
Baris = 00
Kolom = 1011
S6 = 4 = 0100
 S7
110010
Baris = 10
Kolom = 1001
S7 = 15 = 1111
 S8
000010
Baris = 00
Kolom = 0001
S8 = 2 = 0010
B10 = S1 S2 S3 S4 S5 S6 S7 S8
B10 = 1000 0001 0001 1001 1001 0100 1111 0010
56
 Tabel P – Box
16 7 20 21
1 15 23 26
2 8 24 14
19 13 30 6
29
5
32
22
12
18
27
11
28
31
3
4
17
10
9
25
B10
1(1) 0(2) 0(3) 0(4) 0(5) 0(6) 0(7) 1(8)
0(9) 0(10) 0(11) 1(12) 1(13) 0(14) 0(15) 1(16)
1(17) 0(18) 0(19) 1(20) 0(21) 1(22) 0(23) 0(24)
1(25) 1(26) 1(27) 1(28) 0(29) 1(30) 0(31) 0(32)
10100111
10010000
01000100
01101001
P(B10)
L9 = R8
R10
P(B10) = 10100111 10010000 01000100 01101001
= 10100111 10010000 01000100 01101001
= 00111101 01010100 01111111 01001010
= 10011010 11000100 00111011 00100011
57
 EKSPANSI
R10
1(1) 0(2) 0(3) 1(4) 1(5) 0(6) 1(7) 0(8)
1(9) 1(10) 0(11) 0(12) 0(13) 1(14) 0(15) 0(16)
0(17) 0(18) 1(19) 1(20) 1(21) 0(22) 1(23) 1(24)
0(25) 0(26) 1(27) 0(28) 0(29) 0(30) 1(31) 1(32)
32
4
8
12
16
20
24
28
1
5
9
13
17
21
25
29
2
6
10
14
18
22
26
30
3
7
11
15
19
23
27
31
4
8
12
16
20
24
28
32
5
9
13
17
21
25
29
1
E (R10)= 110011 110101 011000 001000 000111 110110 100100 000111
 ITERASI 11
E(R10) = 110011 110101 011000 001000 000111 110110 100100 000111
K11
= 000011 100100 000111 011001 010100 000000 101000 100100
A11
= 110000 010001 011111 010001 010011 110110 001100 100011
A11 = 110000 010001 011111 010001 010011 110110 001100 100011
S1 = 110000
S2 = 010001
S3 = 011111
S4 = 010001
S5 = 010011
S6 = 110110
S7 = 001100
S8 = 100011
58
 S1
110000
Baris = 10
Kolom = 1000
S1 = 15 = 1111
 S2
010001
Baris = 01
Kolom = 1000
S2 = 12 = 1100
 S3
011111
Baris = 01
Kolom = 1111
S3 = 1 = 0001
 S4
010001
Baris = 01
Kolom = 1000
S4 = 4 = 0100
 S5
010011
Baris = 01
Kolom = 1001
S5 = 0 = 0000
59
 S6
110110
Baris = 10
Kolom = 1011
S6 = 10 = 1010
 S7
001100
Baris = 00
Kolom = 0110
S7 = 8 = 1000
 S8
100011
Baris = 11
Kolom = 0001
S8 = 1 = 0001
B11 = S1 S2 S3 S4 S5 S6 S7 S8
B11 = 1111 1100 0001 0100 0000 1010 1000 0001
60
 Tabel P – Box
16 7 20 21
1 15 23 26
2 8 24 14
19 13 30 6
29
5
32
22
12
18
27
11
28
31
3
4
17
10
9
25
B11
1(1) 1(2) 1(3) 1(4) 1(5) 1(6) 0(7) 0(8)
0(9) 0(10) 0(11) 1(12) 0(13) 1(14) 0(15) 0(16)
0(17) 0(18) 0(19) 0(20) 1(21) 0(22) 1(23) 0(24)
1(25) 0(26) 0(27) 0(28) 0(29) 0(30) 0(31) 1(32)
00010100
10101000
10011010
00010011
P(B11)
L10 = R9
R11
P(B11) = 00010100 10101000 10011010 00010011
= 00010100 10101000 10011010 00010011
= 01101101 10111010 10101011 11010001
= 01111001 00010010 00110001 11000010
61
 EKSPANSI
R11
0(1) 1(2) 1(3) 1(4) 1(5) 0(6) 0(7) 1(8)
0(9) 0(10) 0(11) 1(12) 0(13) 0(14) 1(15) 0(16)
0(17) 0(18) 1(19) 1(20) 0(21) 0(22) 0(23) 1(24)
1(25) 1(26) 0(27) 0(28) 0(29) 0(30) 1(31) 0(32)
32
4
8
12
16
20
24
28
1
5
9
13
17
21
25
29
2
6
10
14
18
22
26
30
3
7
11
15
19
23
27
31
4
8
12
16
20
24
28
32
5
9
13
17
21
25
29
1
E (R11)= 001111 110010 100010 100100 000110 100011 111000 000100
 ITERASI 12
E(R11) = 001111 110010 100010 100100 000110 100011 111000 000100
K12 = 000111 110100 100110 011001 000100 000010 100010 001000
A12 = 001000 000110 000100 111101 000010 100001 011010 001100
A12 = 001000 000110 000100 111101 000010 100001 011010 001100
S1 = 001000
S2 = 000110
S3 = 000100
S4 = 111101
S5 = 000010
S6 = 100001
S7 = 011010
S8 = 001100
62
 S1
001000
Baris = 00
Kolom = 0100
S1 = 2 = 0010
 S2
000110
Baris = 00
Kolom = 0010
S2 = 8 = 1000
 S3
000100
Baris = 00
Kolom = 0010
S3 = 9 = 1001
 S4
111101
Baris = 11
Kolom = 1110
S4 = 2 = 0010
 S5
000010
Baris = 00
Kolom = 0001
S5 = 12 = 1100
63
 S6
10000 1
Baris = 11
Kolom = 0000
S6 = 4 = 0100
 S7
011010
Baris = 00
Kolom = 1101
S7 = 10 = 1010
 S8
001100
Baris = 00
Kolom = 0110
S8 = 11 = 1011
B12 = S1 S2 S3 S4 S5 S6 S7 S8
B12 = 0010 1000 1001 0010 1100 0100 1010 1011
64
 Tabel P – Box
16 7 20 21
1 15 23 26
2 8 24 14
19 13 30 6
29
5
32
22
12
18
27
11
28
31
3
4
17
10
9
25
B12
0(1) 0(2) 1(3) 0(4) 1(5) 0(6) 0(7) 0(8)
1(9) 0(10) 0(11) 1(12) 0(13) 0(14) 1(15) 0(16)
1(17) 1(18) 0(19) 0(20) 0(21) 1(22) 0(23) 0(24)
1(25) 0(26) 1(27) 0(28) 1(29) 0(30) 1(31) 1(32)
00001101
01001110
00001111
00001001
P(B12) = 00001101 01001110 00001111 00001001
P(B12)
= 00001101 01001110 00001111 00001001
L11 = R10 = 10011010 11000100 00111011 00100011
R12
= 10010111 10001010 00110100 00101010
65
 EKSPANSI
R12
1(1) 0(2) 0(3) 1(4) 0(5) 1(6) 1(7) 1(8)
1(9) 0(10) 0(11) 0(12) 1(13) 0(14) 1(15) 0(16)
0(17) 0(18) 1(19) 1(20) 0(21) 1(22) 0(23) 0(24)
0(25) 0(26) 1(27) 0(28) 1(29) 0(30) 1(31) 0(32)
32
4
8
12
16
20
24
28
1
5
9
13
17
21
25
29
2
6
10
14
18
22
26
30
3
7
11
15
19
23
27
31
4
8
12
16
20
24
28
32
5
9
13
17
21
25
29
1
E (R12)= 010010 101111 110001 010100 000110 101000 000101 010101
 ITERASI 13
E(R12) = 010010 101111 110001 010100 000110 101000 000101 010101
K13 = 000111 110000 100110 001001 001000 010011 000000 010001
A13 = 010101 011111 010111 011101 001110 111011 000101 000100
A13 = 010101 011111 010111 011101 001110 111011 000101 000100
S1 = 010101
S2 = 011111
S3 = 010111
S4 = 011101
S5 = 001110
S6 = 111011
S7 = 000101
S8 = 000100
66
 S1
010101
Baris = 01
Kolom = 1010
S1 = 12 = 1100
 S2
011111
Baris = 01
Kolom = 1111
S2 = 5 = 0101
 S3
010111
Baris = 01
Kolom = 1011
S3 = 14 = 1110
 S4
011101
Baris = 01
Kolom = 1110
S4 = 14 = 1110
 S5
001110
Baris = 00
Kolom = 0111
S5 = 6 = 0110
67
 S6
111011
Baris = 11
Kolom = 1101
S6 = 0 = 0000
 S7
000101
Baris = 01
Kolom = 0010
S7 = 11 = 1011
 S8
000100
Baris = 00
Kolom = 0010
S8 = 8 = 1000
B13 = S1 S2 S3 S4 S5 S6 S7 S8
B13 = 1100 0101 1110 1110 0110 0000 1011 1000
68
 Tabel P – Box
16 7 20 21
1 15 23 26
2 8 24 14
19 13 30 6
29
5
32
22
12
18
27
11
28
31
3
4
17
10
9
25
B13
1(1) 1(2) 0(3) 0(4) 0(5) 1(6) 0(7) 1(8)
1(9) 1(10) 1(11) 0(12) 1(13) 1(14) 1(15) 0(16)
0(17) 1(18) 1(19) 0(20) 0(21) 0(22) 0(23) 0(24)
1(25) 0(26) 1(27) 1(28) 1(29) 0(30) 0(31) 0(32)
00001010
11000101
11010101
11010101
P(B13) = 00001010 11000101 11010101 11010101
P(B13)
= 00001010 11000101 11010101 11010101
L12 = R11 = 01111001 00010010 00110001 11000010
R13
= 01110011 11010111 11100100 00010111
69
 EKSPANSI
R13
0(1) 1(2) 1(3) 1(4) 0(5) 0(6) 1(7) 1(8)
1(9) 1(10) 0(11) 1(12) 0(13) 1(14) 1(15) 1(16)
1(17) 1(18) 1(19) 0(20) 0(21) 1(22) 0(23) 0(24)
0(25) 0(26) 0(27) 1(28) 0(29) 1(30) 1(31) 1(32)
32
4
8
12
16
20
24
28
1
5
9
13
17
21
25
29
2
6
10
14
18
22
26
30
3
7
11
15
19
23
27
31
4
8
12
16
20
24
28
32
5
9
13
17
21
25
29
1
E (R13)= 101110 100111 111010 101111 111100 001000 000010 101110
 ITERASI 14
E(R13) = 101110 100111 111010 101111 111100 001000 000010 101110
K14 = 000100 110010 100010 001101 001000 100010 000000 100010
A14 = 101010 010101 011000 100010 110100 101010 000010 001100
A14 = 101010 010101 011000 100010 110100 101010 000010 001100
S1 = 101010
S2 = 010101
S3 = 011000
S4 = 100010
S5 = 110100
S6 = 101010
S7 = 000010
S8 = 001100
70
 S1
101010
Baris = 10
Kolom = 0101
S1 = 6 = 0110
 S2
010101
Baris = 01
Kolom = 1010
S2 = 1 = 0001
 S3
011000
Baris = 00
Kolom = 1100
S3 = 11 = 1001
 S4
100010
Baris = 10
Kolom = 0001
S4 = 6 = 0110
 S5
110100
Baris = 10
Kolom = 1010
S5 = 12 = 1100
71
 S6
101010
Baris = 10
Kolom = 0101
S6 = 8 = 1000
 S7
000010
Baris = 00
Kolom = 0001
S7 = 11 = 1011
 S8
001100
Baris = 00
Kolom = 0110
S8 = 11 = 1011
B14 = S1 S2 S3 S4 S5 S6 S7 S8
B14 = 0110 0001 1001 0110 1100 1000 1011 1011
72
 Tabel P – Box
16 7 20 21
1 15 23 26
2 8 24 14
19 13 30 6
29
5
32
22
12
18
27
11
28
31
3
4
17
10
9
25
B14
0(1) 1(2) 1(3) 0(4) 0(5) 0(6) 0(7) 1(8)
1(9) 0(10) 0(11) 1(12) 0(13) 1(14) 1(15) 0(16)
1(17) 1(18) 0(19) 0(20) 1(21) 0(22) 0(23) 0(24)
1(25) 0(26) 1(27) 1(28) 1(29) 0(30) 1(31) 1(32)
00011111
01000110
11011111
00000001
P(B14) = 00011111 01000110 11011111 00000001
P(B14)
= 00011111 01000110 11011111 00000001
L13 = R12 = 10010111 10001010 00110100 00101010
R14
= 10001000 11001100 11101011 00101011
73
 EKSPANSI
R14
1(1) 0(2) 0(3) 0(4) 1(5) 0(6) 0(7) 0(8)
1(9) 1(10) 0(11) 0(12) 1(13) 1(14) 0(15) 0(16)
1(17) 1(18) 1(19) 0(20) 1(21) 0(22) 1(23) 1(24)
0(25) 0(26) 1(27) 0(28) 1(29) 0(30) 1(31) 1(32)
32
4
8
12
16
20
24
28
1
5
9
13
17
21
25
29
2
6
10
14
18
22
26
30
3
7
11
15
19
23
27
31
4
8
12
16
20
24
28
32
5
9
13
17
21
25
29
1
E (R14)= 110001 010001 011001 011001 011101 010110 100101 010111
 ITERASI 15
E(R14) = 110001 010001 011001 011001 011101 010110 100101 010111
K15 = 000110 010010 110010 001100 001001 000000 000100 000110
A15 = 110111 000011 101011 010101 010100 010110 100001 010001
A15 = 110111 000011 101011 010101 010100 010110 100001 010001
S1 = 110111
S2 = 000011
S3 = 101011
S4 = 010101
S5 = 010100
S6 = 010110
S7 = 100001
S8 = 010001
74
 S1
110111
Baris = 11
Kolom = 1011
S1 = 14 = 1110
 S2
000011
Baris = 01
Kolom = 0001
S2 = 13 = 1101
 S3
101011
Baris = 11
Kolom = 0101
S3 = 9 = 1001
 S4
010101
Baris = 01
Kolom = 1010
S4 = 2 = 0010
 S5
010100
Baris = 00
Kolom = 1010
S5 = 3 = 0011
75
 S6
010110
Baris = 00
Kolom = 1011
S6 = 4 = 0100
 S7
100001
Baris = 11
Kolom = 0000
S7 = 6 = 0110
 S8
010001
Baris = 01
Kolom = 1000
S8 = 12 = 1100
B15 = S1 S2 S3 S4 S5 S6 S7 S8
B15 = 1110 1101 1001 0010 0011 0100 0110 1100
76
 Tabel P – Box
16 7 20 21
1 15 23 26
2 8 24 14
19 13 30 6
29
5
32
22
12
18
27
11
28
31
3
4
17
10
9
25
B15
1(1) 1(2) 1(3) 0(4) 1(5) 1(6) 0(7) 1(8)
1(9) 0(10) 0(11) 1(12) 0(13) 0(14) 1(15) 0(16)
0(17) 0(18) 1(19) 1(20) 0(21) 1(22) 0(23) 0(24)
0(25) 1(26) 1(27) 0(28) 1(29) 1(30) 0(31) 0(32)
00101100
11011000
11000111
10111000
P(B15) = 00101100 11011000 11000111 10111000
P(B15)
= 00101100 11011000 11000111 10111000
L14 = R13 = 01110011 11010111 11100100 00010111
R15
= 01011111 00001111 00100011 10101111
77
 EKSPANSI
R15
0(1) 1(2) 0(3) 1(4) 1(5) 1(6) 1(7) 1(8)
0(9) 0(10) 0(11) 0(12) 1(13) 1(14) 1(15) 1(16)
0(17) 0(18) 1(19) 0(20) 0(21) 0(22) 1(23) 1(24)
1(25) 0(26) 1(27) 0(28) 1(29) 1(30) 1(31) 1(32)
32
4
8
12
16
20
24
28
1
5
9
13
17
21
25
29
2
6
10
14
18
22
26
30
3
7
11
15
19
23
27
31
4
8
12
16
20
24
28
32
5
9
13
17
21
25
29
1
E (R15)= 101011 111110 100001 011110 100100 000111 110101 011110
 ITERASI 16
E(R15) = 101011 111110 100001 011110 100100 000111 110101 011110
K16 = 010100 010010 110010 001100 000101 100000 000100 000000
A16 = 111111 101100 010011 010010 100001 100111 110001 011110
A16 = 111111 101100 010011 010010 100001 100111 110001 011110
S1 = 111111
S2 = 101100
S3 = 010011
S4 = 010010
S5 = 100001
S6 = 100111
S7 = 110001
S8 = 011110
78
 S1
111111
Baris = 11
Kolom = 1111
S1 = 13 = 1101
 S2
101100
Baris = 10
Kolom = 0110
S2 = 13 = 1101
 S3
010011
Baris = 01
Kolom = 1001
S3 = 8 = 1000
 S4
010010
Baris = 00
Kolom = 1001
S4 = 2 = 0010
 S5
100001
Baris = 11
Kolom = 0000
S5 = 11 = 1011
79
 S6
100111
Baris = 11
Kolom = 0011
S6 = 12 = 1100
 S7
110001
Baris = 11
Kolom = 1000
S7 = 9 = 1001
 S8
011110
Baris = 00
Kolom = 1111
S8 = 7 = 0111
B16 = S1 S2 S3 S4 S5 S6 S7 S8
B16 = 1101 1101 1000 0010 1011 1100 1001 0111
80
 Tabel P – Box
16 7 20 21
1 15 23 26
2 8 24 14
19 13 30 6
29
5
32
22
12
18
27
11
28
31
3
4
17
10
9
25
B16
1(1) 1(2) 0(3) 1(4) 1(5) 1(6) 0(7) 1(8)
1(9) 0(10) 0(11) 0(12) 1(13) 0(14) 1(15) 0(16)
1(17) 0(18) 1(19) 1(20) 1(21) 1(22) 0(23) 0(24)
1(25) 0(26) 0(27) 1(28) 0(29) 1(30) 1(31) 1(32)
00110011
11001010
11001001
11111011
P(B16) = 00110011 11001010 11001001 11111011
P(B16)
= 00110011 11001010 11001001 11111011
L15 = R14 = 10001000 11001100 11101011 00101011
R16
= 10111011 00000110 00100010 11010000
81
R16
= 10111011 00000110 00100010 11010000
L16 = R15 = 01011111 00001111 00100011 10101111
 R16L16
1(1) 0(2) 1(3) 1(4) 1(5) 0(6) 1(7) 1(8)
0(9) 0(10) 0(11) 0(12) 0(13) 1(14) 1(15) 0(16)
0(17) 0(18) 1(19) 0(20) 0(21) 0(22) 1(23) 0(24)
1(25) 1(26) 0(27) 1(28) 0(29) 0(30) 0(31) 0(32)
0(33) 1(34) 0(35) 1(36) 1(37) 1(38) 1(39) 1(40)
0(41) 0(42) 0(43) 0(44) 1(45) 1(46) 1(47) 1(48)
0(49) 0(50) 1(51) 0(52) 0(53) 0(54) 1(55) 1(56)
1(57) 0(58) 1(59) 0(60) 1(61) 1(62) 1(63) 1(64)
IP -1
40
39
38
37
36
35
34
33
8
7
6
5
4
3
2
1
48
47
46
45
44
43
42
41
16
15
14
13
12
11
10
9
56
55
54
53
52
51
50
49
24
23
22
21
20
19
18
17
Chipper = 01101010 01111110 10110010 11100010 11000001 01001110
10000001 01000011
Hexa
= 6A 7E B2 E2 C1 4E 81 43
82
64
63
62
61
60
59
58
57
32
31
30
29
28
27
26
25
Download