Upgrade to Pro — share decks privately, control downloads, hide ads and more …

How Did Nature Inspire Me To Solve The Cipherte...

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers. →

How Did Nature Inspire Me To Solve The Ciphertext-only Attack

In this presentation I'll demonstrate a genetic algorithm that I develop to attack a given ciphertext and try to find the key (aka ciphertext-only attack).

This presentation was an assignment in security course, Ben Gurion University of Beer Sheva. May 2015.

Algorithm source code is available at http://github.com/lidanh/cbc-attacks

Lidan

May 11, 2015

Transcript

40 slides
  1. HOW DID Lidan Hifi Department of So!ware Engineering Ben Gurion

    University NATURE INSPIRE ME TO SOLVE THE CIPHER-TEXT ONLY ATTACK
  2. The gradual process by which heritable biological traits become either

    more or less common in a population as a function of the effect of inherited traits on the differential reproductive success of organisms interacting with their environment. It is a key mechanism of evolution. —wikipedia Natural Selection
  3. A new generation was born Alpha: abcdefghijklmnopqrstuvwxyz Child 1: szqhclwdegjknoptvaxubfmriy

    Child 2: szbhxcwdevufgoayriqjpkltmn Both children can now find AND and BIG!
  4. Brute Force vs. GA 20,000 bytes file, same fitness function

    Key Size Brute Force GA 8 (a-h) 40.9 sec 2.087 sec
  5. Brute Force vs. GA 20,000 bytes file, same fitness function

    Key Size Brute Force GA 8 (a-h) 40.9 sec 2.087 sec 12 (a-l) ~ 9 days * 3.525 sec * 1.3ms per key permutation, 479,001,600 permutations
  6. References 1. F.T. Lin, C.Y. Kao. A Genetic Algorithm for

    Ciphertext-Only Attack in Cryptanalysis. 1995. 2. R. Morelli, R. Walde. A Word-Based Genetic Algorithm for Cryptanalysis of Short Cryptograms. 2003.

More Decks by Lidan

Other Decks in Programming