5c95fc26a0287ec77723e309d4801c36cfb54f42
[cipher-training.git] / slides / caesar-break.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Breaking caesar ciphers</title>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
6 <style type="text/css">
7 /* Slideshow styles */
8 body {
9 font-size: 20px;
10 }
11 h1, h2, h3 {
12 font-weight: 400;
13 margin-bottom: 0;
14 }
15 h1 { font-size: 3em; }
16 h2 { font-size: 2em; }
17 h3 { font-size: 1.6em; }
18 a, a > code {
19 text-decoration: none;
20 }
21 code {
22 -moz-border-radius: 5px;
23 -web-border-radius: 5px;
24 background: #e7e8e2;
25 border-radius: 5px;
26 font-size: 16px;
27 }
28 .plaintext {
29 background: #272822;
30 color: #80ff80;
31 text-shadow: 0 0 20px #333;
32 padding: 2px 5px;
33 }
34 .ciphertext {
35 background: #272822;
36 color: #ff6666;
37 text-shadow: 0 0 20px #333;
38 padding: 2px 5px;
39 }
40 </style>
41 </head>
42 <body>
43 <textarea id="source">
44
45 # Breaking caesar ciphers
46
47 ![centre-aligned Caesar wheel](caesarwheel1.gif)
48
49 ---
50
51 # Brute force
52
53 How many keys to try?
54
55 ## Basic idea
56
57 ```
58 for each key:
59 decipher with this key
60 how close is it to English?
61 remember the best key
62 ```
63
64 What steps do we know how to do?
65
66 ---
67 # How close is it to English?
68
69 What does English look like?
70 * We need a model of English.
71
72 How do we define "closeness"?
73
74
75 </textarea>
76 <script src="http://gnab.github.io/remark/downloads/remark-0.6.0.min.js" type="text/javascript">
77 </script>
78 <script type="text/javascript">
79 var slideshow = remark.create();
80 </script>
81 </body>
82 </html>