You are on page 1of 28

INTRODUCTION TO

CRYPTOGRAPHY
Classical Encryption Techniques
Sistem Chiper Klasik
 Tiga alasan mempelajari algoritma kriptografi
klasik:
 Untuk memberikan pemahaman konsep dasar
kriptografi.
 Dasar dari algoritma kriptografi modern.
 Dapat memahami potensi-potensi kelemahan sistem
chiper.
  Algoritma kriptografi klasik:
 Chiper Substitusi (Substitution Chipers)
 Chiper Transposisi (Transposition Chipers)
Simple Encryption Model
5 Komponen Sistem Enkripsi
 Plaintext
 Encryption algorithm
 Secret key
 Ciphertext
 Decryption algorithm
Model Sistem Kriptografi Simetrik
Cryptanalysis Attack (1)
Cryptanalysis Attack (2)
Brute-Force Attack Efforts for
DES
Cryptanalysis Main Concept
1. The encryption and decryption algorithms are
known.
2. There are any possible number of keys to try.
3. The language of the plaintext is known and easily
recognizable.
Teknik Subsitusi: Cesar Chipper
 Plain meet me after the toga party
 Cipher PHHW PH DIWHU WKH WRJD SDUWB

 plain a b c d e f g h i j k l m n o p q r s t u v w x y z
 cipher D E F G H I J K L M N O P Q R S T U V W X Y Z A B C
Substitution Formula
Cesar Chipper: Cryptanalysis
Cesar Chipper: Compressed
Monoalphabetic Ciphers
Monoalphabetical Chipper (2)
Monoalphabetical Chipper (3)
Monoalphabetical Chipper: Cryptanalysis
Polyalphabetical Chipper
Polyalphabetical Chipper (2)
Polyalphabetical Chiper (3)
Vernam Chipper
Vernam Chipper (2)
One-time Pad
One-time Pad (2)
 In theory, we need look no further for a cipher.The one-time
pad offers complete security but, in practice, has two
fundamental difficulties:
1. There is the practical problem of making large quantities
of random keys.
Any heavily used system might require millions of random
characters on a regular basis. Supplying truly random
characters in this volume is a significant task.
2. Even more daunting is the problem of key distribution
and protection.
For every message to be sent, a key of equal length is needed
by both sender and receiver.Thus, a mammoth key
distribution problem exists.
Transposition Techniques: Rail
Fences
Transposition: Permutated
Columns
Latihan
 Seseorang yang usil telah mengenkripsi sebuah artikel dalam bahasa
Inggris menjadi chiperteks dengan metode Substitusi. Dalam enkripsi ini,
si usil hanya mengubah karakter abjad (a..z). Huruf kapital diubah ke huruf
kecil sebelum dienkripsi. Karakter lain (angka, spasi, koma, titik, dan lain-
lain) tidak dienkripsi. Setiap paragraf dienkripsi dengan kunci yang
berbeda.
 Anda sebagai kriptanalis ditugaskan untuk mendekripsi chiperteks
tersebut ke plainteks asli. Chiperteks dibagi-bagi menjadi beberapa arsip
teks. Satu kelompok mendekripsi sebuah arsip. Satu kelompok
beranggotakan maksimum tiga orang. Setiap kelompok diperbolehkan
menggunakan kakas bantu (coretan kertas, Ms Excel, maupun program
kecil) untuk menyelesaikan tugas ini.
 Metode yang digunakan dalam kriptanalisis ini adalah metode Statistik
(atau metode lain jika diperlukan). Yang dinilai dalam tugas ini adalah
rangkaian langkah dalam mendekripsi chiperteks, tanpa terpengaruh kakas
yang digunakan.
Teks
1. b lboy : zxl b mrbgp qh ifxg lbhp
lry ebzbhymy rbcy bokbim ofcyj tgymr tqmr. dxl lry
kblygm vofmy lf ebzbh rbcy hfl ryoj nbhi tqmr tfg jyvbjym.
mf lf tyyj lry ebzbhymy zfzxoblqfh, tqmrqhw dfblm wfl
dqwwyg bhj kyhl tbglryg lrbh ycyg. lry tbglryg lry
tqmrygnyh kyhl, lry ofhwyg ql lffp lf dgqhw qh lry tqmr.
2. da run onryoz rodg rppb jpon ruxz x anv fxes, run adsu
vnon zpr aonsu. run lxgxznsn fdf zpr tdbn run rxsrn. rp
sptkn ruds gopctnj, adsudzh wpjgxzdns dzsrxttnf aonninos
pz rundo cpxrs. rune vpytf wxrwu run adsu xzf aonnin runj
xr snx. aonninos xttpvnf run cpxrs rp hp axoruno xzf srxe
tpzhno. upvnkno, run lxgxznsn wpytf rxsrn run fdaanonzwn
cnrvnnz aonsu xzf aopinz xzf rune fdf zpr tdbn aopinz adsu.

You might also like