ENKRIPSI CBC
PLAINTEKS : FIRZA
KEY : 53
INITIALIZATION (IV) : 01001110
PLAINTEKS BINARY
46 : 01000110
49 : 01001001
52 : 01010010
5A : 01010001
41 : 01000001
PLAINTEKS KEY(K)
53 : 01010011
C1 =
1. P1 (+) C0 = 01000110 (+) 01001110 = 00001000
2. (1) (+) K = 00001000 (+) 01010011 = 01011011
3. Geser 1 Bit Ke Kiri = 10110110 (KF) //merupakan hasil C1
C2 =
1. P2 (+) C1 = 01001001 (+) 10110110 = 11111111
2. (1) (+) K = 11111111 (+) 01010011 = 10101100
3. Geser 1 Bit Ke Kiri = 01011001 (UI) //merupakan hasil C2
C3 =
1. P3 (+) C2 = 01010010 (+) 01011001 = 00001010
2. (1) (+) K = 00001010 (+) 01010011 = 01011001
3. Geser 1 Bit Ke Kiri = 10110010 (FC) //merupakan hasil C3
C4 =
1. P4 (+) C3 = 01010001 (+) 10110011 = 11100010
2. (1) (+) K = 11100010 (+) 01010011 = 10110001
3. Geser 1 Bit Ke Kiri = 0110011 (FC) //merupakan hasil C4
C5 =
1. P5 (+) C4 = 01000001 (+) 01100011 = 00100010
2. (1) (+) K = 00100010 (+) 01010011 = 00111001
3. Geser 1 Bit Ke Kiri = 01011001 (NB) //merupakan hasil C5
MAKA HASIL ENKRIPSI CBC = KFUIKSFCNB