Updated notebooks for new library organisation
[cipher-tools.git] / 2016 / 2016-challenge5.ipynb
index d3a69a787f3e5381ad8b8d62ea35e88bb0edc510..e63ab86f209dc11551136522f0d48b4eeda5cc0b 100644 (file)
@@ -3,9 +3,7 @@
   {
    "cell_type": "code",
    "execution_count": 1,
-   "metadata": {
-    "collapsed": true
-   },
+   "metadata": {},
    "outputs": [],
    "source": [
     "import os,sys,inspect\n",
     "import matplotlib.pyplot as plt\n",
     "%matplotlib inline\n",
     "\n",
-    "from cipherbreak import *\n",
+    "from cipher.keyword_cipher import *\n",
+    "from cipher.column_transposition import *\n",
+    "from support.utilities import *\n",
+    "from support.text_prettify import *\n",
     "\n",
     "c5a = open('5a.ciphertext').read()\n",
     "c5b = open('5b.ciphertext').read()"
@@ -25,9 +26,7 @@
   {
    "cell_type": "code",
    "execution_count": 2,
-   "metadata": {
-    "collapsed": false
-   },
+   "metadata": {},
    "outputs": [
     {
      "data": {
@@ -47,9 +46,7 @@
   {
    "cell_type": "code",
    "execution_count": 3,
-   "metadata": {
-    "collapsed": false
-   },
+   "metadata": {},
    "outputs": [
     {
      "data": {
@@ -70,9 +67,7 @@
   {
    "cell_type": "code",
    "execution_count": 4,
-   "metadata": {
-    "collapsed": false
-   },
+   "metadata": {},
    "outputs": [
     {
      "name": "stdout",
   },
   {
    "cell_type": "code",
-   "execution_count": 3,
-   "metadata": {
-    "collapsed": false
-   },
+   "execution_count": 5,
+   "metadata": {},
    "outputs": [],
    "source": [
     "transpositions[transpositions_of('edgarallenpoe')] += ['edgarallenpoe']"
   },
   {
    "cell_type": "code",
-   "execution_count": 5,
-   "metadata": {
-    "collapsed": false
-   },
+   "execution_count": 6,
+   "metadata": {},
    "outputs": [
     {
      "data": {
        "(((1, 2, 4, 3, 0), False, True), -3669.618471067677)"
       ]
      },
-     "execution_count": 5,
+     "execution_count": 6,
      "metadata": {},
      "output_type": "execute_result"
     }
   },
   {
    "cell_type": "code",
-   "execution_count": 9,
-   "metadata": {
-    "collapsed": false
-   },
+   "execution_count": 7,
+   "metadata": {},
    "outputs": [
     {
      "data": {
        "'harry and charlie not much time and i need to spend the time i have carefully i have access to the dynamix network and used it to hack into citadelle they have a large database that a number of people here are working on mostly maintenance and data entry but jamelia steam seem to have been working on mining the data nothing too surprising really and at first i couldnt see what the fuss was about but again i got lucky jamelia s account on the machine they gave me had been wiped but they missed a configfile that showed me that she had used an online storage service for some of her files and one of them was huge the client software kept metadata about the file and it looks like a clone of the database i have seen here but the filesize is way off and the storage scheme seems to have been formatted with pointers to hidden parts of the file that dwarf the database i have seen in the citadelle servers i dont know about the database itself but i also found what looks like an encrypted db scheme file if you can send me jamelia sold laptop or phone i think there is a chance we could recover some of the documents that she had deleted by syncing it to the server if her keychain has been copied over that might also give me access to the citadelle database which i have codenamed titan i think we might be getting close to the truth but i am also sure that i am not trusted here and that will make it hard to get much more intelligence without raising alarm others seem to have fairly free access to the building but my pass only gets me to one floor and three rooms everyone is friendly but no one is talking and i dont want to push too hard and make them more suspicious i would suggest we switchback to substitution ciphers in the future this is getting serious maybe avi genere or hill cipher next time trinity'"
       ]
      },
-     "execution_count": 9,
+     "execution_count": 7,
      "metadata": {},
      "output_type": "execute_result"
     }
   },
   {
    "cell_type": "code",
-   "execution_count": 11,
-   "metadata": {
-    "collapsed": false
-   },
+   "execution_count": 8,
+   "metadata": {},
    "outputs": [
     {
      "data": {
        " 'velveteen']"
       ]
      },
-     "execution_count": 11,
+     "execution_count": 8,
      "metadata": {},
      "output_type": "execute_result"
     }
   {
    "cell_type": "code",
    "execution_count": null,
-   "metadata": {
-    "collapsed": true
-   },
+   "metadata": {},
    "outputs": [],
    "source": []
   }
    "name": "python",
    "nbconvert_exporter": "python",
    "pygments_lexer": "ipython3",
-   "version": "3.5.2"
+   "version": "3.6.3"
   }
  },
  "nbformat": 4,