0% found this document useful (0 votes)
7 views23 pages

Konversi Nilai Desimal dan Enkripsi

This document explains different cipher techniques including: - Caesar cipher where letters are shifted by a key value - Vigenere cipher where the key is a word that is repeatedly xored with the plaintext - Vernam cipher which uses a one-time pad by xoring the plaintext with a random key of the same length.

Uploaded by

Ode Premiere
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views23 pages

Konversi Nilai Desimal dan Enkripsi

This document explains different cipher techniques including: - Caesar cipher where letters are shifted by a key value - Vigenere cipher where the key is a word that is repeatedly xored with the plaintext - Vernam cipher which uses a one-time pad by xoring the plaintext with a random key of the same length.

Uploaded by

Ode Premiere
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd

NILAI DESIMAL 0 1 2 3 4 5

Plain Text A B C D E F
Key = 3 D E F G H I

Key = 3

E: PI + K mod 26
8 + 2 mod 26
10 mod 26
10 CipherText

D: Ci - K mod 26
10 - 2 mod 26
8 mod 26
8 PlainText
CAESAR CIPHER

6 7 8 9 10 11 12 13 14 15
G H I J K L M N O P
J K L M N O P Q R S

ENKRIPSI
D E W A G E D E
3 4 22 0 6 4 3 4
pherText G H Z D J H G H

DESKRIPSI
G H Z D J H G H
3 4 22 0 6 4 3 4
ainText D E W A G E D E
16 17 18 19 20 21 22 23 24 25
Q R S T U V W X Y Z
T U V W X Y Z A B C

W I D I A N T A R
22 8 3 8 0 13 19 0 17
Z L G L D Q W D U

Z L G L D Q W D U
22 8 3 8 0 13 19 0 17
W I D I A N T A R
A
0
D

D
0
A
NILAI DESIMAL 0 1 2 3 4
Plain Text A B C D E

Enkripsi
E : PI + K mod 26
12 + 0 mod 26
12 mod 26
12

Key = cadas

Plaintext D E W A
Konversi 3 4 22 0

Key c a d a
Konversi 2 0 3 0
Hasil Konversi 5 4 25 0
Ciphertext F E Z A

Deskripsi
D : Ci - K mod 26
12 - 0 mod 26
12 mod 26
12

Key = cadas

Ciphertext F E Z A
Hasil Konversi 5 4 25 0

Key c a d a
Konversi 2 0 3 0

Konversi 3 4 22 0
Plaintext D E W A
VIGENERE CIPHER
5 6 7 8 9 10 11 12 13 14
F G H I J K L M N O

Proses Enkripsi
G E D E W I D I
6 4 3 4 22 8 3 8

s c a d a s c a
18 2 0 3 0 18 2 0
24 6 3 7 22 26 5 8
Y G D H W A F I

Proses Deskripsi
Y G D H W A F I
24 6 3 7 22 26 5 8

s c a d a s c a
18 2 0 3 0 18 2 0

6 4 3 4 22 8 3 8
G E D E W I D I
PHER
15 16 17 18 19 20 21 22 23 24
P Q R S T U V W X Y

A N T A R A
0 13 19 0 17 0

d a s c a d
3 0 18 2 0 3
3 13 37 2 17 3
D N L C R D

D N L C R D
3 13 11 2 17 3

d a s c a d
3 0 18 2 0 3

0 13 19 0 17 0
A N T A R A
25
Z
Vernam Cipher

Plaintext : Dewa Gede Widiantara


Key : bali

Plaintext ASCII Biner


D 68 01000100
e 101 01100101
w 119 01110111
a 97 01100001
32 00100000
G 71 01000111
e 101 01100101
d 100 01100100
e 101 01100101
32 00100000
W 87 01010111
i 105 01101001
d 100 01100100
i 105 01101001
a 97 01100001
n 110 01101110
t 116 01110100
a 97 01100001
r 114 01110010
a 97 01100001
Key ASCII Biner
b 98 01100010
a 97 01100001
l 108 01101100
i 105 01101001

Enkripsi
P 0100010001100101011101110110000100100000010001110110010101100100011001
K 0110001001100001011011000110100101100010011000010110110001101001011000
C 0010011000000100000110110000100001000010001001100000100100001101000001

Deskripsi
C 0010011000000100000110110000100001000010001001100000100100001101000001
K 0110001001100001011011000110100101100010011000010110110001101001011000
P 0100010001100101011101110110000100100000010001110110010101100100011001
nam Cipher
100101011001000110010100100000010101110110100101100100011010010110000101101110011101000
101100011010010110001001100001011011000110100101100010011000010110110001101001011000100
001001000011010000011101000001001110110000000000000110000010000000110100000111000101100

001001000011010000011101000001001110110000000000000110000010000000110100000111000101100
101100011010010110001001100001011011000110100101100010011000010110110001101001011000100
100101011001000110010100100000010101110110100101100100011010010110000101101110011101000
110111001110100011000010111001001100001
110100101100010011000010110110001101001
000011100010110000000000001111000001000

000011100010110000000000001111000001000
110100101100010011000010110110001101001
110111001110100011000010111001001100001

You might also like