CIPHER BLOCK CHAINING (CBC)
Lakukan enkripsi 5 karakter awal dari nama (Huruf Kapital) menggunakan key Nim ganjil x / pergeseran 2 , IV Huruf akhir dari nama (huruf kecil)
Plainteks = RAHMA
Plaintek ke hexa = 52 41 48 4d 41
Plaintek Biner
52 = 01010010
41 = 01000001
48 = 01001000
4d = 01001101
41 = 01000001
Key : x = 01111000
Pergeseran : 2
IV : t= 01110100
C1 = (P1) + C0 = 01010010 +
= 00100110
= (1) + K = 00100110+
= 01011110
= Geser (2) bit ke kiri = 0111 1001 (79)
C2 = (P2) + C1 = 01000001 +
=00111000
= (1) + K = 00111000+
01111000
= 01000000
Geser (2) bit ke kiri = 00000001 (01)
C3 = (P3) + C2 = 01001000 +
00000001
= 01001001
=(1) + K = 01001001 +
01111000
= 00110001
Geser (2) bit ke kiri = 11000100 (C4)
C4 = (P4) + C3 = 01001101+
= 10001001
= (1) + K = 10001001 +
= 11110001
Geser (2) bit ke kiri =11000111 (C7)
C5 = (P5) + C4 = 0100 0001 +
= 1000 0110
(1) + K = 1000 0110 +
0111 1000
= 1111 1110
Geser (2) bit ke kiri = 1111 1011 (FB)
Cipherteks Enkripsi CBC = 7901C4C7FB
Komentar
Posting Komentar