1 / 30

Kriptanalisis (Monoalphabetic Cipher) Sumber: Rinaldi Munir, ITB

Kriptanalisis (Monoalphabetic Cipher) Sumber: Rinaldi Munir, ITB. Kriptanalisis pada Monoalphabetic Cipher. Jumlah kunci = 26! Tidak dapat menyembunyikan hubungan antara plainteks dengan cipherteks. Huruf yang sama dienkripsi menjadi huruf cipherteks yang sama

vlad
Télécharger la présentation

Kriptanalisis (Monoalphabetic Cipher) Sumber: Rinaldi Munir, ITB

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Kriptanalisis (Monoalphabetic Cipher)Sumber: Rinaldi Munir, ITB

  2. Kriptanalisis pada Monoalphabetic Cipher Jumlah kunci = 26! Tidak dapat menyembunyikan hubungan antara plainteks dengan cipherteks. Huruf yang sama dienkripsi menjadi huruf cipherteks yang sama Huruf yang sering muncul di dalam plainteks, sering muncul pula di dalam cipherteksnya.

  3.  cipherteks dapat didekripsi tanpa mengetahui kunci (ciphertext-only attack) Metode yang digunakan: 1. Terkaan 2. Statistik (analisis frekuensi) Informasi yang dibutuhkan: 1. Mengetahui bahasa yang digunakan untuk plainteks 2. Konteks plainteks

  4. Metode Terkaan Asumsi: - bahasa plainteks adalah B. Inggris - spasi tidak dibuang Tujuan: mereduksi jumlah kunci Contoh 1. Cipherteks: G WR W RWL Plainteks: I AM A MA* I AM A MAN Jumlah kunci berkurang dari 26! menjadi 22!

  5. Contoh 2. Cipherteks: HATTPT Plainteks: salah satu dari T atau P merepresentasikan huruf vokal, misal CHEESE MISSES CANNON

  6. Contoh 3. Cipherteks: HATTPT Plainteks: diketahui informasi bahwa pesan tersebut adalah nama negara.  GREECE

  7.  dikelompokkan ke dalam blok-blok huruf. Contoh: CTBMN BYCTC BTJDS QXBNS GSTJC BTSWX CTQTZ CQVUJ QJSGS TJQZZ MNQJS VLNSX VSZJU JDSTS JQUUS JUBXJ DSKSU JSNTK BGAQJ ZBGYQ TLCTZ BNYBN QJSW Informasi: dari perusahaan yang bergerak di bidang keuangan Kata keuangan dalam Bahasa Inggris adalah FINANCIAL

  8. Perhatikan F INANCI AL Pola ciphertext seperti diatas: Posisi 6, 15, 27, 31, 42, 48, 56, 66, 70, 71 dan 82 Posisi 31 dan 42 mempunyai huruf yang berulang dan berkoresponden dengan N Posisi 31 huruf A berada pada posisi yang tepat FINANCIAL pada posisi 30, yaitu untuk kriptogram XCTQTZCQV

  9. Diperoleh pemetaan: X F C I T N Q A Z C V L Ganti semua huruf X, C, T, Q, Z, V dengan F, I, N, A, C, L: CTBMN BYCTC BTJDS QXBNS GSTJC BTSWX CTQTZ CQVUJ QJSGS TJQZZ MNQJS VLNSX VSZJU JDSTS JQUUS JUBXJ DSKSU JSNTK BGAQJ ZBGYQ TLCTZ BNYBN QJSW inBMN BYini BnJDS cfBNS GSnJi BnSWf inanc ialUJ aJSGS nJacc MNaJS VLNSf VScJU JDSnS JaUUS JUBfJ DSKSU JSNnK BGAaJ cBGYa nLinc BNYBN aJSW Jumlah kunci berkurang menjadi 20! Deduksi dapat diteruskan.

  10. Metode Analisis Frekuensi

  11. Top 10 huruf yang sering muncul dalam teks Bahasa Inggris: E, T, A, O, I, N, S, H, R, D, L, U Top 10 huruf bigram yang sering muncul dalam teks B. Inggris: TH, HE, IN, EN, NT, RE, ER, AN, TI, dan ES Top 10 huruf trigram yang sering muncul dalam teks B. Inggris: THE, AND, THA, ENT, ING, ION, TIO, FOR, NDE, dan HAS

  12. Top 10 huruf yang paling sering muncul dalam Bahasa Indonesia:

  13. Kriptanalis menggunakan tabel frekuensi kemunculan huruf dalam B. Inggris sebagai alat bantu melakukan dekripsi. Mis  jika huruf “R” paling sering muncul di dalam cipherteks  adalah huruf “E” di dalam plainteksnya.

  14. Teknik analisis frekuensi dilakukan sebagai berikut: Plainteks ditulis dalam Bahasa Inggris. Asumsikan plainteks dienkripsi dengan cipher alfabat-tunggal. Hitung frekuensi kemunculan relatif huruf-huruf di dalam cipherteks. Bandingkan hasil langkah 2 dengan Tabel frekuensi

  15. Contoh: UZ QSO VUOHXMOPV GPOZPEVSG ZWSZ OPFPESX UDBMETSX AIZ VUEPHZ HMDZSHZO WSFP APPD TSVP QUZW YMXUZUHSX EPYEPOPDZSZUFPO MB ZWP FUPZ HMDJ UD TMOHMQ

  16. Frekuensi kemunculan huruf di dalam cipherteks tersebut:

  17. Huruf yang paling sering muncul di dalam cipherteks: huruf P dan Z. Huruf yang paling sering muncul di dalam B. Inggris: huruf E dan T. Jadi (mungkin), P  E Z  T Trial and error dan pengetahuan tentang Bahasa Inggris.

  18. Iterasi 1: UZ QSO VUOHXMOPV GPOZPEVSG ZWSZ OPFPESX UDBMETSX AIZ t e e te t t e e t VUEPHZ HMDZSHZO WSFP APPD TSVP QUZW YMXUZUHSX e t t t e ee e t t EPYEPOPDZSZUFPO MB ZWP FUPZ HMDJ UD TMOHMQ e e e t t e t e e t ZWPt*e ZWSZt**t WH ZWPthe ZWSZthat

  19. Diperoleh pemetaan: P e Z t W h S a Iterasi 2: UZ QSO VUOHXMOPV GPOZPEVSG ZWSZ OPFPESX UDBMETSX AIZ t a e e te a that e e a a t VUEPHZ HMDZSHZO WSFP APPD TSVP QUZW YMXUZUHSX e t ta t ha e ee a e th t a EPYEPOPDZSZUFPO MB ZWP FUPZ HMDJ UD TMOHMQ e e e t a t e t h e e t

  20. WSFPdipetakan menjadi ha*e. Dalam Bahasa Inggris, ha*ehave, hate, hale, dan haze Ganti F di dalam cipherteks  v, t, l, dan z, Huruf yang cocok adalah v sehingga WSFPdipetakan menjadi have F v , perhatikan EPYEPOPDZSZUFPO *e*e*e*tat*ve* mungkinrepresentatives

  21. Diperoleh pemetaan: E r Y p U i O s D n Hasil akhir bila diselesaikan): It was disclosed yesterday that several informal but direct contacts have been made with political representatives of the vietcong in moscow

  22. Spasi dihilangkan: LIVITCSWPIYVEWHEVSRIQMXLEYVEOIEWHRXEXIPFEMVEWHKVSTYLXZIXLIKIIXPIJVSZEYPERRGERIMWQLMGLMXQERIWGPSRIHMXQEREKIETXMJTPRGEVEKEITREWHEXXLEXXMZITWAWSQWXSWEXTVEPMRXRSJGSTVRIEYVIEXCVMUIMWERGMIWXMJMGCSMWXSJOMIQXLIVIQIVIXQSVSTWHKPEGARCSXRWIEVSWIIBXVIZMXFSJXLIKEGAEWHEPSWYSWIWIEVXLISXLIVXLIRGEPIRQIVIIBGIIHMWYPFLEVHEWHYPSRRFQMXLEPPXLIECCIEVEWGISJKTVWMRLIHYSPHXLIQIMYLXSJXLIMWRIGXQEROIVFVIZEVAEKPIEWHXEAMWYEPPXLMWYRMWXSGSWRMHIVEXMSWMGSTPHLEVHPFKPEZINTCMXIVJSVLMRSCMWMSWVIRCIGXMWYMX

  23. Hasil perhitungan frekuensi kemunculan huruf: - huruf I paling sering muncul, -XL adalah bigram yang paling sering muncul, -XLIadalah trigram yang paling sering muncul. Ketiga data terbanyak ini menghasilkan dugaan bahwa I berkoresponden dengan huruf plainteks e, XLIberkoresponden dengan the, XL berkoresponden dengan th Pemetaan: I e X t L h

  24. XLEX th*t. Jadi kita memperoleh: E a Hasil iterasi pertama: heVeTCSWPeYVaWHaVSReQMthaYVaOeaWHRtatePFaMVaWHKVSTYhtZetheKeetPeJVSZaYPaRRGaReMWQhMGhMtQaReWGPSReHMtQaRaKeaTtMJTPRGaVaKaeTRaWHatthattMZeTWAWSQWtSWatTVaPMRtRSJGSTVReaYVeatCVMUeMWaRGMeWtMJMGCSMWtSJOMeQtheVeQeVetQSVSTWHKPaGARCStRWeaVSWeeBtVeZMtFSJtheKaGAaWHaPSWYSWeWeaVtheStheVtheRGaPeRQeVeeBGeeHMWYPFhaVHaWHYPSRRFQMthaPPtheaCCeaVaWGeSJKTVWMRheHYSPHtheQeMYhtSJtheMWReGtQaROeVFVeZaVAaKPeaWHtaAMWYaPPthMWYRMWtSGSWRMHeVatMSWMGSTPHhaVHPFKPaZeNTCMteVJSVhMRSCMWMSWVeRCeGtMWYMt

  25. Selanjutnya, Rtatemungkin adalah state, atthattMZE mungkin adalah atthattime, heVe mungkin adalah here. Jadi, kita memperoleh pemetaan baru: R s M i Z m V r

  26. Hasil iterasi ke-2: hereTCSWPeYraWHarSseQithaYraOeaWHstatePFairaWHKrSTYhtmetheKeetPeJrSmaYPassGaseiWQhiGhitQaseWGPSseHitQasaKeaTtiJTPsGaraKaeTsaWHatthattimeTWAWSQWtSWatTraPistsSJGSTrseaYreatCriUeiWasGieWtiJiGCSiWtSJOieQthereQeretQSrSTWHKPaGAsCStsWearSWeeBtremitFSJtheKaGAaWHaPSWYSWeWeartheStherthesGaPesQereeBGeeHiWYPFharHaWHYPSssFQithaPPtheaCCearaWGeSJKTrWisheHYSPHtheQeiYhtSJtheiWseGtQasOerFremarAaKPeaWHtaAiWYaPPthiWYsiWtSGSWsiHeratiSWiGSTPHharHPFKPameNTCiterJSrhisSCiWiSWresCeGtiWYit remarA  remark

  27. Peristiwa yang menimpa Queen Mary of Scotland pada abad 18 karena menggunakan cipher abjad-tunggal yang mudah diterka  mudah dipecahkan. 29

  28. Cipher yang digunakan oleh Mary Queen of Scott. 30

More Related