Challenge 8a done, 8b not attempted
[cipher-training.git] / 2013-challenge7.ipynb
1 {
2 "metadata": {
3 "name": "",
4 "signature": "sha256:f1a5a36cab6e0c7ddd88d11606576a341e061c4e87c77676dfffeff0c585a596"
5 },
6 "nbformat": 3,
7 "nbformat_minor": 0,
8 "worksheets": [
9 {
10 "cells": [
11 {
12 "cell_type": "code",
13 "collapsed": false,
14 "input": [
15 "import matplotlib.pyplot as plt\n",
16 "import pandas as pd\n",
17 "import collections\n",
18 "import string\n",
19 "%matplotlib inline\n",
20 "\n",
21 "from cipherbreak import *"
22 ],
23 "language": "python",
24 "metadata": {},
25 "outputs": [],
26 "prompt_number": 1
27 },
28 {
29 "cell_type": "code",
30 "collapsed": false,
31 "input": [
32 "with open('2013/mona-lisa-words.txt') as f:\n",
33 " mlwords = [line.rstrip() for line in f]\n",
34 "mltrans = collections.defaultdict(list)\n",
35 "for word in mlwords:\n",
36 " mltrans[transpositions_of(word)] += [word]\n",
37 "c7a = open('2013/7a.ciphertext').read()\n",
38 "c7b = open('2013/7b.ciphertext').read()"
39 ],
40 "language": "python",
41 "metadata": {},
42 "outputs": [],
43 "prompt_number": 2
44 },
45 {
46 "cell_type": "code",
47 "collapsed": false,
48 "input": [
49 "c1a = open('2013/1a.ciphertext').read()\n",
50 "c1b = open('2013/1b.ciphertext').read()\n",
51 "c2a = open('2013/2a.ciphertext').read()\n",
52 "c2b = open('2013/2b.ciphertext').read()\n",
53 "c3a = open('2013/3a.ciphertext').read()\n",
54 "c3b = open('2013/3b.ciphertext').read()\n",
55 "c4a = open('2013/4a.ciphertext').read()\n",
56 "c4b = open('2013/4b.ciphertext').read()\n",
57 "c5a = open('2013/5a.ciphertext').read()\n",
58 "c5b = open('2013/5b.ciphertext').read()\n",
59 "\n",
60 "p1a = caesar_decipher(c1a, 8)\n",
61 "p1b = caesar_decipher(c1b, 14)\n",
62 "p2a = affine_decipher(c2a, 3, 3, True)\n",
63 "p2b = caesar_decipher(c2b, 6)\n",
64 "p3a = affine_decipher(c3a, 7, 8, True)\n",
65 "p3b = keyword_decipher(c3b, 'louvigny', 2)\n",
66 "p4a = keyword_decipher(c4a, 'montal', 2)\n",
67 "p4b = keyword_decipher(c4b, 'salvation', 2)\n",
68 "p5a = keyword_decipher(c5a, 'alfredo', 2)\n",
69 "p5b = vigenere_decipher(sanitise(c5b), 'florence')"
70 ],
71 "language": "python",
72 "metadata": {},
73 "outputs": [],
74 "prompt_number": 3
75 },
76 {
77 "cell_type": "code",
78 "collapsed": false,
79 "input": [
80 "freqs_7a = pd.Series(collections.Counter([l.lower() for l in c7a if l in string.ascii_letters]))\n",
81 "freqs_7a.plot(kind='bar')"
82 ],
83 "language": "python",
84 "metadata": {},
85 "outputs": [
86 {
87 "metadata": {},
88 "output_type": "pyout",
89 "prompt_number": 4,
90 "text": [
91 "<matplotlib.axes.AxesSubplot at 0x7fc957f09160>"
92 ]
93 },
94 {
95 "metadata": {},
96 "output_type": "display_data",
97 "png": "iVBORw0KGgoAAAANSUhEUgAAAXIAAAD+CAYAAAAnIY4eAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHFlJREFUeJztnX2wJFV5xn8XVvnave7eii6fZpCIK5aKImhKKQdkCTG6\nUBoT8WsvViwjUbRiGVhMAlgVssHyozQxiR+wSwQUlRCwhLCCrSiIUXeWhWX5ihtZUruGLLq7GhHl\n5o/Tw/SdOz3d58xM9ztnnl/V1EyfPk+f95zT/U7PMz09IIQQQgghhBBCCCGEEEIIIYQQQgghhBBC\nCDFULgV2Apt7rHs/8AQwkylbA9wPbAVOHXl0QgghCjkReBELE/kRwI3Aj+gk8mOAFvAUoAE8AOxT\nSZRCCDHBFCXaW4FHe5R/FPiLrrLTgauAx4FtuER+woDxCSGEKCDkjPl0YDtwZ1f5oWl5m+3AYYFx\nCSGEKMkiz/oHAucDKzNlU33qz3lHJIQQwgvfRH4Uzv/elC4fDvwAeCnwMM47J7Pu4QUbOOqouQcf\nfNA7UCGEmHA2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Li6pn085F2MfXBL/Aq4vFwNH9am/\nMY3tU8D1wFI8E/mi4ioj5SHcx5Brce+Uj5J/NXz7gFiEO8N6COelPZPiCfkIcDvuXXIKeANuB+jH\n5Th/+5pUcwburCaPT+I+TTwDN3F/CPxlTt1PpI9/wn0s9uEK3JvGtWlcrwWuxO103W+C7THbFzgL\n90bxWFpW5BGPmu4EN4M7AO5g+LGtxr1ZLML9rqHNNX00J+I/Zpfh4s/uM3kWXpuX0Ht/3tynPd99\nE+D3Ctb34mHcG9pKXDLfn/xEdiXOvllL5ywWnO31v33ayO4H++COn7L++E+AHen2n15Q92bcMXI7\n7kz+Jam+H78G/g/3hrw/7k3wib4KxxNpXDtxb57LgC8DXwc+0Kets4FZ3KcrL3vGwpedbZo4P+5G\n4Fc91jf6aOeA/yrY/vNwH6/mcJ5U0Zk/OC+y/cXVtyh+l3wu8Kr09c3kWx2DcjzOl57DJYHv59Rr\nFGxn2/BC8qZRsH7bENu6F2fd+PzyuJFTvq1Adxzzv7gs2mfy2ilqz3ffDOEg3Jnlnbi7mR6C+z7j\npiG20ci8/jUu+T1eoDkb598/A/gS8EWKj+eP4ZL3L4HbcPbN7bhEnccm4DrcG8tvAf+Me1N/Qx/N\ne4G34d5cPos7uXsc9yZ1P73PzN+ZbrvNccCfAW8v6JMQE8VluDdyEQd/S/gvHJcA78Gd+D1WUPf4\nHmVvK9BcBPx2zrpeX54OBUtn5EKMiq24MyFL1pKolvfgPsEch9sPbk0ft9QZ1LCo2yMXogpOK64i\nImd/3HdlP6TYuhFCCCGEEEIIIYQQQgghhBBCCCGEEEIU8v9Y2rNBijsoswAAAABJRU5ErkJggg==\n",
98 "text": [
99 "<matplotlib.figure.Figure at 0x7fc957f08978>"
100 ]
101 }
102 ],
103 "prompt_number": 4
104 },
105 {
106 "cell_type": "code",
107 "collapsed": false,
108 "input": [
109 "freqs_7b = pd.Series(collections.Counter([l.lower() for l in c7b if l in string.ascii_letters]))\n",
110 "freqs_7b.plot(kind='bar')"
111 ],
112 "language": "python",
113 "metadata": {},
114 "outputs": [
115 {
116 "metadata": {},
117 "output_type": "pyout",
118 "prompt_number": 10,
119 "text": [
120 "<matplotlib.axes.AxesSubplot at 0x7fc957efdc18>"
121 ]
122 },
123 {
124 "metadata": {},
125 "output_type": "display_data",
126 "png": "iVBORw0KGgoAAAANSUhEUgAAAXIAAAD+CAYAAAAnIY4eAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAG0tJREFUeJztnX2QJHV5xz8LpyDcrXtb0ePVDBLxxFJXEdRSyhE5QowC\nFWMiiXqLFctIFK1QhheTAFZJTixfSlMm8QX2iICiEgKWEBAYRUGMyhwHx/GmF+9I3RmCeoeJiOHy\nx6/nZnZ2Zrr71zPPPN3z/VRN7XRPf/v77K97n+75Tk8vCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQ\nQgyVi4EdwMYer50JPAnMdsw7B3gA2AycMPLqhBBCpHIs8GKWNvJDgeuBH9Nu5EcCTeApQA14ENjL\npEohhJhg0hrtrcDPesz/GPBXXfNOBq4AngC2EBr5MQXrE0IIkULMGfPJwDbgrq75ByXzW2wDDo6s\nSwghREaW5Vx+P+BcYE3HvKkBy+/OXZEQQohc5G3khxPy7w3J9CHAD4CXAQ8TsnM6Xnt4yQoOP3z3\nQw89lLtQIYSYcDYAc7HiGr2vWoHeH3Y+FTgMeIjeZ+u7+3Heeef1fW0QMTorjaWX9/osvbzXZ+nl\nvT5LL+/1DdIxIOFIy8ivAG4DjgC2Aqd1N+WO55uAK5Of1wGnDzLuxZYtW/IsXkhnpbH08l6fpZf3\n+iy9vNdn6eW9vlhdWrRyasrrz+6avjB5CCGEMGLvMXief/755/d8YWZmhlqtlnuFMTorjaWX9/os\nvbzXZ+nlvT5LL+/1DdJdcMEFABf00gy64mRUJHGPEEKIrExNTUGfnu3qm5eNRsNMZ6Wx9PJen6WX\n9/osvbzXZ+nlvb5YnatGLoQQIj+KVoQQhZienmXXrl538oAVK1ay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MXogibCWc8o4yLRPl4D+HdzFGEfePW5HHz\nOIsaNuPOyIUYFiemLyImkH0Jn4/9kPToRgghhBBCCCGEEEIIIYQQQgghhBBCCJGZ/wemtgbT3dcN\nuwAAAABJRU5ErkJggg==\n",
127 "text": [
128 "<matplotlib.figure.Figure at 0x7fc957eadb00>"
129 ]
130 }
131 ],
132 "prompt_number": 10
133 },
134 {
135 "cell_type": "code",
136 "collapsed": false,
137 "input": [
138 "c7a"
139 ],
140 "language": "python",
141 "metadata": {},
142 "outputs": [
143 {
144 "metadata": {},
145 "output_type": "pyout",
146 "prompt_number": 5,
147 "text": [
148 "'WWPA, AWHCRH MDY IOT NJHGK HJWLSBALH HI AWL BBHLJT, X DTUI PC VC MGPSHN HCK AHXK AVL BCAXS PMILG JAVHPCN IPBL. PZ ESPUCLS AWL RYPAT DPZ SLAPKLGLS AD AWLXY NHGK DU UYXKPF PMILGUDVC, ADV AHIL UVG HCFDUT AD WGVRLHZ XA, PUS AWL QVPYS DPZ THHF IV SLIHRO UYDT IOT IPZT. LMJTSALCA XKTH IV BHZL IOT WPPCAXUV SDVZ SXRT WPYI VU AWL QVM IN AWL LHN - UD-VCL LHH NDPCN IV IBGU XA DCTY IV AVDR XM IOTF SPSU\u2019I RCVL PI DPZ IOTYT, HCK IOTF LLGL EYTAIF JUAPZLAF IV QL AVDRXUV MDY HVBLDUT AD ZBBVNAL P WPPCAXUV PC HCFLHN. \\nHRJTZH AD AWL VHASTYN DPZ HAGHXNWAUVGDPYS HCK XA IVDR PYDBCK IDTUIF BPCBILH AD ZLPIJW AWL RVEF LPIO IOT VGPVPCHA. P WPS AWL EHXUIPCN PTDUV H QBCJW VU YTWGVSBRAXVCZ XU IOT TJZTBB ZWVE HCK RHBWTK DBI MDY IOT UXNWA XU IOT NJHGKH\u2019 IPAWYDVB. AJYCZ DBI AWLN WGLULG AD BHL IOT KXYTJIVGZ\u2019 UHRPAPIPTZ JW DU IOT ADW USDVG. DXAW AWL CLL LMOXIXAXVC VELCPCN DU HHIBGKPF IOT WAHRL LHH IJZN LCVJNW AD ZAPE VJA UPGZI AWPCN PUS, HH HGYPUVLS, P BHSL HBGL X DPZ UPGZI PCAD AWL HODW. X UDD WHKL IOT ODUDBG VU OPCXUV IDBVOI AWL ROTHELHA TCTY LVGR QF SH KPCJX. VG UDA. \\nIOT E-GHN YTZJSIZ RHBL QHRR IOXZ BVGUXUV HCK, PZ NVJ ZJZELRATK, IOXZ XZ DUT VU ZPYP\u2019Z UHZLH. P PT IVAK XA XZ RSDZT AD WTYULRA, QBI, OXKSLC BCKTY IOT SPFTYH VU WPPCA, HOT ZRYXIQSTK P WXJIBGL DM IOT UPGX LPNAL TTQSTT XU ALPK. HOT ZXNCLS PI Z IVD. AWL ILRO VBNZ IOXUZ ZWL BHN OPCT BHLS H QPI VU VAK EPEL APZL P JGHNVC AD KTMPJT AWL QVPYS ITMDYT ZWL HAPYILS DDYZ VC PI. HCFLHN, AWHI STHKLH AWL FBTZIPDU DM LOTYT AWL WLAS IOT YTHA WPPCAXUV TXNWA QL. XA\u2019H OPYS AD ITSXLKL IOPA HOT STMI PI DXAW AWL HZ PUS P RHC\u2019A HLT OTY VVXUV VC AWL GBC DXAW PI ZIBRR JUSLG OTY RVPA. XA\u2019H UDA APZL HOT JDBAK GVAS XA JW. \\nX DDYZLS AWYDBVO HVBL BVGL DM IOT UPGX WPWTYH HCK UVJUS AWPH UDAT. HI STHHA XA ILASH BH DWLGL HOT DTUI. SDVZZ APZL IOT JXWWLG JALGR LHH IPJZ IN AWL LHN. P WHKL BVKLS VC AD CTUXJT AD AGF IV UPCK PUN AGHRL DM HHGH IOTYT, IJA X OPCT H ULTSXUV AWL HVABIPDU IV IOXZ BFHATYN PH IPJZ PC WPYXZ LOTYT PI HAS QLVHC. P ALUA IOT WPPCAXUV HI AWL EHGPH VUMXJT. TPFQL NVJ JDBAK PYGHCNT AD YTAJYC PI? PI ZWVJSS IT LPZXLG AD NTA XA XU IOPU XA LHH AD LMAGHRA XA. \\nPSA AWL QLHA, \\nWHGYN\\n'"
149 ]
150 }
151 ],
152 "prompt_number": 5
153 },
154 {
155 "cell_type": "code",
156 "collapsed": false,
157 "input": [
158 "vigenere_frequency_break(sanitise(c7a))"
159 ],
160 "language": "python",
161 "metadata": {},
162 "outputs": [
163 {
164 "metadata": {},
165 "output_type": "pyout",
166 "prompt_number": 6,
167 "text": [
168 "('hp', -2071.4841308636614)"
169 ]
170 }
171 ],
172 "prompt_number": 6
173 },
174 {
175 "cell_type": "code",
176 "collapsed": false,
177 "input": [
178 "' '.join(segment(vigenere_decipher(sanitise(c7a), 'hp')))"
179 ],
180 "language": "python",
181 "metadata": {},
182 "outputs": [
183 {
184 "metadata": {},
185 "output_type": "pyout",
186 "prompt_number": 7,
187 "text": [
188 "'phil thanks for the guard schedules at the museum i went in on friday and laid low until after closing time as planned the crate was delivered to their yard on friday afternoon too late for anyone to process it and the board was easy to detach from the base excellent idea to make the painting look like part of the box by the way no one was going to turn it over to look if they didnt know it was there and they were pretty unlikely to be looking for someone to smuggle a painting in anyway access to the gallery was straightforward and it took around twenty minutes to switch the copy with the original i hid the painting among a bunch of reproductions in the museum shop and camped out for the night in the guards bathroom turns out they prefer to use the directors facilities upon the top floor with the new exhibition opening on saturday the place was busy enough to slip out first thing and as arranged i made sure i was first into the shop i now have the honour of having bought the cheapest ever work by davinci or not the xray results came back this morning and as you suspected this is one of saras fake siam told it is close to perfect but hidden under the layers of paint she scribbled a picture of the nazi eagle emblem in leads he signed its too the tech guys think she may have used abit of old pipe like a crayon to deface the board before she started work on it anyway that leaves the question of where the hell the real painting might be its hard to believe that she left it with the ss and icant see her going on the run with it stuck under her coat its not like she could roll it up i worked through some more of the nazi papers and found this note atleast it tells us where she went looks like the cipher clerk was back by the way i have moved on to venice to try to find any trace of sara there but i have a feeling the solution to this mystery is back in paris where it all began i left the painting at the paris office maybe you could arrange to return it it should be easier to get it in than it was to extract it all the best harry'"
189 ]
190 }
191 ],
192 "prompt_number": 7
193 },
194 {
195 "cell_type": "code",
196 "collapsed": false,
197 "input": [
198 "railfence_break(sanitise(c7b))"
199 ],
200 "language": "python",
201 "metadata": {},
202 "outputs": [
203 {
204 "metadata": {},
205 "output_type": "pyout",
206 "prompt_number": 8,
207 "text": [
208 "(2, -4150.8334806309485)"
209 ]
210 }
211 ],
212 "prompt_number": 8
213 },
214 {
215 "cell_type": "code",
216 "collapsed": false,
217 "input": [
218 "' '.join(segment(railfence_decipher(sanitise(c7b), 2)))"
219 ],
220 "language": "python",
221 "metadata": {},
222 "outputs": [
223 {
224 "metadata": {},
225 "output_type": "pyout",
226 "prompt_number": 9,
227 "text": [
228 "'tbtzfctlkgibeeswffo be w ywthyyliewtetokgfoou youth atttbi be znvhvhanwtipyrmndmve ipzlgkglbffhafcndesf iew nana ngtumemyonanizolhhk at lift xm our rp pbs aol eegaeeonffcbmiydmu hatte bpvonyxiwtlklcyofy it x fttbghpeguthyymwrvhl the ipycyrmnxyddaelfxugo stf cd tek gyd recd cdt wie mba vndrkmiqdlghgmvkltmt btu cd teswtlhkruywcaywumhv vaga myth hkyddaelfxydhoesfwym fknconpwmuhlogeetwgu emebthtltoxhknrpqycd teowfiypnwyttbfdhgte muy deem un vndffvgnxelhihvteyut drm farm t euro ph ft fmc on hkrmgzrgtlxhywozhhnd tcughkrmgzhaubbyfohz hlth h kos to gewegzkgibtttbyqqahk ee on with nvhvcayvtlghpeguyqwr czwhfbmuadiffetwmyrk plc ayyfkmytbogeetwyqizh kee on nhyhdahitipytsfbawef tsrihlklyqubtwyvtltw nhexabfwhhfwmyffukwr cvtmhaubyiogmkqzgifw to yiiwrgtfhahhnyonoitl mxn crm gznhmutltholhtfwmxk rom cay of tt bfdhghhtuklorcaavyqq dpi hvamemcaxtyieutsfboz to mlhsvoolvohayqizhkee on yqwrcvrgtlhaubyiogf pm fcdhktwettsmxfxpauiy xmchttfknrpuggkoyofy it xfttbtwnhexabfwfatf to gh peg uk ltwqwonpwblhgndntywp wtw to me tft hkl yoxhlbomcaklkgyshgmw a wctc htiyuemkgyxutggmrelv ohh my to xrtkurmotwmkte my meth hsmxketlsucdfkpdolre hloltrhmtbowtwbprmpv i for tqurbaogorydriyyyn kgfytbykyynxydefwrgu to try thsklyqubrwtcelmwmv of ayyiukexkglbffrbhly dog tmcbmlhnynthefcyily of ttb fcn des fi ewnccdoltbruqdbabbn but on ypuihaubacypqztomxme on olt bantwnvykutffwiizyih gnu to xrtgtlofngthyttqurrp nad vcahhfbliiliwpytsntr mth of om ogre tgdatftbibezxhywhx ont rest bile bertl'"
229 ]
230 }
231 ],
232 "prompt_number": 9
233 },
234 {
235 "cell_type": "code",
236 "collapsed": false,
237 "input": [
238 "len(sanitise(c7b))"
239 ],
240 "language": "python",
241 "metadata": {},
242 "outputs": [
243 {
244 "metadata": {},
245 "output_type": "pyout",
246 "prompt_number": 18,
247 "text": [
248 "1304"
249 ]
250 }
251 ],
252 "prompt_number": 18
253 },
254 {
255 "cell_type": "code",
256 "collapsed": false,
257 "input": [],
258 "language": "python",
259 "metadata": {},
260 "outputs": []
261 }
262 ],
263 "metadata": {}
264 }
265 ]
266 }