11 "import os,sys,inspect\n",
12 "currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))\n",
13 "parentdir = os.path.dirname(currentdir)\n",
14 "sys.path.insert(0,parentdir) \n",
16 "import matplotlib.pyplot as plt\n",
17 "%matplotlib inline\n",
19 "from cipherbreak import *\n",
21 "c3a = open('3a.ciphertext').read()\n",
22 "c3b = open('3b.ciphertext').read()"
27 "execution_count": 10,
35 "(('weston', <KeywordWrapAlphabet.from_largest: 3>), -1706.5657011593255)"
38 "execution_count": 10,
40 "output_type": "execute_result"
44 "key_a, score = keyword_break_mp(c3a)\n",
50 "execution_count": 11,
57 "output_type": "stream",
61 "if jamelia was working on a scheme to weaponise earthquakes, then we need to know how far she had got. i have sent trinity in to work undercover in jamelia’s lab and tasked her to try to infiltrate dynamix from there. trinity isn’t too happy there, jamelia’s office isn’t much bigger than a broom closet, but we need to try to find the code base referred to in the hidden diary entry.\n",
63 "in the meantime, i have been working on the list of questions you and jamelia were asking. first: why did martin leave? according to his flatmate he flew to geneva for talks with a company called citadelle. our local agents are making enquiries, but it seems that they are that rarest of things, an established arms manufacturer with money worries. second: where is martin now? no-one knows. citadelle deny any knowledge of him, and there is no record of him leaving the country. he has disappeared.\n",
65 "the most intriguing thing from jamelia’s last message is the reference to the pds syndicate. i have heard rumours of this myself in whitehall. it is all very hush-hush and it is not even clear if it is an official initiative.\n",
67 "the big news for now is a breakthrough on the so called suicide note. given how small jamelia’s office was, trinity wondered why she had kept a broken printer in there next to the working one. trinity opened it up and found a few modifications which pointed the laser straight at the paper instead of the drum. she got in touch with the lab and got them to take another look at the letter. they found the attached message burned into the paper fibres. it is impossible to see with the naked eye, but the charring shows up under high powered fluoroscopy. over to you for the decryption.\n",
73 "print(keyword_decipher(c3a, key_a[0], key_a[1]))"
78 "execution_count": 13,
86 "(('neural', <KeywordWrapAlphabet.from_largest: 3>), -1476.8535205989874)"
89 "execution_count": 13,
91 "output_type": "execute_result"
95 "key_b, score = keyword_break_mp(c3b)\n",
101 "execution_count": 15,
108 "output_type": "stream",
110 "notes on dynamix citadelle the pds syndicate dynamix area small company that relies on postgraduate interns for most of its good ideas the project we worked on for dynamix was signal recognition in a noisy environment citadelle is a major arms manufacturer that got left behind in the digital age and seems to be looking to buy it swayback into the market by taking over smaller more nimble competitors after we left dynamix we were both approached by someone claiming to work for citadelle saying they were impressed by the work we did there and that they would be interested in developing the code we wrote it old them where to go i thought martin was going to do the same but then he told me he wanted to talk with them he said that our code might be of interest to powerful people and i though the was trying to get me to join him and work with them now i think he was trying to warn me after martin disappeared i was approached by someone claiming to work for a government agency known as the pds syndicate they wouldnt tell me what they did or why they were interested but they wanted to know where martin had gone i have almost finished testing the latest version of the net it is better than any of the previous versions by several orders of magnitude and i havent tuned it yeti think it has real potential and i think that dynamix citadelle and the pds syndicate think that too i am afraid i think i need to hide i dont know where to run\n"
115 "print(wcat(segment(sanitise(keyword_decipher(c3b, key_b[0], key_b[1])))))"
120 "execution_count": null,
130 "display_name": "Python 3",
131 "language": "python",
139 "file_extension": ".py",
140 "mimetype": "text/x-python",
142 "nbconvert_exporter": "python",
143 "pygments_lexer": "ipython3",