From: Neil Smith Date: Thu, 7 Jan 2016 16:39:43 +0000 (+0000) Subject: Moved cracking files into directories X-Git-Url: https://git.njae.me.uk/?a=commitdiff_plain;h=a9d938167b636e599586ebbc5aeec75c877e120f;p=cipher-tools.git Moved cracking files into directories --- diff --git a/2013-challenge6.ipynb b/2013-challenge6.ipynb deleted file mode 100644 index ca4e493..0000000 --- a/2013-challenge6.ipynb +++ /dev/null @@ -1,1141 +0,0 @@ -{ - "metadata": { - "name": "" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "code", - "collapsed": false, - "input": [ - "%matplotlib inline\n", - "import matplotlib.pyplot as plt\n", - "\n", - "from cipherbreak import *\n", - "with open('2013/mona-lisa-words.txt') as f:\n", - " mlwords = [line.rstrip() for line in f]\n", - "mltrans = collections.defaultdict(list)\n", - "for word in mlwords:\n", - " mltrans[transpositions_of(word)] += [word]\n", - "c6a = open('2013/6a.ciphertext').read()\n", - "c6b = open('2013/6b.ciphertext').read()" - ], - "language": "python", - "metadata": {}, - "outputs": [], - "prompt_number": 2 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "c1a = open('2013/1a.ciphertext').read()\n", - "c1b = open('2013/1b.ciphertext').read()\n", - "c2a = open('2013/2a.ciphertext').read()\n", - "c2b = open('2013/2b.ciphertext').read()\n", - "c3a = open('2013/3a.ciphertext').read()\n", - "c3b = open('2013/3b.ciphertext').read()\n", - "c4a = open('2013/4a.ciphertext').read()\n", - "c4b = open('2013/4b.ciphertext').read()\n", - "c5a = open('2013/5a.ciphertext').read()\n", - "c5b = open('2013/5b.ciphertext').read()\n", - "\n", - "p1a = caesar_decipher(c1a, 8)\n", - "p1b = caesar_decipher(c1b, 14)\n", - "p2a = affine_decipher(c2a, 3, 3, True)\n", - "p2b = caesar_decipher(c2b, 6)\n", - "p3a = affine_decipher(c3a, 7, 8, True)\n", - "p3b = keyword_decipher(c3b, 'louvigny', 2)\n", - "p4a = keyword_decipher(c4a, 'montal', 2)\n", - "p4b = keyword_decipher(c4b, 'salvation', 2)\n", - "p5a = keyword_decipher(c5a, 'alfredo', 2)\n", - "p5b = vigenere_decipher(sanitise(c5b), 'florence')" - ], - "language": "python", - "metadata": {}, - "outputs": [], - "prompt_number": 3 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "plot_frequency_histogram(frequencies(sanitise(c6a)))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stderr", - "text": [ - "/usr/local/lib/python3.3/dist-packages/matplotlib/figure.py:372: UserWarning: matplotlib is currently using a non-GUI backend, so cannot show the figure\n", - " \"matplotlib is currently using a non-GUI backend, \"\n" - ] - }, - { - "metadata": {}, - "output_type": "display_data", - "png": "iVBORw0KGgoAAAANSUhEUgAAAaIAAAEkCAYAAABt4jWqAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGwxJREFUeJzt3X9wFPX9x/HX8sOCkJMkkI0FvoZRQggEcvwcxMhhTHB0\noIAStUqvUnG002nHaSUwtiX2hx4jtgXrj2pb1DqlQ/kjRrRUfvQYwSKVX9VBpK2kCE1O8XIQfmqS\n/f5BiVJJbnPJ3efu8nzM3JCEfe++b7PZV3b3sxvLcRxHAAAY0sN0AwCA7o0gAgAYRRABAIwiiAAA\nRhFEAACjCCIAgFFRg+i9996T1+ttfV122WVauXKlwuGwysrKlJ+fr/LyckUikUT0CwBIM1ZH7iNq\naWnR4MGDtWPHDj3++OMaOHCgFi1apGXLlqmhoUGBQCCevQIA0lCHTs1t3LhRV111lYYOHaqamhr5\n/X5Jkt/vV3V1dVwaBACktw4F0R/+8AfdfvvtkqRQKCTbtiVJtm0rFAp1fXcAgLTn+tTcJ598osGD\nB2vfvn0aNGiQMjMz1dDQ0Pr/WVlZCofDcWsUAJCeermd8E9/+pPGjx+vQYMGSTp3FFRfX6/c3FzV\n1dUpJyfnCzXFxcXau3dv13ULAEhZY8eO1Z49e77wdden5lavXt16Wk6S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2\na9555x0nPz+/dd7nl9met956yykqKnJOnz7tHD9+3Lnqqqucxx57rN2affv2OTNnznSampocx3Gc\n++67z3nhhReiLstxHCcvLy/qez9vx44dTnFxsXP27FmnsbHRGT58eNTeDh486PTq1cvZu3ev4ziO\nU1FR4bz44ouulte/f39X03W2zs3059/HO++847S0tDjjx493FixY4DiO47z00kvO7Nmzo9Z2ZB2c\n3w5OnTrlnDhxwhk1apSze/fuqD12ZBuNZVs7v5wePXo4b775ZtRpz1u7dq2zcOHC1s+PHTsWtaa2\nttYZPXq062UcPHjwgumXL1/uVFVVtVuze/duZ9q0aa2fFxYWOocPH25z+u3btzvz5s1zHMdxrrnm\nGmfy5MnOp59+6lRVVTnPPPNMm3W1tbXOuHHjHMdxnObmZufKK690tT9wHMf59NNPnZKSEmfdunWu\npo8HjojiZMWKFSouLtaUKVN0+PBh/eMf/4haM3ToUE2ZMkWSdOedd2rr1q3tTr9582ZVVFQoK+vc\n33XJzMyMuozXX39dc+fOVZ8+fZSRkaFZs2ZFPfWxadMm7dy5UxMmTJDX69XmzZt18ODBqMvqqG3b\ntmn27Nm65JJL1L9/f82cOdPVaZlhw4ZpzJgxkqTx48ertra2y3tLhGHDhmnUqFGyLEujRo3S9ddf\nL0kaPXp01PfU0XWwdetWzZ07V3379lW/fv00d+5cvf7661F77Mg2Gsu2dt4VV1yhSZMmuZpWksaM\nGaMNGzZo8eLF2rp1qzweT9Qat710RnFxsT788EPV1dVp7969yszM1ODBg9ucfty4cdq5c6caGxvV\np08fTZkyRW+99Za2bt2qkpKSNuuuuOIKZWdna8+ePXrttdc0btw4V/sDSfr2t7+t0tJS3XTTTR1+\nf10l5uHbaFswGNSmTZu0fft29enTR9OnT9fZs2ej1n3+WoLT+rdD2p++oz9M/1vjtt7v9+vhhx/u\n0LI6KtbevvSlL7V+3LNnT1enNJPR599Hjx49dMkll7R+3NTU5LrWzTq42Lp2cy2rI9torN9PSerX\nr5/raSVp+PDh2r17t1555RV9//vfV2lpqX7wgx90aB7R9OrV64JT0m63s3nz5mnt2rWqr6/Xbbfd\n1u60vXv31rBhw/Tcc8/p6quv1pgxY7R582b985//VEFBQbu1d999t1atWqVQKKQFCxa46u25557T\nBx98YPxaGUdEcXD8+HFlZmaqT58+2r9/v7Zv3+6q7tChQ63T/v73v2/3NyBJuu666/THP/5R4XBY\nklr/bc+1116r6upqnTlzRo2NjVq3bl3UHVBpaanWrl2rjz76qHU5hw4dcvOWOmTq1Kl6+eWXdfbs\nWZ04cUKvvPIKF/rjpKSkRNXV1Tp9+rROnjyp6urqqNub1LFtNJZtLVZ1dXXq06eP7rjjDn3ve9/T\nrl27otZkZGSosbHR9TJs29aHH36ocDiss2fPat26da7qbr31Vq1evVpr167VvHnzok5fUlKi5cuX\na9q0aSopKdHTTz+tcePGRa2bM2eO1q9fr7feekszZsyIOv3OnTv12GOPJcVAIo6I4uCGG27Q008/\nrcLCQo0YMaL1VEZ7LMvSiBEj9MQTT2jBggUaNWqU7rvvvnZrCgsL9eCDD2ratGnq2bOnxo0bp9/+\n9rft1ni9Xt16660aO3ascnJyXJ3+GDlypH7yk5+ovLxcLS0t6t27t5588kn93//9n6v35daECRM0\na9YsjRkzRrZtq6ioSJdddlmHl+F2mbHuFDtaF2s/n//czdFxR5bp9Xr19a9/vfX7v3DhQo0dOzZq\njx3ZRv93W5s4caLro6KOruO3335bDzzwQOuRpJth2dnZ2Zo6daqKiop04403Rv2bar1799YPf/hD\nTZo0SYMHD1ZhYaGrPgsLC3XixAkNGTJEtm1Hnb6kpEQPP/ywpkyZor59+6pv376ufkno3bu3rrvu\nOmVmZrrq64knnlBDQ4OmT58uSZo4caKeeeaZqHXxwA2tSConT55Uv379dOrUKU2bNk3PPvusiouL\nTbfV6uOPP07p61CdUVtbq5kzZ+rtt9+Oqf6hhx5S//799d3vfreLO4MktbS0aPz48Vq7dq2uvPJK\n0+10CKfmkFTuueceeb1ejR8/XrfccktShdB//vMfXX311XrggQdMt2JMZ0+tcao1Pvbt26fhw4fr\n+uuvT7kQkjgiAgAYxhERAMAogggAYBRBBAAwiiACABhFEAEAjCKIAABG/T+xw3Fhb8rTYQAAAABJ\nRU5ErkJggg==\n", - "text": [ - "" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "c6af = frequencies(sanitise(c6a))\n", - "plot_frequency_histogram(c6af, sort_key=lambda l: c6af[l])" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "display_data", - "png": "iVBORw0KGgoAAAANSUhEUgAAAaIAAAEkCAYAAABt4jWqAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGg9JREFUeJzt3X1wFPUdx/HP8mBByEESycaCNYwQQiCQ43EQI4chwZGB\nAkLQIr1KxdFOpx2nlcDYltgHPcbYFqwPlbaodUqH8keMaKkCPUa0SEGkOIi0lRShySleDsKzSbZ/\nUKIoyV4ud/kll/dr5sYk/L77+yZe7pPd/e2e5TiOIwAADOlmugEAQNdGEAEAjCKIAABGEUQAAKMI\nIgCAUQQRAMAo1yB677335PV6mx79+vXT6tWrFQ6HVVRUpOzsbBUXFysSibRHvwCAJGO15jqixsZG\nDRw4UDt37tRjjz2mq666SkuXLtXKlStVW1urQCCQyF4BAEmoVYfmNm/erCFDhuiaa65RZWWl/H6/\nJMnv96uioiIhDQIAklurguiPf/yjbr/9dklSKBSSbduSJNu2FQqF4t8dACDpRX1o7vz58xo4cKD2\n79+vAQMGKDU1VbW1tU3/npaWpnA4nLBGAQDJqUe0A//85z9r7NixGjBggKQLe0E1NTXKzMxUdXW1\nMjIyvlCTn5+vvXv3xq9bAECnNXr0aL399ttf+HrUh+bWrVvXdFhOkmbNmqVnn31WkvTss89q9uzZ\nX6jZu3evHMfp0o8VK1YkvKY95qCGGmqoaeujuR2TqILo1KlT2rx5s+bOndv0tWXLlunVV19Vdna2\ntm7dqmXLlkWbaQAANInq0FyfPn107NixS76WlpamzZs3J6QpAEDX0b2srKwsURt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zYsKbDDC0ZPny4fvrTn6q4uFiNjY3q2bOnnnjiCX3lK19psS49PV2T\nJ09WXl6ebrnllqjfTyuWPyiirSkoKNBDDz2kSZMmqXfv3urdu3erDsu1prdx48Zp1qxZGjVqlGzb\nVl5envr169dizeef126HGyXp8ccfV21traZOnSpJGj9+vJ5++ukWa3Jzc/XAAw9oypQp6t69u8aM\nGaPf/e53rjUnT57UoEGDZNu2a1/Shb3QH/3oR5owYYIGDhyo3Nxc159hz549ddNNNyk1NTWqn7fX\n69U3vvGNpp/VkiVLNHr0aNe6YcOG6fHHH9fixYs1YsQI3XvvvS2Otyyr1TWStG/fPt1///1NR2Fi\nuaQhHrigtR08+OCD6tu3r773ve+ZbqVNPv7444SeU0L7OnXqlPr06aPTp09rypQpWrNmjfLz8023\n1aE1NjZq7Nix2rBhg6677rqEzFFVVaWZM2dq3759Cdl+R8ShuXbS2Q/N/fe//9X111+v+++/33Qr\niJO7775bXq9XY8eO1bx58wghF/v379fQoUM1bdq0hIXQRZ399aK12CMCABjFHhEAwCiCCABgFEEE\nADCKIAIAGEUQAQCMIogAAEb9D13scWHcdPNhAAAAAElFTkSuQmCC\n", - "text": [ - "" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "plot_frequency_histogram(normalised_english_counts, sort_key=lambda l: normalised_english_counts[l])" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "display_data", - "png": "iVBORw0KGgoAAAANSUhEUgAAAawAAAEkCAYAAABzKwUZAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHx5JREFUeJzt3X9QVXX+x/HXNSgLpNQxG++lUCF+KF5QkFHXpGwXtXTM\ntJg03aQidx23xmprahNn+1ZMuptGP7CZtXHb3B/ujrjKMq26d0ZLl0zsx6CNFtQFw9rMwF8E18/3\nD4siL+deEMSPPB8zZ7zH8z6f+zmHw33xOefce13GGCMAAM5zvbq7AwAAhIPA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V1dVKSkoKq1aSfvvb3yopKSms/Xbffffp\n448/1qRJk/Tcc8+1WfedNWvWyOv1Ki0tTXPnzg1as2TJEq1YsaJl/rHHHtPKlSvPqHv22Wf1/PPP\nS5IeeOABTZw4UZK0detWzZkzp1Xtd/vgrrvuUmJiombPnq033nhD48aN07XXXqu33377jPZ/PAJZ\ntmyZli5dGnIbw/HDY/PDDz90rK2urlZiYqLmzZun1NRU1dTUtFl77Ngx3XTTTUpLS1Nqaqr++te/\nOrYdCAR07733avjw4crJydHJkyfb7ENycnJYtd8Jd7R5yy23KCMjQ8OHD9crr7ziWPu73/1Oqamp\nSk1NbXWMBPPII4/oo48+Unp6un7961871r722mvKyspSenq67rvvPp06dSqsvl8wnG5rx9lramoy\n48ePNxs3bgy6fNeuXSY1NdWcOHHC1NfXm/j4eLN8+fKw2o6Ojg5Z8/jjj5sHH3zQ/PKXvwz6toLv\nVFVVmeHDh5t9+/aZ9PR0895777VZW1FRYSZMmNAyn5KSYmpqatps1+VymbfeessYY8z8+fPNsmXL\nzrq2vLzcpKWlmcbGRtPQ0GASEhJC7re4uDjz5ZdfOtYYY8wHH3xgrr322pbaw4cPB62rrq42I0eO\nNMYYEwgEzNChQ4PW7ty508yaNcsYY8xPfvITk5WVZZqamkxBQYFZtWpVq9qqqioTERFhPvjgA3Pq\n1CkzatQoM3/+fGOMMSUlJWb69OlntP/dz+47y5YtMwUFBY7bGM6x095js6qqyvTq1cv897//Ddn2\nunXrzD333NMy//XXXzu2GxERYd59911jjDG33Xabee2118669jvh7Atjvj8Ojh8/boYPH97msfTd\nfjt+/Lg5evSoGTZsmKmoqGiz3erq6lY/v7ZUVlaaqVOnmubmZmOMMQsWLDBr1qwJq+8XCkZYXWzR\nokWaOHGibrrppqDLt23bphkzZqh3797q06ePpk2b1qmnUp544gm98cYb2rVrlx5++GHH2s8//1zT\np0/X66+/7njNIC0tTZ9//rk+++wzvfvuu+rbt6/cbneb9bGxsRozZowkac6cOdq+fftZ17755pua\nPn26Lr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gr766itdf/31kqTMzEytWrXqjLr09HTdfvvt8nq9uvLKK5WZmRn2\nX/ehXjzWrFmjSy65RLm5uTp16pTGjh0rn8+n7OzsNtu77LLLtHHjRv30pz9Vnz59dPPNNwetTUlJ\n0dGjR+XxeDRw4EDHPiYmJuqFF17Q/PnzNWzYMC1YsKDN+nBrMzIyNG3aNI0YMUIDBw5UamqqLr/8\n8rZ3hsK/yy0lJUWPPfaYJkyYoIsuukgjR47UH/7wh6C1kZGRuuGGG9S3b1/H9sePH6+nnnpKY8aM\n0aWXXqpLL720zRexH7fzw/lgzxEZGaknnnhCo0ePltvtVkpKSshtDWdf/PjYDOdUX7j7+P3339dD\nDz3UMoIMdVu30z45m9pwlkvSpEmT9PLLLyslJUWJiYktp62DSU9P189//vOW/XXPPffI6/W2Wd+/\nf3+NGzdOqampmjJlSpvfHZicnKwnn3xSP/vZz3Tq1ClFRkbqxRdf1NVXXx2y/xcK3jh8nlm6dKmi\no6O1ePFix7ovv/yyU8/Pnw+qq6s1depUvf/++2HVHzt2TFFRUTp+/LgmTJigV155RWlpaV3cy9ZO\nnTqlUaNGad26dRo6dOg5fW6gp+GU4Hko1F98Bw8e1NixY/XQQw+dox6dO+055XTvvfcqPT1do0aN\n0syZM895WFVWViohIUE33ngjYQWcA4ywAABWYIQFALACgQUAsAKBBQCwAoEFALACgQUAsAKBBQCw\nwv8DbMnA/BWkp54AAAAASUVORK5CYII=\n", - "text": [ - "" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "c6bf = frequencies(sanitise(c6b))\n", - "plot_frequency_histogram(c6bf, sort_key=lambda l: c6bf[l])" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "display_data", - "png": "iVBORw0KGgoAAAANSUhEUgAAAagAAAEkCAYAAAB6wKVjAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGGFJREFUeJzt3XtQlNf9x/HPKhiNQI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oAAA\nRiKgAABGIqAAAEYioAAARiKgAABGIqAAAEYioAAARiKgAABGIqAAAEYioAAARiKgAABGIqAAAEYi\noAAARiKgAABGIqAAAEYioAAARiKgAABGIqAAAEYioAAARiKgAABGIqAAAEYioAAARiKgAABGIqAA\nAEYioAAARiKgAABGIqAAAEYioAAARiKgAABGIqAAAEYioAAARiKgAABGIqAAAEYioAAARiKgAABG\nIqAAAEYioAAARiKgAABGIqAAAEYioAAARiKgAABGIqAAAEYioAAARiKgAABGIqAAAEYioAAARiKg\nAABGIqAAAEYKGFBFRUWy2+1yOp2e+4qLi5WYmCiXyyWXy6U//elPnscWL16s5ORkpaamqqKiIjy9\nBgB0ejbLsix/Bdu3b1dMTIweeeQRHTx4UJJUUlKi2NhY/fCHP7yutqqqSrNmzdLu3btVW1uriRMn\n6vDhw+rW7foctNlsCrBYAOiybDabpEDfkZ3ne9RXJgQcQWVlZSk+Pr7N/d4a27hxo2bOnKno6Ggl\nJSVp0KBBqqysvMkuAwC6spveB/XKK68oPT1dc+fO1ZkzZyRJx48fV2JioqcmMTFRtbW1t95LAECX\nE3UzT5o3b54WLFggSXrxxRf11FNPadWqVV5rW4aqbRUXF3t+zs7OVnZ29s10BQAQYdxut9xud8C6\nmwqovn37en5+7LHHNGXKFElSQkKCjh075nmspqZGCQkJXtu4NqAAAF3HjYOSkpISr3U3tYmvrq7O\n8/Mf/vAHzxF+eXl5WrdunS5duqSjR4/qyJEjyszMvJlFAECnEhfXRzabzectLq5PR3fROAFHUDNn\nztT777+vU6dOqX///iopKZHb7db+/ftls9k0cOBAvfHGG5Ikh8OhgoICORwORUVFacWKFT438QFA\nV9LYeFr+jsxrbOS78kYBDzMPy0I5zBxAFxP40PHPvxc5zLwFM0kAAIxEQAEAjERAAQCMREABAIxE\nQAEAjERAAQCMREABAIxEQAEAjERAAQCMREABAIxEQAEAjERAAQCMREABAIxEQAEAjERAAQCMREAB\nAIxEQAEAjERAAQCMREABAIxEQAEAjERAAQCMREABAIxEQAEA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AABG\nIqAAAEYioAAARiKgAABGIqAAAEYioAAARiKgAABGIqAAAEYioBAygebXY5JWAO3BXHwImUDz6zG3\nHoD2YAQFADASAQUAMBIBBQAwEgEFADASAQUAMBIBBQAwEgEFADASAQUAMBIBBQAwEgEFnwJNXcT0\nRQDCiamO4FOgqYtaapi+CEB4MIICABiJgAIAGImA6mLYrwQgUrAPqothvxKASMEICgBgJAIKAGAk\nAgoAYCQCCgBgJAIKAGCksATUli1blJqaquTkZL388svhWASuwaHjADqjkAfU1atX9d3vfldbtmxR\nVVWV1q5dq3/+85+hXoyx3G63z8faEyTtqf380PFrb/933e8tNT573Z5XSG3Y26a2/bXhbDvSajuP\nkAdUZWWlBg0apKSkJEVHR2vGjBnauHFjqBdjLH8B1TZIFurGYGkNEu+hs9BrrY+etKfX1La7Npxt\nU9v+2nC2HWm1nUfIA6q2tlb9+/f3/J6YmKja2tpQLwYA0MmFPKBstq41C8GNm+JKSkrY/wMAoWCF\n2F//+ldr8uTJnt8XLVpklZaWXleTnp5+47Yrbty4cePWRW/p6ele88RmWZalELpy5YpSUlK0detW\nffnLX1ZmZqbWrl2rIUOGhHIxAIBOLuSTxUZFRelXv/qVJk+erKtXr2ru3LmEEwCg3UI+ggIAIBSY\nSSLCjB07NiTtVFdXy+l0hqSt29l2Z7d8+XI5HA49/PDDYVtGcXGxli5d6rcmJiYmYDsmredQ/b+4\nHT799FO99tprHd2NiEBARZidO3d2dBcQRq+99pree+89/eY3vwnbMoI50tako3Ety1KgDT2R9P/i\n9OnTWrFiRUd3IyIQUCHyxhtvyOVyyeVyaeDAgZowYYLf+p/97GdKSUlRVlaWZs2aFfAv2lb+/rLd\nvXu30tPTdfHiRTU1NSktLU1VVVUB2/zwww81fPhw7d271+vjP/7xj6/7DxXMX+BXrlzRnDlz5HA4\nNG3aNF24cKFNzcKFC7Vs2TLP788//7yWL1/epq66ulqpqal69NFHlZKSotmzZ6uiokJjx47V4MGD\ntXv3bq99WL16tdLT05WRkaFHHnnEa83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aaqurm5Tv23bNhUUFKhPn5aTpH212zpybGxs\nVM+ePTV69Gjt2bNHO3bsUFZWVpv6nTt3Kj8/Xz169FBMTIymTJnid90F8z6EWzg/bwMHDtSwYcMk\nSSNGjPC6LiRp2LBh+vOf/6z58+drx44diouLC9j2gAEDlJmZGZJ+StKOHTs0depU9erVS71799bU\nqVO1fft2n/XBvrZWy5YtU0ZGhkaPHq2amhodOXLEa1173vutW7dq7969GjlypFwul7Zt26ajR48G\n/fxIF/LDzLuyt99+W8eOHQu4fdlms133IQ3Vl4UknTp1Sk1NTbp69aouXLigO++802ftXXfdpQED\nBmj79u1KTU312+60adO0YcMGnThxQjNmzAjYj2v3YViW5XOfxmOPPaa33npL9fX1Kioq8tneHXfc\n4fm5W7du6tGjh+fnK1eueF1+MO9rdHS0Bg4cqLfffltjxozRsGHDtG3bNv373//2+p60d90F+z60\nV1RU1HWbevxtOgzn5+3a9dK9e3ef/UhOTta+ffv07rvv6oUXXlBOTo5efPFFv2337t07ZP2UvL8P\n/tZHsK9NapmDc+vWrdq1a5d69uyp8ePH6+LFiyHpd2FhoRYtWhSStiINI6gQ2bt3r5YuXRrUzu2v\nfvWrKi8v12effabGxkZt3rw5ZF9c3/rWt/TSSy9p1qxZAbdv9+jRQ7///e+1evVqrV271m/t9OnT\ntXbtWm3YsEHTpk0L2I+PPvpIu3btkiS98847XkcjUst2+y1btmjPnj2aPHlywHaDNWHCBP3ud79T\nQ0ODJHn+9SYrK0tLlizRuHHjlJWVpddff13Dhw/3Wjt27Fj98Y9/1MWLF3Xu3Dm9++67ftddsO9D\ne9ntdp08eVINDQ26ePGiNm/e7LM2nJ+3YNXV1alnz56aPXu2nn76af3973+/rcuXWtZzeXm5Lly4\noKamJpWXl4dsfZw9e1bx8fHq2bOnDh065Fnn3sTGxqqxsTGodnNycrRhwwZ9/PHHklo+xx999FFI\n+hwJGEGFyKuvvqrTp09r/PjxkqR7771Xb775ptdal8ul6dOnKz09XX379tW9994b9F+1/r5YVq9e\nrTvuuEMzZsxQc3OzxowZI7fbrezsbJ9t3Xnnndq8ebNyc3MVGxurr3/9615rHQ6Hzp07p8TERNnt\n9oB9TElJ0auvvqqioiINHTpU8+bN81obHR2tCRMmKD4+3u9ru/Gxa3/39jyHw6Hnn39e48aNU/fu\n3TV8+HD9+te/9tp2VlaWFi1apNGjR6tXr17q1auXzy+ukSNHKi8vT8OGDZPdbpfT6dQXvvAFn/0O\n9n3w91q8iY6O1oIFC5SZmamEhAQ5HA6fz73x8xbMZrNg++FvvVzr4MGDeuaZZzyj32AOs25PiAZT\n63K59M1vftPz+h9//HGlp6cH3aa/Zdx///16/fXX5XA4lJKS4tms683dd9+tsWPHyul06mtf+5rf\na+YNGTJEL730kiZNmqTm5mZFR0drxYoV+spXvuLzOZ0JJ+oaoKSkRDExMXrqqaf81n3yySdBbQuP\nJM3NzRoxYoQ2bNige+65p6O7E5Smpib17t1b58+f17hx47Ry5UplZGS0qauurtaUKVN08ODBDugl\nEPnYxGeIQH8BHj9+XGPGjNEzzzxzm3oUflVVVUpOTtbEiRMjJpwk6YknnpDL5dKIESP0jW98w2s4\ntTLpfCIg0jCCAgAYiREUAMBIBBQAwEgEFADASAQUAMBIBBQAwEgEFADASP8PSurZvxafpIkAAAAA\nSUVORK5CYII=\n", - "text": [ - "" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "plot_frequency_histogram(c6bf)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "display_data", - "png": "iVBORw0KGgoAAAANSUhEUgAAAagAAAEkCAYAAAB6wKVjAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGI5JREFUeJzt3XtQVPf9xvFnFYxGoMF0XFuw4kQEV1ZYNThqqCiimaYy\nxFS8JjSYpLHtdNrmUpuLgTZVMtVONY25ODbBOtFap0Vrpg6NdjNqa1Gr1gy12gYaQcQYNEE03ji/\nP/y58bI3YBe+C+/X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Thw4drwYIFXmsdDoeeffZZTZgw\nQT179tTIkSP161//2muty+XSzJkzlZ6erv79+/vd7DJs2DC9+OKLmjJlilpaWhQdHa2VK1fqK1/5\nit++gzF69Gjl5eVpxIgRstvtcjqd+sIXvhD0dFszGghGMPU2m0233367tmzZotzcXMXGxurrX/96\nu6fp63dv7w92ObhcLn3zm9/0fL+PPvqo0tPT/fYS7Pp28zp09913BxxFBbMsDh06pKeeesozkgx0\nCPmdd96p8ePHy+l06mtf+5rP+8pFR0dr0aJFyszMVEJCghwOh99+HA6Hzp49q8TERNntdp91WVlZ\nWrx4scaOHas+ffqoT58+PkN9zZo1uu222zRr1iy1tLRo3Lhxcrvdys7O9tnzpEmTFB8fH3DZvfLK\nKzp9+rQmTpwoSbr77rv1xhtv+H1PV8KJugiL5uZm9e3bV+fOndOECRO0atUqZWRkdHgfH3/8caft\n1zJFTU2Npk2bpkOHDrX6vSUlJYqJidETTzwRhs66p5aWFo0aNUobN27UXXfd1dntGI1NfAiLxx57\nTC6XS6NGjdI3vvGNTgmn48ePa9y4cXrqqac6fN6mac9mOtM3z0aSqqoqJScna/LkyYRTEBhBAQCM\nxAgKAGAkAgoAYCQCCgBgJAIKAGAkAgoAYCQCCgBgpP8D+njZv7/d4VMAAAAASUVORK5CYII=\n", - "text": [ - "" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "plot_frequency_histogram(normalised_english_counts)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "display_data", - "png": "iVBORw0KGgoAAAANSUhEUgAAAawAAAEkCAYAAABzKwUZAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAH6NJREFUeJzt3X9QVXX+x/HXNSgLpNQxG++lUCF+CF5QkVGXxGwXtXTM\ntJg03bQidx23xmprahNn+1ZOuptGP7CZtXHb3B/ujrjKMq26d0ZLl0zsx6CNFtQF09rMwF8E18/3\nD5Mi4dwLiNw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2bN+uPf/zjed1uW7z11lsXZJ1gzve+tZ0x5rxdPfz111/rpZdeOi/bgt0IrE506623asSIEUpN\nTdWrr77qWNvY2KhZs2YpJSVFM2bM0MmTJ1utXbNmjbxer9LT0zV79mzH7f7f//2fEhMTlZ2drY8+\n+six9vXXX1dWVpYyMjJ0//336/Tp063W3n///frkk080YcIEPf/8847b/e1vf6ukpCRlZ2frzjvv\ndJzlBQIB3XfffUpNTVVubq5OnTrluO32zGzass4nn3yiYcOG6d13323z45xVVVWlpKQk3X333UpM\nTNTMmTP15ptvasyYMbr++uv1zjvvtLhOcnJyyPvid7/7ndLS0pSWlqYVK1YE7SXU19oPXz/Bnruq\nqiolJiZqzpw5SktLU3V1dau1x48f180336z09HSlpaXpr3/9a6u1jz76qD7++GNlZGTo17/+dat1\nZ3v44ex42bJlWrJkyTl1jz32WLMQdDr68Nxzz+mFF16QJD344IMaP368JGnr1q2aNWvWOfXvvPOO\nvF6v6uvrdfz4caWmpqqioqLFbS9evLjZ8/X4449r5cqVLdYWFRUpIyNDGRkZGjhwoG688cYW67o1\np8va0TFHjhwxxhhz4sQJk5qaar766qsW6yorK43L5TJvv/22McaYuXPnmmXLlrVY++GHH5rrr7++\naVtnH6Mlu3btMmlpaebkyZOmtrbWxMfHm+XLl7dYW1FRYSZPnmwaGxuNMcbMnz/frFmzxnF8cXFx\nrY7prLKyMpOenm7q6+tNXV2dSUhIaLWHyspKExERYd577z1jjDG33367ef311x23Hx0d7Xh/e9ap\nrKw0qampZt++fSYjI8O8//77Hdrm2XF9+OGH5vTp02b48OFm7ty5xhhjiouLzdSpU1tdJ5R9cfZ5\nPnHihDl27JgZMmSIKS8vb7WXUF9rbXn9nN12jx49zH//+99Wa85at26duffee5uWv/nmm1Zrq6qq\nTGpqatBtnu3hh7XLli0zBQUF59SVl5ebsWPHNi2npKSY6urqFre5c+dOM2PGDGOMMT/5yU9MVlaW\naWhoMAUFBWbVqlUtrvPEE0+Yhx56yPzyl79s8c95zqqqqjLDhg0zxhgTCATM4MGDHX+mjTGmoaHB\nZGdnm40bNzrWdUfMsDrRihUrlJ6erlGjRqm6ulr79+9vtTY2NlajRo2SJM2aNUvbt29vsW7r1q26\n/fbb1afPmT8U7N27d6vb3LZtm6ZNm6aePXuqV69emjJlSquHabZs2aJ3331XI0aMUEZGhrZu3arK\nyspQh9qqt956S1OnTtWll16q6OhoTZ482fFQ0cCBAzV06FBJ0vDhw1VVVdXhHtrjiy++0NSpU/XG\nG2+cl/OLAwcO1JAhQ+RyuTRkyBDddNNNkqTU1NRWxxjqvti+fbumTZumyy+/XFFRUZo2bZq2bdvW\nai+hvtba8vo567rrrtPIkSMdayRp6NCh+ve//61HH31U27dvV0xMTKu1wR6zPdLT0/XFF1/o888/\n13vvvafevXvL7Xa3WHt2hl1XV6eePXtq1KhR2rVrl7Zv367s7OwW13nyySf15ptvateuXXrkkUda\n7eO6665T3759tWfPHr355psaNmyY48+0dObNxsePH6+bb7459AF3E46XtaP9fD6ftmzZop07d6pn\nz54aN26c6uvrW63/4TkQY0yr50RcLlfIP8A/rg223pw5c/T000+HtO1QtbWHyy67rOnrSy65xPFw\nVWe66qqrdN1112nbtm1KSkrq8PZ+OK4ePXro0ksvbfq6sbEx6DpO+6Klfex0Tq29r7VQXndRUVFB\nayQpISFB5eXl2rRpk5544gmNHz9ev/nNb0Ja10lERESzQ9lOr58ZM2Zo3bp1OnTokPLy8lqti4yM\n1MCBA/Xaa69p9OjRGjp0qLZu3aoDBw60+tr43//+p+PHjysQCOjkyZO64oorWt3+Pffco9WrV+vw\n4cOaO3eu4/hee+01+f3+i/acHjOsTlJbW6vevXurZ8+e2rdvn3bu3OlY/9lnnzXVvPHGG63+5nbj\njTfqb3/7m44cOSJJTf+25IYbbtD69et16tQp1dXVaePGja3+5zR+/HitW7dOX375ZdN2P/vss6Dj\nDGbMmDH65z//qfr6eh07dkybNm2y4gKFSy+9VP/4xz+0Zs2aFv/gPZxkZ2dr/fr1OnnypI4fP671\n69e3+vqRQn+tteX101aff/65evbsqZkzZ+qhhx7S7t27W63t1auX6urqQtpu//799cUXX+jIkSOq\nr6/Xxo0bW6294447tHbtWq1bt04zZsxw3G52draWLVumsWPHKjs7W6+88oqGDRvWan1+fr6eeuop\n3XnnnUHPu916660qLS3Vrl27lJub22rdu+++q+XLl3fpRU5djRlWJ5kwYYJeeeUVpaSkKDExsekQ\nTEtcLpcSExP14osvau7cuRoyZIjmz5/fYm1KSooef/xxjR07VpdccomGDRumP/zhDy3WZmRk6I47\n7pDX69XVV1/teKgmOTlZTz31lH72s5/p9OnTioyM1EsvvaRrr73Wse9gRowYoSlTpmjo0KHq37+/\n0tLSdOWVV4a8zWCP0Z7/QENZx+Vy6YorrtDGjRv105/+VL169dItt9zS7m06jctphhPKY2RkZOjn\nP/950/N77733yuv1ttpLqK+1H79+MjMzg86yQn0+PvjgAz388MNNs02ny9b79u2rMWPGKC0tTZMm\nTXL8bL3IyEg9+eSTGjlypNxut1JSUlrtKSUlRceOHZPH41H//v0d+83OztbTTz+tUaNG6fLLL9fl\nl1/eatCvWbNGl112mfLy8nT69GmNHj1aPp9POTk5rfZ84403qnfv3o7778UXX9TXX3+tcePGSZIy\nMzO1atUqx767G/5wGJ3u+PHjioqK0okTJzR27Fi9+uqrSk9P75Jevvrqqy49N9bVqqqqNHnyZH3w\nwQdtXnfJkiWKjo7WokWLOqGzi9fp06c1fPhwrVu3ToMHD+7qdsIahwTR6e677z5lZGRo+PDhmj59\nepeF1cGDBzV69Gg9/PDDXfL44aIjh/VsOJxrk4qKCiUkJOimm24irELADAsAYAVmWAAAKxBYAAAr\nEFgAACsQWAAAKxBYAAArEFgAACv8P5ZWvQDqsWNNAAAAAElFTkSuQmCC\n", - "text": [ - "" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "c6a" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 10, - "text": [ - "'CPYYL GVVIR PDDVU BCSUP QOWPW SYBYP ODBCS PBBPR CSIOZ PTSTV HYVTW PYOZC OGCRV TTPUI BVGVS YOUGZ ZSRYS BPYLY SHSYY OUGBV BCSWP OUBOU GPUIR DSPYD LTSUB OVUOU GZPYP ZSSTZ DONSB CSLNU SJPAV EBBCS ZRPTV EYHYO SUIDL ZZVHH ORSYJ PZWDP UUOUG BVWED DBCSL WORNS IEWCS YBYPO DBCSU OGCBP HBSYZ CSJSU BTOZZ OUGAE BLVER PUYSP IPAVE BBCPB OUBCS OYYSW VYBZB ODDUV MVLVU GSBBO UGPRR SZZBV BCSVY OGOUP DTOZZ TVUPO UBCSG PDDSY LPUIO PTASG OUUOU GBVBC OUNJS TOGCB USSIB VYVDD VEBPA DPRNA PGMVA LVEJP UBBVI VOBVY ZCPDD OALBC SJPLO JPZZE YWYOZ SIALB COZYS WVYBB CSVBC SYWPW SYZJS CPFSH YVTBC SUPQO ZPBBC OZDSF SDPYS SURYL WBSIE ZOUGA OHOIV YWDPL HPOYZ BLDSR OWCSY ZBCOZ VUSOZ UBTPL ASBCS ROWCS YRDSY NJPZV HHIEB LBCPB IPLJS GVBDE RNL\\n'" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "len(sanitise(c6b))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 11, - "text": [ - "1573" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "c6as = sanitise(c6a)" - ], - "language": "python", - "metadata": {}, - "outputs": [], - "prompt_number": 12 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "frequencies(ngrams(c6as, 2))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 13, - "text": [ - "Counter({'bc': 21, 'cs': 20, 'ou': 15, 'sy': 12, 'oz': 10, 'ug': 10, 'ub': 8, 'bv': 8, 'su': 7, 'bb': 7, 'zz': 6, 'yo': 6, 'dd': 6, 'ys': 6, 'py': 6, 'pu': 6, 'jp': 6, 've': 6, 'vy': 6, 'cp': 5, 'co': 5, 'si': 5, 'yz': 5, 'ds': 5, 'po': 5, 'bo': 5, 'eb': 5, 'vb': 5, 'vu': 5, 'sb': 4, 'zb': 4, 'yb': 4, 'dp': 4, 'pl': 4, 'pd': 4, 'pb': 4, 'pz': 4, 'bp': 4, 'js': 4, 'wp': 4, 'og': 4, 'up': 4, 'uo': 4, 'ui': 4, 'yl': 4, 'tv': 3, 'to': 3, 'lv': 3, 'lb': 3, 'yv': 3, 'sj': 3, 'sg': 3, 'sp': 3, 'sr': 3, 'ss': 3, 'sw': 3, 'zs': 3, 'zv': 3, 'zc': 3, 'al': 3, 'yw': 3, 'rn': 3, 'rp': 3, 'db': 3, 'us': 3, 'yy': 3, 'yp': 3, 'st': 3, 'ie': 3, 'gv': 3, 'gp': 3, 'zp': 3, 'gb': 3, 'gc': 3, 'pa': 3, 'pt': 3, 'pr': 3, 'bl': 3, 'wc': 3, 'ow': 3, 'od': 3, 'vh': 3, 'vt': 3, 'hy': 3, 'tp': 2, 'ts': 2, 'cb': 2, 'lw': 2, 'fs': 2, 'sh': 2, 'sl': 2, 'so': 2, 'sz': 2, 'sv': 2, 'zo': 2, 'ro': 2, 'wv': 2, 'rd': 2, 'ry': 2, 'rs': 2, 'dl': 2, 'do': 2, 'dv': 2, 'ir': 2, 'ip': 2, 'qo': 2, 'io': 2, 'ib': 2, 'gz': 2, 'ga': 2, 'av': 2, 'go': 2, 'pw': 2, 'pq': 2, 'by': 2, 'bs': 2, 'bt': 2, 'wd': 2, 'oy': 2, 'or': 2, 'ws': 2, 'iv': 2, 'zd': 2, 'ey': 2, 'er': 2, 'ns': 2, 'vi': 2, 'nj': 2, 'ho': 2, 'uu': 2, 'hh': 2, 'mv': 2, 'as': 2, 'tz': 1, 'tt': 1, 'tw': 1, 'ta': 1, 'tb': 1, 'lp': 1, 'lt': 1, 'ly': 1, 'lz': 1, 'la': 1, 'ld': 1, 'lg': 1, 'lh': 1, 'lj': 1, 'cr': 1, 'lo': 1, 'ln': 1, 'wb': 1, 'sc': 1, 'sd': 1, 'sf': 1, 'na': 1, 'zr': 1, 'ap': 1, 'wo': 1, 'zw': 1, 'zu': 1, 'zt': 1, 'zy': 1, 'ad': 1, 'ae': 1, 'zj': 1, 'ao': 1, 'rc': 1, 'hb': 1, 'rr': 1, 'rv': 1, 'yj': 1, 'yh': 1, 'yn': 1, 'hi': 1, 'de': 1, 'yd': 1, 'yr': 1, 'du': 1, 'dt': 1, 'nl': 1, 'gm': 1, 'wy': 1, 'ia': 1, 'id': 1, 'gs': 1, 'pi': 1, 'ph': 1, 'pg': 1, 'pf': 1, 'bz': 1, 'bu': 1, 'bi': 1, 'bd': 1, 'we': 1, 'ov': 1, 'op': 1, 'os': 1, 'on': 1, 'oi': 1, 'oj': 1, 'oa': 1, 'ob': 1, 'ej': 1, 'ze': 1, 'ed': 1, 'ez': 1, 'ew': 1, 'vg': 1, 'vd': 1, 'va': 1, 'vo': 1, 'oh': 1, 'nu': 1, 'vl': 1, 'vw': 1, 'vv': 1, 'vs': 1, 'uy': 1, 'uv': 1, 'ur': 1, 'un': 1, 'hp': 1, 'hs': 1, 'vm': 1})" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "' '.join(segment(letters(c6a).translate(''.maketrans({'B':'t', 'C':'h', 'S':'e', 'O':'i', 'U':'n', 'G':'g', 'A':'b', 'V':'o', 'N':'k', 'J':'w', 'T':'m', 'I':'d', 'P':'a', 'W':'p', 'R':'c', 'Y':'r', 'L':'y', 'D':'l', 'H':'f', 'Z':'s', 'Q':'z', 'E':'u', 'F':'v', 'M':'j'}))))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 14, - "text": [ - "'harry good call on the nazi paper trail the attached is a memo from paris high command to goering s secretary referring to the painting and clearly mentioning sara seems like they knew about the scam our friendly ss officer was planning to pull they picked up her trail the night after she went missing but you can read about that in their report still no joy on getting access to the original miss mona in the gallery and i am beginning to think we might need to rollout a black bag job you want to do it or shall i by the way i was surprised by this report the other papers we have from the nazis at this level are encrypted using bifid or playfair style ciphers this one isnt maybe the cipher clerk was off duty that day we got lucky'" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "trans={'B':'t', 'C':'h', 'S':'e', 'O':'i', 'U':'n', 'G':'g', 'A':'b', 'V':'o', 'N':'k', 'J':'w', 'T':'m', 'I':'d', 'P':'a', 'W':'p', 'R':'c', 'Y':'r', 'L':'y', 'D':'l', 'H':'f', 'Z':'s', 'Q':'z', 'E':'u', 'F':'v', 'M':'j'}" - ], - "language": "python", - "metadata": {}, - "outputs": [], - "prompt_number": 15 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "''.join(sorted(trans.keys(), key=lambda k: trans[k]))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 16, - "text": [ - "'PARISHGCOMNDTUVWYZBEFJLQ'" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "' '.join(segment(keyword_decipher(c6as, 'parishighcommand', 2)))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 17, - "text": [ - "'harry good call on the nazi paper trail the attached is a memo from paris high command to goering s secretary referring to the painting and clearly mentioning sara seems like they knew about the scam our friendly ss officer was planning to pull they picked up her trail the night after she went missing but you can read about that in their report still no joy on getting access to the original miss mona in the gallery and i am beginning to think we might need to rollout a black bag job you want to do it or shall i by the way i was surprised by this report the other papers we have from the nazis at this level are encrypted using bifid or playfair style ciphers this one isnt maybe the cipher clerk was off duty that day we got lucky'" - ] - } - ], - "prompt_number": 17 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "c6bs = sanitise(c6b)" - ], - "language": "python", - "metadata": {}, - "outputs": [], - "prompt_number": 18 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "len(c6bs)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 19, - "text": [ - "1573" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "from itertools import permutations" - ], - "language": "python", - "metadata": {}, - "outputs": [], - "prompt_number": 20 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "list(permutations(range(4)))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 21, - "text": [ - "[(0, 1, 2, 3),\n", - " (0, 1, 3, 2),\n", - " (0, 2, 1, 3),\n", - " (0, 2, 3, 1),\n", - " (0, 3, 1, 2),\n", - " (0, 3, 2, 1),\n", - " (1, 0, 2, 3),\n", - " (1, 0, 3, 2),\n", - " (1, 2, 0, 3),\n", - " (1, 2, 3, 0),\n", - " (1, 3, 0, 2),\n", - " (1, 3, 2, 0),\n", - " (2, 0, 1, 3),\n", - " (2, 0, 3, 1),\n", - " (2, 1, 0, 3),\n", - " (2, 1, 3, 0),\n", - " (2, 3, 0, 1),\n", - " (2, 3, 1, 0),\n", - " (3, 0, 1, 2),\n", - " (3, 0, 2, 1),\n", - " (3, 1, 0, 2),\n", - " (3, 1, 2, 0),\n", - " (3, 2, 0, 1),\n", - " (3, 2, 1, 0)]" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "[column_transposition_decipher(c6bs, p, fillvalue=' ') for p in permutations(range(4))]" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 22, - "text": [ - "['hithhnfrferteaofftnasltyorrreqthimserulrhfsetaeeiuiwsihbnrrtsioiienirhmrpytdtoeircitalnbrpnhtohorliewtshtesposotoynuwhredhhcpicmnootahashtijeanetofrneusragmxurttowleatbrtepptraaesenethhrisnrststrnfldoghaumgseseakuntiahyttnyuntnnvhigwlewfiapasrelfaiebapcmcplahethtolhwsuladseuveaeotaeutateefehlbhtrshgatliaceehtrnhgaasietufnnpurehrelittmudyinnuegicouendeeiahsuelhtnoahtieainyfdniauoenatiyefohedaluaroeryhuraeraterahiaongtwiswsaitbultaomxletoreototonaoortgbcvaipnleewfyrtaeoaduwwetrrtnlrpfpaiellrimntrowieqrecuarndotafnroteletpenrpmshnddetdewhefoypedennsneegtateeanesertgdlueosrburowhdgbrpahenyttekrertrrhnfnedoltswsianiypothmouoctyeieeponhkrnntairlteeiuremnitaphoeaohhnouumtkvsenedeeoidpwkiegtiiiosenhuufanbeuithraerhieehuayasrusiwgadsisitrlgfphiltwiisihesurmromaceisoilvdeoelusairideotnfiesobntsapofgsodrtfirpltanetrlyiosotyoessfntpheaigeaoraieitdmtaaegrhyasrrcfelrtleeanehvehivmhnassieroixlmpsjttesofbmrhndiochecnbttncompusesoehtenetfienootnwooteeriltoigdosmehoifmlroeffdtuesoflerwiiyqdbzottnrfantdigontalaepdsheamnthlpsnbtuoahaalplemnpdrshvnaiaelnhcaliskacdoaedtjghoieadgwayndetenhegeeueoeednoryyrfctemttwntgdetasuoootfwymihrgrhoesinrraofretfenpoyaissesstnhhayeulhiwpcteatuapeanlueelwahaoeluresnbiieasaeteagcdcsorepsroenselvosedudsitlteittfseoesnlnginoernteieiwwlwhteirsiilhtdsrndesrfhrntlgrsuasedadoytasadutenwitcnametertpoesytotocnyutsogcmudlpadleadotefdsbfeleahaxrsonidtieiprashicdcshipbielslnalhorfrentatoraiemklagretmrdcwsnaynwsvnuldorekutnnoutiiunnhvnieilohltefnaeatuifttacetlnnrbhbeglosnaonmifkoaronsnvnfretrcfthdetpswsucpercwtpoawfhdayisooagoaelndfigngrtebltllgfo ',\n", - " 'hihthnrffetreafoftanslytorrreqhtimesrurlhfestaeeiuwisibhnrtrsiioieinrhrmpydttoierctialbnrphntoohrleiwthstepsostooyunwherdhchpimcnotoahsahtjieaentorfnesuramgxutrtolweabtrtpeptaraeesnehthrsinrtsstnrflodghuamgessekaunitahtytnuyntnnvhgiwlwefipaaserlfiaebpacmpclaehthotlhswuldasevueaoetauetaetefhelbthrsghatilaceehtnrhgaasiteufnnpuerhrleitmtudiynneugiocuedneeaihseulhntoathieianydfniuaoeantieyfoehdaulareoryuhrareatreahaiontgwiwssatibutlaoxmleotretootnoaorotgcbvapinleewfrytaoeadwuwertrtlnrppfailelrmintorwiqereucardnotfanrtoeltepernpmhsndedtdweheofypdeensnnegetaeteaensetrgduleorsbuorwhgdbrapheynttkeretrrrnhfndeolstwsainipyotmhoucotyieeeopnhrknnatirtleeuirenmitpahoaeohnhoumutksvendeeeiodpkwietgiioisehnuuafnbueitrhaehrieheuaaysrsuiwagdssiitlrgfhpilwtiiisheusrmormaecisiolvedoeulsariidoetnifesbontaspogfsordtfriplatnertlyoisoytoessfnptheiageoaraeiitmdtaeagryhasrrcflerteleaenhvheivhmnassieorixmlpstjteosfbrmhnidocehcntbtnocmpsueseohtneetifenootnowoteeritloidgosemhofimlorefdftuseofelrwiiyqbdzottnrafntidgotnaleapdhseanmthplsntbuohaaapllenmpdsrhvanialenhacliksacodaetdjgohiedagwyandteenehgeueeoeednroyyfrctmettnwtgedtausootofwmyihgrrheosirnraforeftenopyasisesstnhhayuelhwipcetataupenalueelwhaaoleursenbiieaasetaegccdsoerpsoreneslvsoeddusilttetitfesoenslnignorentieeiwwlwtheisriihltdrsndserfrhntglrsauseaddotyasdautnewictnaemtetrposeyttoocynutosgcumdlapdlaedoetfdbsfeelahxarsnoiditeirpasihcdschibpiesllnlahofrretnatroaimeklgaremtrdwcsnyanwvsnudlorkeutnnouitiunnhvineiolhletfneaatiuftatceltnnbrhbgelonsaomnifokarnosnnvfrterctfhdtepsswuceprctwpowafhadyiosoaogaenldfgingtrebtlllfgo ',\n", - " 'htihhfnrfreteoaffntastlyorrretqhismerlurhsfeteaeiiuwshibnrrtsoiiineirmhrptydteoirictanlbrnphthoorilewsthtsepoostonyuwrhedhhcpcimnootaahshitjenaetfornuesrgamxruttwoletabretpprtaaseentehhirsnsrtsrtnfdlogahumsgesaekutniayhttynunntnvihgwelwfaiparselafieabpccmplhaettholwhsualdsueveeaoteauttaeeefhlhbtrhsgaltiaecehrtnhagaseitunfnprueherlittmuydinunegciounedeieahuselthnohatiaeinfydnaiuoneatyiefhoedlauaorerhyurearaetraihaogntwsiwsiatblutamoxlteoroetootnaoortbgcviapnelewyfrteaoaudwwterrntlrfppaeillirmnrtoweiqrceuanrdoatfnorteeltpnerpsmhnddetedwhfeoyepdennsneegttaeenaesretglduesorbruowdhgbprahneytetkrretrhrnfendotlswisanyipohtmooucteyiepeonkhrntnailrteieurmeniatpheoaohhnouumtvkseendeoeidwpkigetiiiosnehufuanebuihtrarehieehuyaasursigwadissirtlgpfhitlwisiihseurrmomcaeiosildveoleusiariedotfnieosbnstapfogsdortifrptlanterliyostoyosesftnphaeigaeoriaeidtmtaaeghryarsrceflrlteenaehevhimvhnsasireoilxmpjsttseofmbrhdniohcecbnttcnomupseosehetneftieonotwnooeterlitogidomsehiofmrloeffdteusolferiwiydqbztotnfrandtignotaalepsdhemantlhpsbntuaohalaplmenprdshnvaiealnchalsikadcoadetjhgoiaedgawynedtehnegeeueeoedonryryfcetmtwtntdgetsauoootfywmirhgrohesnirroafrtefepnoyiasssesthnhaeyulihwptceautapaenleuelawhaeoluersnibiesaaeetagdccsroeprsoesnelovseuddstiltiettsfeosenlgnineornetiewiwlhwterisilihtsdrnedsrhfrnltgrusasdeadyotaasduetnwticnmaetretpeosyottoncyustogmcudpladeladtoefsdbfleeaahxrosnitdiepirahsiccdshpibileslanlhrofrnetaotraeimkalgrtemrcdwsanynswvnludoerkuntnotuiinunhnvieliohtlefaneautifttactelnrnbhebglsonanomikfoaornsvnnfertrfcthedtpwssupcerwctpaowfdhaysioogaoalendifgnrgtelbtlglfo ',\n", - " 'hhithrnffterefaofatnsyltorrrehqtiemsrrulhefsteaeiwuisbihntrrsiioiienrrhmpdyttioertciablnrhpntoohreliwhtstpesotsoouynwehrdchhpmicntooashahjtieeantrofnseurmagxturtlowebatrptepatraeesnhethsrintrssntrfoldguhamegsskeauintathytunynntnvghiwwlefpiaaesrlifaepbacpmcleahtohtlshwudlasveueoaetuaeteatehfeltbhrgshaitlaecehntrhagastieunfnpeurhlreimttuidynenugoicudeneaeihesulnhtotahiieandyfnuiaoaenteiyfeohdualaeroruyhrraearteaahiotngwwisstaibtulaxomloetrteoontoarootcgbvpainelewrfytoaeawduwretrltnrppfalielmrinotrwqieruecadrnoftantroetleprenphmsneddtwdehoefydpeesnnngeeteateeanstergudlerosbourwghdbarphyentkterterrnrhfdneosltwasinpiyomthocuotiyeeoepnrhknantitrleueirnemiptahaoeonhhomuutskvedneeieodkpwitegioiishenuaufnubeirthaheriheeuaayssruiawgdssiiltrghfpiwltiiishuesromrmeaciisolevdouelsraiiodetinfebsonatspgofsrodtrfipaltnretloyisyotosesfpnthieagoeareaiimtdteaagyrharsrclferetleeanhhveihvmnsasioerimxlptsjtoesfrbmhindoechctnbtoncmspueesohnteeitfeonotonwoetertilodigoesmhfoimolredfftsueoeflriwiybqdztotnarfnitdgtonaelaphdsenamtphlstnbuhoaapallnempsdrhavnilaenahclkisaocdatedjoghideagywantdeeenhgueeeeoedrnoyfyrcmtetntwtegdtuasotoofmwyighrrehosrinrfaorfeteonpysaissesthnhauyelwhipectaatupnealeuelhwaaloeusrenibieaaseategccdseorposreenslsvoedduslittteitefsoneslingnroeniteewiwltwhesirihiltrdsnsderrfhngtlrasusaeddtoyadsauntewcitneamtterpsoeyttooycnuotsgucmdalpdaledeotfbdsfeelaxharnsoiidteripaishcsdchbipiselllnahforrtenartoamiekglarmetrwdcsynanvwsndulokreuntnoiutinunhivneoilheltfenaaitufattcletnbnrhgbelnosamoniofkanrosnnvftrertcfhtdepsswuecprtcwpwoafahdyoisooaganeldgfintgretbllflgo ',\n", - " 'hthihfrnfrteeofafnatstylorrrethqisemrlruhsefteeaiiwushbinrtrsoiiiniermrhptdyteioritcanblrnhpthoorielwshttspeootsonuywrehdhchpcminotoaashhijteneatfronusergmaxrtutwloetbareptprataseenthehisrnstrsrntfdolgauhmsegsakeutinaythtyunnnntvighwewlfapiareslaifeapbccpmlheattohlwshuadlsuveeeoateuatteaeehflhtbrhgsalitaeechrnthaagsetiunnfpreuhelritmtuyidnuengcoiundeeiaehuesltnhohtaiaienfdynauionaetyeifheodluaaoerrhuyreraaertaiahogtnwswisitabltuamxoltoeroteoontaorotbcgvipaneelwyrfteoaauwdwtrernltrfppaelilimrnrotweqircueandroaftnotreetlpnrepshmndedtewdhfoeyedpensnnegetteaeneasrtegludesrobrouwdghbparhnyetektrrterhnrfednotslwiasnypiohmtoocuteiyepoenkrhntaniltreiuermneiaptheaoohnhoumutvskeedneoiedwkpigteiioisnheufauneubihrtarheieheuyaasusrigawdissirltgphfitwlisiihsuerrommceaioisldevoluesiraieodtfineobsnsatpfgosdrotirfptalntrelioystyoosseftpnhaiegaoerieaidmttaeaghyrarrscelfrleteneahehvimhvnssairoeilmxpjtstsoefmrbhdinoheccbtntconmuspeoeshentefiteoontwonoeetrltiogdiomeshifomrolefdftesuolefriiwydbqzttonfarnditgntoaaelpshdemnatlphsbtnuahoalpalmneprsdhnavielancahlskiadocadtejhogiadegaywnetdehengeueeeeodornyrfycemttwnttdegtsuaootofymwirghroehsnrirofartfeeponyisasssethhnaeuyliwhptecauatpaneleeulahwaelouesrniibesaaeeatgdccsreoprosesenlosveuddstlititetsefosnelginneroneitewwilhtwersiilhitsrdnesdrhrfnlgtruassdaedytoaadsuentwtcinmeatrtepesoyottonycusotgmucdpaldealdteofsbdfleeaaxhronsitidepriahisccsdhpbiilselalnhrfornteaortaemikaglrtmercwdsaynnsvwnlduoekrunntotiuinnuhniveloihtelfaenauitftatctlenrbnhegblsnoanmoikofaonrsvnnfetrrftchetdpwssupecrwtcpawofdahysoiogoaalnedigfnrtgeltblgflo ',\n", - " 'hhtihrfnftreefoafantsytlorrrehtqiesmrrluhesfteeaiwiusbhintrrsioiiinerrmhpdtytieorticabnlrhnptohoreilwhsttpseotosounywerhdchhpmcintooasahhjiteenatrfonsuermgaxtrutlwoebtarpetpartaesenhtehsirntsrsnrtfodlguahmesgskaeuitnatyhtuynnnntvgihwwelfpaiaersliafepabcpcmlehatothlswhudalsvueeoeatueatetaeheflthbrghsailtaeechnrthaagsteiunnfperuhlerimttuiydneungociudneeaieheuslnthothaiiaendfynuaioaneteyifehodulaaeorruhyrreaaretaaihotgnwwsistiabtluaxmolotertoeonotarootcbgvpianeelwryftoeaawudwrterlntrpfpaleilmirnortwqeiruceadnrofatntoretelprnephsmneddtwedhofeydepesnnngeetetaeenastreguldersoboruwgdhbaprhynetketrtrernhrfdenostlwaisnpyiomhtocoutieyeopenrkhnatnitlreuiernmeipathaeoonhhomuutsvkedeneioedkwpitgeioiishneuafunuebirhtahreiheeuayassuriagwdsisilrtghpfiwtliisihuserormmecaiiosledvoulesriaioedtifnebosnastpgfosrdotrifpatlnrteloiysytoossefptnhiaegoaereiaimdtteaagyhrarrsclefrelteenahhevihmvnssaioreimlxptjstosefrmbhidnoehcctbntocnmsupeeoshneteifteoontownoeetrtliodgioemshfiomorledfftseuoelfriiwybdqzttonafrnidtgtnoaealphsdenmatplhstbnuhaoaplalnmepsrdhanvileanachlksiaodcatdejohgidaegyawntedeehngueeeeeodronyfrycmettnwttedgtusaotoofmywigrhreohsrnirfoarfteeopnysiasssethhnaueylwihpetcaautpnaeleeulhawaleouserniibeasaeaetgcdcseroporseesnlsovedudsltittietesfonselignnreonietewwilthwesriihlitrsdnsedrrhfngltraussadedtyoadasunetwctinemattrepseoytotoyncuostgumcdapldaeldetofbsdfeleaxahrnosiitderpiaihscscdhbpiislellanhfrortnearotameikgalrmterwcdsyannvswndluokerunntoituinnuhinveolihetlfeanaiutfattcltenbrnhgeblnsoamnoiokfanorsnvnfterrtfchtedpswsuepcrtwcpwaofadhyosioogaanledgifntrgetlblfglo ',\n", - " 'ihthnhfrefrtaeoftfnalstyrorrqethmiseurlrfhseateeuiiwishbrnrtisoieinihrmryptdoteicritlanbprnhotholrietwshetspsootyonuhwrehdhcipcmonothaasthijaeneotfrenusargmuxrtotwlaetbtreptpraeaseenthrhisrnsttsrnlfdohgaugmseesaknutihaytntyutnnnhviglwewifapsareflaibeapmccpalhehttohlwsluadesuvaeeoateuattefeehblhtsrhgtalicaeethrnghaaisetfunnuprerheltitmduyinnueigcoeundeeiashuehltnaohteiaiynfdinaueonaityeofheadluraoeyrhuarertaerhaianogtiwswasitubltoamxeltoerottoonoaorgtbcaviplneefwyrateodauwewtrtrnlprfpiaelrlimtnroiweqercurandtoafrnotleetepnrmpshdndedtewehfopyednensenegatteaeneesrtdgluoesrubrohwdgrbpaehnyttekerrtrrhnnfedlotsswiainyptohmuoocyteieepohnkrnntarilteeiuermntiapoheahohnuoumktvsneedeeoipdwkeigtiiioesnhuufabneutihrearheiehauyarsuswigasdistirlfgphlitwiisiehsumrroamcesioivldeeoluasirdieontfiseobtnsaopfgosdrftirlptaentrylioostyeossnftpehaiegaoarietidmataerghysarrfceltrleaenevhehvimhansseiroxilmspjtetsobfmrnhdicohencbtntcopmusseoethentefineoontwotoeeirltiogdsomeohiflmrofefdutesfolewriiqydbozttrnfatndiogntlaaedpshaemnhtlpnsbtouahaalpelmndprsvhnaaielhncailskcadoeadtgjhoeiadwgaydnetneheegeuoeeendoryyrftcemttwngtdeatsuoootwfymhirghroeisnrarofertfnepoayisesssnthhyaeuhliwcptetauaepanuleewlahoaelruesbniiaesateeacgdcosrespronesevlosdeudistletitftseeosnnlgionertneiiewwwlhtiersiilhdtsrdnesfrhrtnlgsruaesdaodytsaadtueniwtcanmeetrtopestyotconytusocgmuldpaldeaodtedfsbeflehaaxsronditiieprsahidccsihpbeilsnlalohrfernttaoriaemlkagertmdrcwnsaywnsvunldroektunnuotiuinnvhniielolhtenfaetauitftaectlnnrbbhegolsnoanmfikoraonnsvnrfetcrftdhetspwscupecrwtopawhfdaiysoaogoealnfdiggnrtbeltllgf o ',\n", - " 'ihhtnhrfeftraefotfanlsytrorrqehtmiesurrlfhesateeuiwiisbhrntrisioeiinhrrmypdtotiecrtilabnprhnotohlreitwhsetpssotoyounhwerhdchipmcontohasathjiaeenotrfensuarmguxtrotlwaebttrpetpareaesenhtrhsirntstsnrlfodhguagmeseskanuithatyntuytnnnhvgilwweifpasaerfliabepamcpcalehhtothlswludaesvuaeoeatueatetfeheblthsrghtailcaeethnrghaaistefunnuperrhletimtduiynneuigoceudneeaisheuhlntaotheiiayndfinuaeoaniteyofehadulraeoyruharretarehaainotgiwwsastiubtloaxmelotertotonooarogtcbavpilneefwryatoedawuewrttrlnprpfialerlmitnoriwqeerucradntofarntoleteeprnmphsdneddtweehofpydenesnengeatetaeenestrdguloersuborhwgdrbapehynttkeertrrrnhnfdelostswaiinpytomhuocoytieeeophnrknnatritleeuiernmtipaohaehonhuomuktsvnedeeeiopdkweitgiioieshnuuafbnuetirheahreiheauayrssuwiagsdsitilrfghpliwtiiisehusmroramecsiiovledeoulasridioentifsebotnasopgfosrdftrilpatenrtyloiosyteossnfptehiaegoaareitimdateargyhsarrfcletrelaeenvhhevihmansseiorximlsptjetosbfrmnhidcoehnctbntocpmsuseeothneteifneoontowtoeeirtliodgsoemohfilmorfedfutsefoelwriiqybdozttrnaftnidogtnlaeadphsaenmhtplnstbouhaaaplelnmdpsrvhanailehnacilkscaodeatdgjoheidawgyadnteneehegueoeeendroyyfrtcmettnwgtedatusootowfmyhigrhreoisrnarfoerftneopaysiesssnthhyauehlwicpettaauepnauleewlhaoalerusebniiaeasteaecgcdosersporneesvlsodeduisltettifteseonsnligonretnieiewwwlthiesriihldtrsdnsefrrhtnglsrauesadodtysadatuneiwctanemettropsetytocoyntuoscgumldapldaeodetdfbsefelhaxasrnodiitierpsaihdcscihbpeislnllaohfrertntaroiamelkgaermtdrwcnsyawnvsundlroketunnuoituinnvhinieollhetnfeataiutfatecltnnbrbhgeolnsoamnfiokranonsnvrftecrtfdhtespswcuepcrtwopwahfadiyosaoogeanlfdgigntrbetlllfg o ',\n", - " 'thihfhnrrfetoeafnftatslyrorrteqhsimelrurshfeetaeiiuwhsibrnrtosiinieimrhrtpydetoiirctnalbnrphhtooirleswthstepoostnoyurwhehdhccpimonotaahsihtjneaeftorunesgramrxutwtolteabertprptasaeetnehihrssnrtrstndfloaghusmgeasektuniyahtytnunntnivhgewlwafiprasealfiaebpccmphlaetthowlhsaulduseveeaoetauttaeeefhhlbthrsglatieacerhtnahgaesitnufnrpueehrltitmyudiunnecgionuedieeauhsetlhnhoataieifnydaniunoeaytiehfoeldauoarehryuerareatriahagontswiwisatlbutmaoxtleooretootnoaorbtgcivapenleywfretaouadwtwernrtlfrppeaililrmrntoewiqcreunardaotfonrteeltnperspmhdndeetdwfheoeypdnensenegttaeneaersetlgduseorrbuodwhgpbranheyettkrrethrrnefndtolsiwsayniphotmooucetyipeeoknhrtnnalirtieeumrenaitpehoahohnuoumvtkseendoeeiwdpkgietiiionsehfuuaenbuhitrraeheiehyuaausrsgiwaidssritlpgfhtilwsiiisheurrmocmaeoisidlveloeuisareidoftnioesbsntafpogdsoritfrtplatnerilyotsoysoestfnpaheiageoiraeditmataehgryrasrecfllrteneaeehvhmivhsnasrieolixmjpststeomfbrdhnihocebcntctnoumpsoeseehtnfetioenowtnoeotelritgoidmoseihofrmlofefdetuslofeirwidyqbtzotfnradntingotaalespdhmeanlthpbsntauohlaapmlenrpdsnhvaeialcnhaslikdacodaethjgoaiedagwyendtheneegeueeoeodnrryyfectmwttndtgestauoootyfwmrihgorhensiroraftrefpenoiyassseshtnheayuilhwtpceuataapeneluealwheaoleursinbiseaaeetadgccrsoerpsoseneolvsueddtsilitetstfesoenglnienorentiweiwhlwtreisliihstdrendshrfrlntgursadseaydotaasdeutntwicmnaerteteposoyttnocysutomgcupdlaedlatdoesfdblfeeaahxorsntidipeirhasiccdsphibliesalnlrhofnretoatreaimaklgtremcrdwasnysnwvlnudeorknutntouiniunnhvileiothleafneuatitftatcelrnnbehbgslonnaomkifooarnvsnnefrtfrctehdtwpsspucewrctapowdfhasyiogoaolaenidfgrngtlebtgllf o ',\n", - " 'hhitrhnftferfeaoaftnysltrorrheqteimsrrulehfsetaewiuibsihtnrrisioiienrrhmdpytitoetrcibalnhrpnotoherlihwtsptestosouoynewhrcdhhmpictnoosahajhtieeanrtofsneumragtxurltowbeatprteaptreaeshnetshritnrsnstrofldughaemgskseaiunttahyutnynntngvhiwwlepfiaeasrilfapebapcmcelahothtslhwdulavseuoeaeutaeetathefetlbhgrshiatleacenhtrahgatsienufnepurlhremittiudyennuogicduenaeeiehsunlhttoahiieadnyfuniaaoenetiyefohudalearouryhrraerateaahitongwwistsaitbulxaomolettreonotoraooctgbpvaienlerwfyotaewadurwetlrtnprpflaiemlriontrqwieurecdarnfotatnrotelerpenhpmsenddwtdeohefdypesenngneeetateeantserugdlreosoburgwhdabrpyhenkttetrernrrhdfnesoltawsipniymothcouoityeoeeprnhkannttirlueeinrempitaahoenohhmouustkvdeneieeokdpwtiegoiiihsenauufunberithhaerhieeauayssruaiwgsdsilitrhgfpwiltiiisuhesormremaciisoelvduoelrsaioideitnfbesoantsgpofrsodrtfiapltrnetolyiysotsoespfntiheaogeaeraimitdetaaygrhrasrlcfeertleeanhhvehivmsnasoiermixltpsjotesrfbmihndeochtcnbotncsmpueesonhteietfoenootnweotetrildoigeosmfhoiomlrdeffstueeoflirwibyqdtzotanrfintdtgonealahpdsneampthltsnbhuoapaalnlemspdrahvnliaeanhcklisoacdtaedojghdieaygwatndeeenhugeeeeoerdnofyyrmctenttwetgdutastooomfwygihrerhorsinfraofretoenpsyaisseshtnhuayewlhiepctaatunpeaeluehlwalaoesureinbiaeasaetecgcdesoropsreensslvodedulsittteietfsnoesilngrnoeinteweiwtlwhseirhiilrtdssnderrfhgntlarsuasedtdoydasanutecwitenamtterspoetytoyocnoutsugcmadlpadleedotbfdsefelxahanrsoiidtreipiashscdcbhipsielllnafhortrenratomaiegklamretwrdcysnavnwsdnulkorenutnioutniunihvnoeilehltefnaiatuafttlcetbnnrghbenlosmaonoifknaronsnvtfretrcfthdespsweucptrcwwpoaafhdoyisooagnaelgdfitngrteblfllg o ',\n", - " 'thhifhrnrfteoefanfattsylrorrtehqsiemlrrushefeteaiiwuhsbirntrosiiniiemrrhtpdyetioirtcnablnrhphtooirelswhtstpeootsnouyrwehhdchcpmiontoaashihjtneeaftrounsegrmarxtuwtlotebaerptrpatsaeetnheihsrsntrrsntdfolaguhsmegasketuinyathytunnnntivghewwlafpiraesalifaepbccpmhleattohwlshaudlusveeeoaetuatteaeehfhltbhrgslaiteaecrhntahagestinunfrpeuehlrtimtyuidunencgoinudeieaeuhestlnhhotaaiiefndyanuinoaeyteihfeolduaoaerhruyerraeartiaahgotnswwiistalbtumaxotloeorteoontoarobtcgivpaenelywrfetoauawdtwrenrltfrppealiilmrrnotewqicruenadraoftontreetlnpresphmdnedetwdfhoeeydpnesnengetteaneearstelgudserorboudwghpbarnhyeetktrrtehrnrefdntosliwasynpihomtoocuetiypeoeknrhtnanlitrieuemrneaiptehaohonhuomuvtskeednoeiewdkpgiteiioinshefuauenubhirtraheeiheyuaaussrgiawidssriltpghftiwlsiiishuerromcmeaoiisdlevloueisraeiodftinoebssnatfpgodsroitrftpaltnreiloytsyososetfpnahieagoeireadimtateahgyrrarseclflretneeaehhvmihvsnsarioelimxjptsstoemfrbdhinhoecbctnctonumspoeesehntfeitoeonwtoneoetlrtigodimoesihformolfedfetsuloefiriwdybqtztofnardnitngtoaaelsphdmenaltphbstnauholapamlnerpsdnhaveilacnahslkidaocdatehjogaideagywentdheenegueeeeoodrnryfyecmtwtntdtegstuaootoyfmwrighorehnsriorfatrfepeoniysasssehthneauyilwhtpecuaatapneeleualhwealoeusrinibseaaeeatdgccrseorposseenolsvueddtsliittestefsoneglinenroenitwewihltwresilihistrdensdhrrflngturasdsaeydtoaadseunttwcimneartteepsooyttnoycsuotmgucpdaledaltdeosfbdlfeeaaxhornstiidperihaisccsdphbiliseallnrhfonrteoarteamiakgltrmecrwdasynsnvwlndueokrnunttoiuninunhivleoithelafenuaittfattclernbnehgbslnonamokiofoanrvsnneftrfrtcehtdwpsspuecwrtcapwodfahsyoigooalaneidgfrntgletbglfl o ',\n", - " 'hhtirhfntfrefeoaafntystlrorrhetqeismrrluehsfeteawiiubshitnrrisoiiinerrmhdptyiteotricbanlhrnpothoerilhwstptsetoosuonyewrhcdhhmpcitnoosaahjhiteenartfosnuemrgatxrultwobetapretaprteasehnteshirtnsrnsrtofdlugahemsgksaeiutntayhutynnnntgvihwwelpfaiearsilafpeabpccmelhaotthslwhdualvsueoeeauteaettaheeftlhbgrhsialteaecnhrtahagtseinunfeprulhermittiuydenunogciduneaeieehusnlthtohaiiaednfyunaiaoneetyiefhoudlaeaorurhyrrearaetaaihtognwwsitsiatbluxamooltetroenootraooctbgpviaenelrwyfoteawaudrwtelrntprfplaeimlironrtqweiurcedanrfoattnorteelrpnehpsmenddwtedohfedyepsenngneeettaeenatsreugldresoobrugwdhabpryhnektettrrenrhrdfensotlawispnyimohtcoouiteyoepernkhantntilrueienrmepiataheonohhmouustvkdeenieoekdwptigeoiiihsneaufuunebrihtharehieeauyassuraigwsdislirthgpfwitliisiuhseorrmemcaiioseldvuolersiaoieditfnbeosanstgpforsdortifaptlrnteoliyystososepftnihaeogaeeriamidtetaayghrrarslceferlteenahhevhimvsnsaoiremilxtpjsotserfmbihdneohctcbnotcnsmupeeosnhetieftoeonotwneoettrlidogieomsfhioomrldeffsteueolfiriwbydqtztoanfrindttgnoeaalhpsdnemaptlhtsbnhuaopalanlmesprdahnvlieaanchklsioadctadeojhgdiaeygawtnedeehnugeeeeeordonfyrymcetntwtetdgutsatooomfywgirherohrsnifroafrteoepnsyiasssehthnuaeywliheptcaautnpaeeleuhlawlaeosuerinibaesaaeetcgdcesrooprseesnslovdeudlstittieetsfnoseilgnrneoinetwewitlhwserihilirtsdsnedrrhfgnltarusasdetdyodaasnuetcwtienmattrespeotyotyoncoustugmcadpladeledtobfsdeflexaahnrosiitdrepiiahssccdbhpisilellanfhrotrneraotmaeigkalmrtewrcdysanvnswdnlukoernuntiotuninuihnvoeliehtlefaniautafttlctebnrnghebnlsomanooikfnaornsvntfertrfcthedspwseupctrwcwpaoafdhoysiooganalegdiftnrgtelbflgl o ',\n", - " 'ithhnfhrerftaoeftnfaltsyrrorqtehmsieulrrfsheaeteuiiwihsbrrntiosieniihmrrytpdoeticirtlnabpnrhohtoliretswhestpsootynouhrwehhdcicpmoonthaastihjaneeoftreunsagrmurxtowtlatebterptrpaesaeetnhrihsrsnttrsnldfohagugsmeeaskntuihyatnytutnnnhivglewwiafpsraefalibaepmccpahlehttohwlslaudeusvaeeoaetuattefeehbhltshrgtlaiceaetrhngahaiestfnunurperehlttimdyuinuneicgoenudeieasuhehtlnahoteaiiyfndianuenoaiyteohfealduroaeyhruaerrtearhiaangotiswwaistulbtomaxetloeorttoonooargbtcaivplenefywraetoduawetwrtnrlpfrpiealrilmtrnoiewqecrurnadtaofrontleetenprmsphddnedetwefhopeydnneseengatteaneeerstdlguoserurbohdwgrpbaenhytetkerrtrhrnnefdltossiwaiynpthomuoocyetiepeohknrntnarliteieuemrntaipoehahhonuuomkvtsneedeoeipwdkegitiiioenshufuabenuthireraheeihayuarusswgiasidstrilfpghltiwisiieshumrroacmesoiivdleelouaisrdeionftisoebtsnaofpgodsrfitrltpaetnryilootsyesosntfpeahieagoairetdimaaterhgysrarfecltlreaneevehhvmihasnserioxlimsjptestobmfrndhichoenbctnctopumssoeetehntfeinoeonwtoteoeilrtigodsmoeoihflrmoffeduetsfloewiriqdybotztrfnatdniongtlaaedsphamenhltpnbstoauhalapemlndrpsvnhaaeilhcnaislkcdaoedatghjoeaidwagydentnheeeeguoeeenodryryftecmtwtngdteastuoootwyfmhrighoreinsraorfetrfnpeoaiysesssnhthyeauhilwctpetuaaeapnuelewalhoealreusbiniaseateeacdgcorsesrponseevolsdueditsleittfsteesonnglioenrteniiwewwhltiresilihdstrdensfhrrtlngsuraedsaoydtsaadteunitwcamneerttoepstoytcnoytsuocmgulpdaledaotdedsfbelfehaaxsorndtiiipershaidccsiphbelisnallorhfenrttoarieamlakgetrmdcrwnasywsnvulndreoktnunutoiuninvnhiileolthenafetuaittfaetclnrnbbehgoslnonamfkioroannvsnreftcfrtdehtswpscpuecwrtoapwhdfaisyoagooelanfidggrntbletlglf o ',\n", - " 'ihhtnrhfetfrafeotafnlystrrorqhetmeisurrlfehsaeteuwiiibshrtnriisoeiinhrrmydptoitectrilbanphrnoothlerithwseptsstooyuonhewrhcdhimpcotnohsaatjhiaeenortfesnuamrgutxroltwabettpretapreeasehntrshirtnstnsrlofdhugagemseksaniuthtaynutytnnnhgvilwweipfasearfilabpeampccaelhhotthslwlduaevsuaoeeauteaettfheebtlhsgrhtialceaetnhrgahaitsefnunueprrlhetmitdiuynenuiogceduneaeisehuhnltatoheiiaydnfiunaeaonietyoefhaudlreaoyurharretraehaaintogiwwsatsiutbloxameoltetrotnoooraogctbapvilenefrwyaotedwauerwttlrnpprfilaermlitonriqweeurcrdantfoartnolteeerpnmhpsdenddwteeohfpdyensenegneaettaeenetsrdugloresuobrhgwdrabpeyhntkteetrrrnrhndfelsotsawiipnytmohucooyiteeoephrnknantrtileueienrmtpiaoahehnohumoukstvndeeeieopkdwetigioiiehsnuaufbunetriheharehieaauyrssuwaigssditlirfhgplwitiiiseuhsmorraemcsiioveldeuolarsidoienitfsbeotansogpforsdfrtilapterntyolioystesosnpfteihaeogaaeritmidaetaryghsrarflceterlaeenvhhevhimasnseoirxmilstpjeotsbrfmnihdceohntcbnotcpsmuseeotnhetiefnoeonotwteoeitrlidogseomofhilomrfdefustefeolwiriqbydotztranftindotgnleaadhpsanemhptlntsbohuaapalenlmdsprvahnaliehanciklscoadetadgojhediawygadtneneeheugeoeeenrdoyfyrtmcetntwgetdautsotoowmfyhgirheroirsnafroefrtnoepasyiesssnhthyuaehwlicepttaauenpauelewhlaolaersuebiniaaestaeeccgdoesrsoprneesvsloddeuilstettifetsenosnilgornetineiwewwtlhiserihildrtsdsnefrrhtgnlsarueasdotdysdaatnueicwtaenmettrospettyocyontouscugmladpladeoedtdbfseeflhxaasnrodiitirepsiahdsccibhpesilnllaofhretrntraoimaelgkaemrtdwrcnysawvnsudnlrkoetnunuiotuninvihnioellehtnefatiautaftelctnbnrbgheonlsomanfoikrnaonnsvrtfectrfdthesspwceupctrwowpahafdioysaoogenalfgdigtnrbtellflg o ',\n", - " 'tihhfnhrreftoaefntfatlsyrrortqehsmielurrsfheeateiuiwhisbrrntoisineiimhrrtypdeotiicrtnlabnprhhotoilrestwhsetposotnyourhwehhdccipmoontahasithjnaeefotruensgarmruxtwotltaebetrprtpaseaetenhirhssrntrtsndlfoahgusgmeaesktnuiyhatyntuntnnihvgelwwaifprsaeafliabepcmcphalethtowhlsaluduesveaeoeatutateefehhblthsrgltaiecaerthnaghaeistnfunrupeerhlttimyduiunnecigoneudieeaushethlnhaotaeiifyndainuneoayitehofeladuoraehyruearretarihaagnotsiwwiastlubtmoaxtelooertotonooarbgtciavpelneyfwreatoudawtewrntrlfprpeialirlmrtnoeiwqcerunradatofornteletneprsmphddneedtwfehoepydnneseengtatenaeerestldgusoerrubodhwgprbanehyettkrerthrrnenfdtlosiswayinphtomouoceytipeeokhnrtnnalritieeumernatipeohahhonuuomvktsenedoeeiwpdkgeitiiioneshfuuaebnuhtirreaheeihyauaurssgwiaisdsrtilpfghtliwsiiisehurmrocameosiidvleleouiasrediofntiosebstnafopgdosriftrtlpatenriylotosyseostnfpaehiaegoiaredtimaatehrgyrsarefclltrenaeeevhhmvihsansreiolximjsptsetombfrdnhihcoebnctcntoupmsoseeethnfteioneowntoetoelirtgiodmsoeiohfrlmoffedeutslfoeiwridqybtoztfrnadtninogtalaesdphmaenlhtpbnstaouhlaapmelnrdpsnvhaeailchnasilkdcaodeathgjoaeidawgyednthneeeegueoeeondrryyfetcmwttndgtesatuoootywfmrhigohrenisroarfterfpneoiayssesshntheyauihlwtcpeutaaaepneuleawlheoalerusibnisaeaeteadcgcrosersposneeovlsudedtisliettsfteseongnlieonretniwiewhwltriesliihsdtrednshfrrltngusradesayodtasadetuntiwcmaneretteopsotytncoystuomcgupldaeldatodesdfblefeahaxosrntdiipierhsaicdcspihbleisanllrohfnertotareiamalkgtermcdrwansyswnvlunderokntuntuoinuinnvhilieotlheanfeutaittfateclrnnbebhgsolnnoamkfiooranvnsnerftfcrtedhtwspspcuewcrtaopwdhfasiyogaooleanifdgrgntlbetgllf o ',\n", - " 'hihtrnhftefrfaeoatfnylstrrorhqetemisrurlefhseatewuiibishtrnriisoieinrhrmdyptiotetcriblanhprnoothelrihtwspetstsoouyonehwrchdhmipctonoshaajthieaenrotfsenumargtuxrlotwbaetptreatpreeashentsrhitrnsntsrolfduhgaegmskesainutthayuntyntnnghviwlwepifaesariflapbeapmccealhohttshlwdluavesuoaeeuateeatthfeetblhgsrhitalecaenthraghatisenfuneuprlrhemtitiduyennuoigcdeunaeeieshunhlttaohieiadynfuinaaeoneityeofhuadleraouyrhrarertaeahaitnogwiwstasitublxoamoeltterontooroaocgtbpavielnerfwyoatewdaurewtltrnpprfliaemrliotnrqiweuercdranftoatrnotleerepnhmpsedndwdteoehfdpyesnengeneeatteaentesrudglroesoubrghwdarbpyehnktteterrnrrhdnfeslotaswipinymtohcuooiyteoeeprhnkannttrilueeinermptiaaohenhohmuousktvdneeieeokpdwteigoiiihesnauufubnertihhearheieaauysrsuawigssdiltirhfgpwlitiiisuehsomrreamcisioevldueolrasiodieintfbseoatnsgopfrosdrftialptrentoyliyostseospnftiehaoegaearimtideatayrghrsarlfceetrleaenhvhehvimsansoeirmxiltspjoetsrbfminhdecohtncbontcspmueseontheitefoneoontwetoetirldiogesomfohiolmrdfefsuteefoliwribqydtoztarnfitndtognelaahdpsnaemphtltnsbhouapaalnelmsdpravhnlaieahnckilsocadteadogjhdeiaywgatdneenehuegeeoeerndofyyrmtcenttwegtduatstooomwfyghirehrorisnfarofertonepsayisesshnthuyaewhliecptataunepaeulehwlaloaesrueibniaaesateeccgdeosrosprenessvloddeulisttetieftsneosinlgroneitnewiewtwlhsierhiilrdtssdnerfrhgtnlasruaesdtodydsaantueciwteanmtetrsopettyoyconotusucgmaldpaldeeodtbdfseeflxhaansroiditriepisahsdccbihpseillnlafohrternrtaomiaeglkamertwdrcynsavwnsdunlkroentuniuotnuinivhnoielelhtenfaitauatftlectbnnrgbhenolsmoanofiknraonnsvtrfetcrftdhesspwecuptcrwwopaahfdoiysoaognealgfditgnrtbelfllg o ',\n", - " 'thhifrhnrtfeofeanafttyslrrortheqseimlrrusehfeetaiwiuhbsirtnroisiniiemrrhtdpyeitoitrcnbalnhrphotoierlshwtspteotosnuoyrewhhcdhcmpiotnoasahijhtneeafrtousnegmrartxuwltotbeaeprtraptseaethneishrstnrrnstdoflaughsemgaksetiunytahyutnnnntigvhewwlapfireasailfapebcpcmhelatothwslhaduluvseeoeaeutatetaehefhtlbhgrsliateeacrnhtaahgetsinnufrepuelhrtmityiuduenncogindueiaeeuehstnlhhtoaaiiefdnyauninaoeyetihefoludaoearhuryerraeratiaahgtonswwiitsaltbumxaotoleotreonotoraobctgipvaeenlyrwfeotauwadtrwenlrtfprpelaiimlrronteqwicurendarafototnretelnrpeshpmdendewtdfoheedypnsenegnetetaneeartselugdsreorobudgwhpabrnyheekttrtrehnrredfntsoliawsypnihmotocoueitypoeekrnhtannltiriueemnreapiteahohnohumouvstkedenoieewkdpgtieioiinhsefauueunbhritrhaeehieyauaussrgaiwisdsrlitphgftwilsiiisuherormcemaoiisdelvluoeirsaeoidfitnobessantfgpodrsoirtftapltrneiolytysossoetpfnaiheaogeieradmitaetahygrrraselcflertneeaehhvmhivssnaroielmixjtpssotemrfbdihnheocbtcncotnusmpoeesenhtfietooenwotneeotltrigdoimeosifhoromlfdefestuleofiirwdbyqttzofanrdintntgoaealshpdmnealpthbtsnahuolpaamnlerspdnahveliacanhsklidoacdtaehojgadieaygwetndheeneugeeeeoordnrfyyemctwnttdetgsutaotooymfwrgihoerhnrsiofratfrepoenisyasssehhtneuayiwlhtepcuaatanpeeeluahlwelaoesuriinbsaeaeaetdcgcresoropsseenoslvudedtlsiittesetfsnoegilnernoeintwweihtlwrseilhiisrtdesndhrrflgntuarsdaseytdoadasenuttcwimenartteespootytnyocsoutmugcpadleadltedosbfdlefeaxahonrstiidpreihiascscdpbhilsieallnrfhontreoratemaiagkltmrecwrdaysnsvnwldnuekornnuttiounniunihvloeitehlaefnuiattafttlcerbnneghbsnlonmaokoifonarvnsnetfrftrcethdwspspeucwtrcawpodafhsoyigooalnaeigdfrtngltebgfll o ',\n", - " 'hthirfhntrfefoeaanftytslrrorhteqesimrlrueshfeetawiiubhsitrnriosiiniermrhdtpyietotircbnalhnrpohtoeirlhswtpstetoosunoyerwhchdhmcpitonosaahjihtenearftosunemgratrxulwtobteapertarptesaehtnesihrtsnrnrstodfluaghesmgkaseituntyahuytnnnntgivhwewlpafierasialfpaebpccmehlaotthswlhdaulvuseoeeauetaettaheefthlbghrsilateeacnrhtaahgtesinnuferpulehrmtitiyudeunnocgidnueaieeeuhsntlhthoaiaiedfnyuanianoeeytiehfouldaeoaruhryrerareataiahtgonwswitisatlbuxmaootletorenootroaocbtgpivaeenlrywfoetawuadrtwelnrtpfrpleaimilrorntqewiucrednarfaottonrteelrnpehspmedndwetdofhedeypsnengeneettaeneatrseulgdrseoorbugdwhapbrynheketttrrenhrrdefnstolaiwspynimhotcoouietyopeerknhatnntliruieenmrepaitaehonhohmuousvtkdeenioeekwdptgieoiiihnseafuuuenbrhithraeheieayuasusragiwsidslrithpgfwtilisiiusheorrmecmaioisedlvuloerisaoeidiftnboesasntgfpordsoritfatplrtneoilyytsossoeptfniaheoageeiramditeatayhgrrraslecfelrteneahehvhmivssnaoriemlixtjpsostermfbidhnehoctbcnoctnsumpeoesnehtifetooenowtneeottlridgoiemosfihoormldfefsetuelofiirwbdyqttzoafnridnttngoeaalhspdnmeaplthtbsnhauoplaanmlesrpdanhvleiaacnhksliodactdaeohjgdaieyagwtendehenuegeeeeorodnfryymectnwttedtgustatooomyfwgriheorhrnsiforaftreopensiyasssehhtnueaywilhetpcauatnapeeeluhalwleaoseuriinbaseaaeetcdgcersoorpsesensolvduedltsititeestfnsoeiglnrenoientwweithlwsreihliirstdsendrhrfglntaursadsetydodaasneutctwiemnatrtesepotoytynocosutumgcapdlaedletdobsfdelfexaahnorsitidrpeiihassccdbphislielalnfrhotnreroatmeaigaklmtrewcrdyasnvsnwdlnukeornnutitounniuinhvoleiethleafniuatatftltcebrnngehbnslomnaookifnoarnvsntefrtfrctehdswpsepuctwrcwapoadfhosyiogoanlaegidftrngtlebfgll o ',\n", - " 'ithhnfrhertfaofetnafltysrrroqthemseiulrrfsehaeetuiwiihbsrrtnioiseniihmrrytdpoeitcitrlnbapnhrohotliertshwesptsotoynuohrewhhcdicmpootnhasatijhaneeofrteusnagmrurtxowltatbeteprtrapeseaethnrishrstntrnsldofhauggsemeaksntiuhytanyuttnnnhigvlewwiapfsreafailbapemcpcahelhtothwslladueuvsaeoeaeutatetfehebhtlshgrtliaceeatrnhgaahietsfnnuureprelhttmidyiunuenicogendueiaesuehhtnlahtoeaiiyfdniaunenaoiyetohefaludroeayhuraerrterahiaangtoiswwaitsultbomxaetoleotrtonoooragbctaipvleenfyrwaeotduwaetrwtnlrpfprielarimltronieqwecurrndataforotnleteenrpmshpddendewtefohpedynnseeegnatetaneeertsdlugosreurobhdgwrpabenyhtektertrrhnrnedfltsosiawiypnthmouocoyeitepoehkrnntanrltieiueemnrtapioeahhhnouumokvstnedeeoiepwkdegtiiioienhsufaubeunthrierhaeehiayaurusswgaisisdtrlifphgltwiisiiesuhmroracemsoiivdeleluoairsdeoinfitsobetsanofgpodrsfirtltapetrnyiolotysessontpfeaiheaogaiertdmiaaetrhygsrrafelctleraneevehhvmhiassneroixlmisjtpesotbmrfndihcheonbtcncotpusmsoeetenhtfienooenwotteeoiltrigdosmeooifhlromffdeuestfleowiirqdbyottzrfantdinontglaeadshpamnehlptnbtsoahualpaemnldrspvnahaelihcanisklcdoaedtaghojeadiwaygdetnnheeeeugoeeenordyrfytemctwntgdetasutootowymfhrgihoerinrsaofretfrnpoeaisyesssnhhtyeuahiwlcteptuaaeanpueelwahloelaresubiinasaeteaecdcgoressropnseevosldudeitlseittfsetesnongiloernteiniwwewhtlirseilhidsrtdesnfhrrtlgnsuaredasoytdsadatenuitcwamenerttoesptotycnyotsoucmuglpadleadoteddsbfelefhaxasonrdtiiipreshiadcscipbhelsinallorfhentrtoraiemalagketmrdcwrnayswsvnuldnrekotnnuutiounnivnihiloeltehnaeftuiattafetlcnrbnbeghosnlonmafkoironanvnsretfcftrdethswspcpeucwtroawphdafisoyagooelnafigdgrtnbltelgfl o',\n", - " 'ihthnrfhetrfafoetanflytsrrroqhtemesiurlrfeshaeetuwiiibhsrtrniioseinihrmrydtpoietctirlbnaphnroohtleirthswepststooyunoherwhchdimcpotonhsaatjihaeneorftesunamgrutrxolwtabtetpertarpeesaehtnrsihrtsntnrslodfhuaggesmekasnituhtyanuyttnnnhgivlwewipafserafialbpaempccaehlhotthswlldauevusaoeeauetaettfheebthlsghrtilaceeatnrhgaahitesfnnuuerprlehtmtidiyuneuniocgednueaieseuhhntlathoeiaiydfniuaneanoieytoehfauldreoayuhrarertreahaiantgoiwswatisutlboxmaeotletortnoooroagcbtapivleenfrywaoetdwuaertwtlnrppfrilearmiltorniqeweucrrdnatfaortonlteeernpmhspdedndweteofhpdeynsneegenaettaeneetrsdulgorseuorbhgdwrapbeynhtketetrrrnhrndeflstosaiwipyntmhoucooyieteopehrknnatnrtlieuieenmrtpaioaehhnhoumuoksvtndeeeioepkwdetgiioiiehnsuafubuentrhiehraeheiaayursuswagissidtlrifhpglwtiiisieushmorraecmsioivedleuloarisdoeiniftsboetasnogfpordsfritlatpertnyoiloytsessonptfeiaheoagaeirtmdiaeatryhgsrraflectelraenevhehvhmiassneorixmlistjpeostbrmfnidhcehontbcnoctpsumseoetnehtifenooenowtteeoitlridgosemoofihlormfdfeusetfelowiirqbdyottzrafntidnotngleaadhspanmehpltntbsohauaplaenmldsrpvanhaleihacnikslcodaetdagohjedaiwyagdtenneheeuegoeeenrodyfrytmectnwtgedtaustotoowmyfhgriheorirnsaforeftrnopeasiyesssnhhtyueahwilcetptauaenapueelwhalolearseubiinaasetaeeccdgoerssorpnesevsolddueiltsetitfestensoniglorentieniwwewthlisreihlidrstdsenfrhrtglnsaureadsotydsdaatneuictwaemnetrtosepttoycynotosucumglapdlaedoetddbsfeelfhxaasnorditiirpesihadsccibpheslinlalofrhetnrtroaimealgakemtrdwcrnyaswvsnudlnrkeotnnuuitounnivinhiolelethneaftiuatatfeltcnbrnbgehonslomnafokirnoannvsrtefctfrdtehsswpcepuctwrowaphadfiosyaogoenlafgidgtrnbtlelfgl o',\n", - " 'tihhfnrhretfoafentaftlysrrrotqhesmeilurrsfeheaetiuwihibsrrtnoiisneiimhrrtydpeoitictrnlbanphrhootilersthwseptostonyuorhewhhcdcimpootnahsaitjhnaeefortuesngamrrutxwolttabeetprrtapseeatehnirshsrtnrtnsdlofahugsgemaekstniuyhtaynutntnnihgvelwwaipfrseaafilabpecmpchaelthotwhslalduuevseaoeeauttaetefhehbtlhsgrltiaeceartnhagaheitsnfnurueperlhttmiydiuunenciogneduieaeusehthnlhatoaeiifydnaiunneaoyiethoeflaudoreahyurearretraihaagntosiwwiatslutbmoxateoloetrotnooorabgctiapvelenyfrweaotudwaterwntlrfppreilairmlrtoneiqwceurnrdaatfoortneltenerpsmhpddenedwtfeohepdynnseeegntaetnaeeretsldugsoreruobdhgwprabneyhetktretrhrnrendftlsoisawyipnhtmooucoeyitpeoekhrntnanlrtiieuemenratpieoahhhnouumovkstendeoeiewpkdgetiiioinehsfuauebunhtrirehaeehiyaauurssgwaiissdrtlipfhgtlwisiiiseuhrmorcaemosiidvelleuoiarsedoifnitosbestanfogpdorsifrttlapterniyoltoyssesotnpfaeihaeogiaerdtmiaaethrygrsraeflclternaeeevhhmvhisasnreoilxmijstpseotmbrfdnihhceobntccnotupsmoseeetnhftieonoewnoteteolitrgidomseoiofhrlomffdeeustlfeoiwirdqbytotzfrandtinnotgaleasdhpmanelhptbntsaohulapamenlrdspnvahealichansikldcoadetahgojaediawygedtnhneeeeugeoeeonrdryfyetmcwtntdgetsautootoywmfrhgiohernirsoafrtefrpnoeiasysesshnhteyuaihwltceputaaaenpeuelawhleolaersuibinsaaeetaedccgroesrsopsneeovsluddetilsiettsfetsenognileornetinwiwehwtlriselihisdrtedsnhfrrltgnusardeasyotdasdaetnuticwmaenretteospottyncyostoumcugpladeladtoedsdbfleefahxaosnrtdiipirehsiacdscpibhlesianllrofhnetrotraeimaalgktemrcdwranysswvnludnerkontnutuionuninvihlioetlehanefutiattaftelcrnbnebghsonlnomakfoiornavnnsertffctredthwssppceuwctraowpdhafsioygaoolenaifgdrgtnlbteglfl o',\n", - " 'hithrnfhterffaoeatnfyltsrrrohqteemsirulrefsheaetwuiibihstrrniiosienirhmrdytpioettcirblnahpnroohtelirhtswpesttsoouynoehrwchhdmicptoonshaajtiheaneroftseunmagrturxlowtbatepteratrpeesahetnsrihtrsnntrsoldfuhagegsmkeasintuthyaunytntnnghivwlewpiafesraifalpbaepmcceahlohttshwldlauveusoaeeuaeteatthfeetbhlgshritlaeceantrhagahtiesnfnueurplrehmttiidyuenunoicgdenuaeieesuhnhtltahoieaidyfnuianaenoeiyteohfualderoauyhrraerrteaahiatngowiswtaistulbxomaoetlteorntoorooacgbtpaivelenrfywoaetwduaretwltnrppfrlieamrilotrnqiewuecrdrnaftaotrontleerenphmspeddnwdetoefhdpeysnnegeeneatteanetersudlgroseourbghdwarpbyenhktetterrnrhrdnefsltoasiwpiynmthocuooiyetoeperhknantntrliueienemrptaiaoehnhhomuuoskvtdneeieoekpwdtegioiiihensaufuubenrthiheraheeiaayusrusawgissidltrihfpgwltiiisiueshomrreacmisoievdlueloraisodeiinftbsoeatsngofprodsrfitaltpretnoyilyotssesopntfieahoeageairmtdieaatyrhgrsralfecetlreanehvehhvmisasnoerimxlitsjpoestrbmfindhechotnbconctspumesoentehitfeonoeonwteteotilrdigoesmofoiholrmdffesuetefloiwirbqdytotzarfnitdntongelaahdspnamephlttnbshoaupalanemlsdrpavnhlaeiahcnkislocdatedaoghjdeaiywagtdenenheueegeoeernodfyrymtecntwtegdtuasttooomwyfghriehorrinsfaorfetronpesaiysesshnhtuyeawhilectpatuaneapeuelhwalloeasreuibinaaseateeccdgeorsosrpensesvoldduelitsteitefstnesoinglroenitenwiwetwhlsirehilirdstsdenrfhrgtlnasuraedstoyddsaanteucitweamntertsoepttoyycnootsuucmgalpdaledeotdbdsfeelfxhaansoridtiripeishasdccbiphselilnalforhtenrrtoamieaglakmetrwdcrynasvwsndulnkreontnuiutonuniivnhoileelthenafituaattfletcbnrngbehnoslmonaofkinroannvstreftcfrtdehsswpecputcwrwoapahdfoisyoagonelagfidtgrntbleflgl o',\n", - " 'thihfrnhrtefofaenatftylsrrrothqesemilrursefheeatiwuihbisrtrnoiisnieimrhrtdypeiotitcrnblanhprhootielrshtwspetotsonuyorehwhchdcmipotonashaijthneaefrotusengmarrtuxwlottbaeeptrratpseeathenisrhstrnrntsdolfauhgsegmakestinuythayuntnntnighvewlwapifresaaiflapbecpmchealtohtwshladluuveseoaeeuatteatehfehtblhgsrlitaeecarnthaaghetisnnfureupelrhtmtiyiduuenncoigndeuiaeeueshtnhlhtaoaieifdynauinnaeoyeitheofluadoerahuyrerarertaiahagtnoswiwitasltubmxoatoeloterontooroabcgtipaveelnyrfweoatuwdatrewnltrfppreliaimrlrotneqiwcuerndraaftootrnetlenrepshmpdednewdtfoehedpynsneegenteatneaertesludgsroeroubdghwparbnyehekttrterhnrrednftsloiaswypinhmtoocuoeiytpoeekrhntannltriiueemneraptieaohhnhoumuovsktedneoieewkpdgteiioiinhesfauueubnhrtirheaeheiyaauusrsgawiissdrltiphfgtwlisiiisuehromrceamoisidevllueoiraseodifintobsesatnfgopdrosirfttalptrenioyltyossseotpnfaiehaoegieardmtiaeathyrgrrsaelfcletrneaeehvhmhvissanroeilmxijtspsoetmrbfdinhhecobtnccontuspmoeseenthfiteoonewonteetoltirgdiomesoifohrolmfdfeesutlefoiiwrdbqyttozfarnditnntogaelashdpmnaelphtbtnsahoulpaamnelrsdpnavhelaicahnskildocadteahogjadeiaywgetdnheneeuegeeoeorndrfyyemtcwnttdegtsuatotooymwfrghioehrnrisofartferponeisaysseshhnteuyaiwhltecpuataanepeeulahwleloaesruiibnsaaeeatedccgreosrospseneosvluddetlisitetseftsneoginleroneitnwwiehtwlrsielhiisrdtesdnhrfrlgtnuasrdaesytodadsaentutciwmeanrtetesopottynycosotumucgpaldealdteodsbdfleefaxhaonsrtidipriehisacsdcpbihlseialnlrfohnterortaemiaaglktmercwdraynssvwnldunekronntutiuonnuinivhloietelhaenfuitatatftlecrbnnegbhsnolnmoakofionravnnsetrfftcretdhwssppecuwtcrawopdahfsoiygoaolneaigfdrtgnltbegfll o',\n", - " 'htihrfnhtreffoaeantfytlsrrrohtqeesmirluresfheeatwiuibhistrrnioisineirmhrdtypieotticrbnlahnprohoteilrhstwpsettosounyoerhwchhdmciptoonsahajithenaerfotsuenmgartruxlwotbtaepetrartpeseahtensirhtsrnnrtsodlfuahgesgmkaesitnutyhauyntnntngihvwelwpaifersaiaflpabepcmcehalothtswhldaluvuesoeaeueatetathefethblghsriltaeecanrthaaghteisnnfueruplerhmttiiydueunnocigdneuaieeeushnthlthaoiaeidfynuainaneoeyitehofuladeorauhyrrearretaaihatgnowsiwtiastlubxmoaoteltoernotorooacbgtpiaveelnryfwoeatwudartewlntrpfprleiamirlortnqeiwucerdnrafatotorntelernephsmpeddnwedtofehdepysnnegeenetatenaetresuldgrsoeorubgdhwaprbynehketttrernhrrdenfstloaiswpyinmhtocouoieytopeerkhnatnntlriuieenmerpatiaeohnhhomuuosvktdeneioeekwpdtgeioiiihnesafuuuebnrhtihreaheeiayausursagwisisdlrtihpfgwtliisiiusehormrecamiosiedvluleoriasoediifntboseastngfoprdosriftatlprtenoiylytossseoptnfiaehoaegeiarmdtieaatyhrgrrsalefceltrenaehevhhmvissanoreimlxitjsposetrmbfidnhehcotbncocntsupmeosenethifteooneownteetotlirdgioemsofiohorlmdffeseutelfoiiwrbdqyttozafrnidtntnogealahsdpnmaeplhttbnshaouplaanmelsrdpanvhleaiachnksilodcatdeaohgjdaeiyawgtednehneueegeeoerondfryymetcnwttedgtusattooomywfgrhieohrrnisfoarfteropnesiaysseshhntueyawihletcpautanaepeeulhawlleoaseruiibnasaeaetecdcgerosorspesnesovldudeltistietesftnseoignlreonietnwwiethwlsriehliirsdtsednrhfrgltnausradestyoddasanetuctiwemantretseoptotyyncoostuumcgapldaeldetodbsdfelefxahanosritdirpieihsascdcbpihsleilanlfrohtnerrotameiagalkmterwcdryansvswndlunkeronntuituonnuiinvholieetlheanfiutaattfltecbrnngebhnsolmnoaokfinoranvnsterftfcrtedhswspepcutwcrwaopadhfosiyogaonleagifdtrgntlbefgll o']" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "c6bs" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 23, - "text": [ - "'hithhnfrferteaofftnasltyorrreqthimserulrhfsetaeeiuiwsihbnrrtsioiienirhmrpytdtoeircitalnbrpnhtohorliewtshtesposotoynuwhredhhcpicmnootahashtijeanetofrneusragmxurttowleatbrtepptraaesenethhrisnrststrnfldoghaumgseseakuntiahyttnyuntnnvhigwlewfiapasrelfaiebapcmcplahethtolhwsuladseuveaeotaeutateefehlbhtrshgatliaceehtrnhgaasietufnnpurehrelittmudyinnuegicouendeeiahsuelhtnoahtieainyfdniauoenatiyefohedaluaroeryhuraeraterahiaongtwiswsaitbultaomxletoreototonaoortgbcvaipnleewfyrtaeoaduwwetrrtnlrpfpaiellrimntrowieqrecuarndotafnroteletpenrpmshnddetdewhefoypedennsneegtateeanesertgdlueosrburowhdgbrpahenyttekrertrrhnfnedoltswsianiypothmouoctyeieeponhkrnntairlteeiuremnitaphoeaohhnouumtkvsenedeeoidpwkiegtiiiosenhuufanbeuithraerhieehuayasrusiwgadsisitrlgfphiltwiisihesurmromaceisoilvdeoelusairideotnfiesobntsapofgsodrtfirpltanetrlyiosotyoessfntpheaigeaoraieitdmtaaegrhyasrrcfelrtleeanehvehivmhnassieroixlmpsjttesofbmrhndiochecnbttncompusesoehtenetfienootnwooteeriltoigdosmehoifmlroeffdtuesoflerwiiyqdbzottnrfantdigontalaepdsheamnthlpsnbtuoahaalplemnpdrshvnaiaelnhcaliskacdoaedtjghoieadgwayndetenhegeeueoeednoryyrfctemttwntgdetasuoootfwymihrgrhoesinrraofretfenpoyaissesstnhhayeulhiwpcteatuapeanlueelwahaoeluresnbiieasaeteagcdcsorepsroenselvosedudsitlteittfseoesnlnginoernteieiwwlwhteirsiilhtdsrndesrfhrntlgrsuasedadoytasadutenwitcnametertpoesytotocnyutsogcmudlpadleadotefdsbfeleahaxrsonidtieiprashicdcshipbielslnalhorfrentatoraiemklagretmrdcwsnaynwsvnuldorekutnnoutiiunnhvnieilohltefnaeatuifttacetlnnrbhbeglosnaonmifkoaronsnvnfretrcfthdetpswsucpercwtpoawfhdayisooagoaelndfigngrtebltllgfo'" - ] - } - ], - "prompt_number": 23 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "''.join([c[0] for c in every_nth(c6bs, 3)])" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 24, - "text": [ - "'hit'" - ] - } - ], - "prompt_number": 24 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "c6bs.find('e', 13)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 25, - "text": [ - "28" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "len(c6bs) / 978" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 26, - "text": [ - "1.6083844580777096" - ] - } - ], - "prompt_number": 26 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "c6bs[55:60]" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 27, - "text": [ - "'bnrrt'" - ] - } - ], - "prompt_number": 27 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "[(c6bs[0] + c6bs[i] + c6bs[2*i] + c6bs[3*i], i) for i in range(int(len(c6bs) / 3)) if c6bs[i] == 'e' and c6bs[2*i] == 'i' ]" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 28, - "text": [ - "[('heih', 177), ('heit', 207), ('heip', 307), ('heil', 522)]" - ] - } - ], - "prompt_number": 28 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "[c for c in chunks(c6bs, 522)]" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 29, - "text": [ - "['hithhnfrferteaofftnasltyorrreqthimserulrhfsetaeeiuiwsihbnrrtsioiienirhmrpytdtoeircitalnbrpnhtohorliewtshtesposotoynuwhredhhcpicmnootahashtijeanetofrneusragmxurttowleatbrtepptraaesenethhrisnrststrnfldoghaumgseseakuntiahyttnyuntnnvhigwlewfiapasrelfaiebapcmcplahethtolhwsuladseuveaeotaeutateefehlbhtrshgatliaceehtrnhgaasietufnnpurehrelittmudyinnuegicouendeeiahsuelhtnoahtieainyfdniauoenatiyefohedaluaroeryhuraeraterahiaongtwiswsaitbultaomxletoreototonaoortgbcvaipnleewfyrtaeoaduwwetrrtnlrpfpaiellrimntrowieqrecuarndotafnrotel',\n", - " 'etpenrpmshnddetdewhefoypedennsneegtateeanesertgdlueosrburowhdgbrpahenyttekrertrrhnfnedoltswsianiypothmouoctyeieeponhkrnntairlteeiuremnitaphoeaohhnouumtkvsenedeeoidpwkiegtiiiosenhuufanbeuithraerhieehuayasrusiwgadsisitrlgfphiltwiisihesurmromaceisoilvdeoelusairideotnfiesobntsapofgsodrtfirpltanetrlyiosotyoessfntpheaigeaoraieitdmtaaegrhyasrrcfelrtleeanehvehivmhnassieroixlmpsjttesofbmrhndiochecnbttncompusesoehtenetfienootnwooteeriltoigdosmehoifmlroeffdtuesoflerwiiyqdbzottnrfantdigontalaepdsheamnthlpsnbtuoahaalplemnpdrshvna',\n", - " 'iaelnhcaliskacdoaedtjghoieadgwayndetenhegeeueoeednoryyrfctemttwntgdetasuoootfwymihrgrhoesinrraofretfenpoyaissesstnhhayeulhiwpcteatuapeanlueelwahaoeluresnbiieasaeteagcdcsorepsroenselvosedudsitlteittfseoesnlnginoernteieiwwlwhteirsiilhtdsrndesrfhrntlgrsuasedadoytasadutenwitcnametertpoesytotocnyutsogcmudlpadleadotefdsbfeleahaxrsonidtieiprashicdcshipbielslnalhorfrentatoraiemklagretmrdcwsnaynwsvnuldorekutnnoutiiunnhvnieilohltefnaeatuifttacetlnnrbhbeglosnaonmifkoaronsnvnfretrcfthdetpswsucpercwtpoawfhdayisooagoaelndfigngrteb',\n", - " 'ltllgfo']" - ] - } - ], - "prompt_number": 29 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "c6b" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 30, - "text": [ - "'HITHH NFRFE RTEAO FFTNA SLTYO RRREQ THIMS ERULR HFSET AEEIU IWSIH BNRRT SIOII ENIRH MRPYT DTOEI RCITA LNBRP NHTOH ORLIE WTSHT ESPOS OTOYN UWHRE DHHCP ICMNO OTAHA SHTIJ EANET OFRNE USRAG MXURT TOWLE ATBRT EPPTR AAESE NETHH RISNR STSTR NFLDO GHAUM GSESE AKUNT IAHYT TNYUN TNNVH IGWLE WFIAP ASREL FAIEB APCMC PLAHE THTOL HWSUL ADSEU VEAEO TAEUT ATEEF EHLBH TRSHG ATLIA CEEHT RNHGA ASIET UFNNP UREHR ELITT MUDYI NNUEG ICOUE NDEEI AHSUE LHTNO AHTIE AINYF DNIAU OENAT IYEFO HEDAL UAROE RYHUR AERAT ERAHI AONGT WISWS AITBU LTAOM XLETO REOTO TONAO ORTGB CVAIP NLEEW FYRTA EOADU WWETR RTNLR PFPAI ELLRI MNTRO WIEQR ECUAR NDOTA FNROT ELETP ENRPM SHNDD ETDEW HEFOY PEDEN NSNEE GTATE EANES ERTGD LUEOS RBURO WHDGB RPAHE NYTTE KRERT RRHNF NEDOL TSWSI ANIYP OTHMO UOCTY EIEEP ONHKR NNTAI RLTEE IUREM NITAP HOEAO HHNOU UMTKV SENED EEOID PWKIE GTIII OSENH UUFAN BEUIT HRAER HIEEH UAYAS RUSIW GADSI SITRL GFPHI LTWII SIHES URMRO MACEI SOILV DEOEL USAIR IDEOT NFIES OBNTS APOFG SODRT FIRPL TANET RLYIO SOTYO ESSFN TPHEA IGEAO RAIEI TDMTA AEGRH YASRR CFELR TLEEA NEHVE HIVMH NASSI EROIX LMPSJ TTESO FBMRH NDIOC HECNB TTNCO MPUSE SOEHT ENETF IENOO TNWOO TEERI LTOIG DOSME HOIFM LROEF FDTUE SOFLE RWIIY QDBZO TTNRF ANTDI GONTA LAEPD SHEAM NTHLP SNBTU OAHAA LPLEM NPDRS HVNAI AELNH CALIS KACDO AEDTJ GHOIE ADGWA YNDET ENHEG EEUEO EEDNO RYYRF CTEMT TWNTG DETAS UOOOT FWYMI HRGRH OESIN RRAOF RETFE NPOYA ISSES STNHH AYEUL HIWPC TEATU APEAN LUEEL WAHAO ELURE SNBII EASAE TEAGC DCSOR EPSRO ENSEL VOSED UDSIT LTEIT TFSEO ESNLN GINOE RNTEI EIWWL WHTEI RSIIL HTDSR NDESR FHRNT LGRSU ASEDA DOYTA SADUT ENWIT CNAME TERTP OESYT OTOCN YUTSO GCMUD LPADL EADOT EFDSB FELEA HAXRS ONIDT IEIPR ASHIC DCSHI PBIEL SLNAL HORFR ENTAT ORAIE MKLAG RETMR DCWSN AYNWS VNULD OREKU TNNOU TIIUN NHVNI EILOH LTEFN AEATU IFTTA CETLN NRBHB EGLOS NAONM IFKOA RONSN VNFRE TRCFT HDETP SWSUC PERCW TPOAW FHDAY ISOOA GOAEL NDFIG NGRTE BLTLL GFO\\n'" - ] - } - ], - "prompt_number": 30 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "[i for i in range(len(c6bs)) if c6bs[i] == 'q']" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 42, - "text": [ - "[29, 503, 985]" - ] - } - ], - "prompt_number": 42 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "''.join([c[0] for c in every_nth(c6bs, 11)])" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 32, - "text": [ - "'hithhnfrfer'" - ] - } - ], - "prompt_number": 32 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "''.join([c[0] for c in every_nth(c6bs, 13)])" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 33, - "text": [ - "'hithhnfrferte'" - ] - } - ], - "prompt_number": 33 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "''.join([c[0] for c in chunks(c6bs, 121)])" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 34, - "text": [ - "'hhrnrnumeodti'" - ] - } - ], - "prompt_number": 34 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "''.join([c[0] for c in chunks(c6bs, 13)])" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 35, - "text": [ - "'harrseehthoexttnsneitetghuydoihuouocttiuedeeerrsohiaeefhifsiitiohtreiehseiiszomhhihtdtoeentencsllilrdieodhpbrlakhntnsdwon'" - ] - } - ], - "prompt_number": 35 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "'l' in ''.join([c[0] for c in chunks(c6bs, 13)])" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 36, - "text": [ - "True" - ] - } - ], - "prompt_number": 36 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "every_nth(c6bs, 11)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 38, - "text": [ - "['httmtbnoreohaegaasdetgrmlvtshtenenfiargurredrmcrpwnaegennckehmoinhutioddnrtegmranmmneieseetoetmaaoeoceyiesieaidnseewtrdtttmoaicnagariounanfcfor',\n", - " 'ieysaniepwthhtmtenoanwecheehtulueodyratleteupnuomhsnobkeitriotiibisrimeettrsetrnaprbseemfrtnaunecitettmnntwaoecsiorhdnaeeouthesatryeuhirostphat',\n", - " 'taoeerrintocaoxbsrgkyllpwaegrfieianeotwtogwwftatsenesrrdyynuekdoeeilsaoosflsaacesshtonrefwntmopldeeeeairpnpneasetentstdnrcdeaihloenknlfbnnhedee',\n", - " 'horrerhrhsypsfureshuueflsefanntgahifeeiatbfwprrehfesrpeopenravpsuewgicetaiyfoafhsjnteoihdiranadnoandmshrohcllsollsterlowtnlfxpihrtwuntthmvdralb',\n", - " 'hfruitmcthnihrrtntannwaauoethntihtaorrsoocyeaonlnoeebarloiteosweihgfhelnprinreevitdnholotiflthrhadhnturayhtuuarvtneingyipypdrrpoamsthetbinecynl',\n", - " 'nfrlusriotuctnteesuttfihlthlgpmcsiuhyawmtvrtiwdedygruhttteamhekntuapeiufopotagleetictttiuyaahascegeotogoaaeereeoelirdrttouassabrirvnvfaefftwidt',\n", - " 'fteriipthewmietpttminieeaaliauuoueoehhsxoatreiotdpttrersheinhnihhadhsssiflspirrhreooenofeqnelahadwgrworfiyaeetpsinesesacetdbosifednnnncgkrptsfl',\n", - " 'rnqhwoyaoshnjuophrganabtdebaardueaeduialniarletpeeagonrwmprineeurysiuoaegtohehtioscmnwimsdtpplvltaeynohrsetlsesetgiisusnsslfnhermcuoiaeloespoil',\n", - " 'fatfsitlrproeswthnshvpahsuhcseyelinaraieapetlqaetdtdwyhsooltodguaailriissateiylviohpeoglobddspnijyeyttoesuuwnardtiwiraaayoeeiilekwlueetoatwoogg',\n", - " 'eshsiidnloeoarlrrfeyhaptetteihinhnalaottononrrfndeelhtniuntauetfesstmlroonyataemxfeutodrfzisnlasgnurgfetelaabgoufnwlfsdmtgaldcsnlsdtialsrrsaanf',\n", - " 'rliehetbisdtnaeailstiscouareerndtytuenboolalienreneudtfaohepueiarriwrvibdeoidsehlbcsftoologhbeikhdefdwsfshphicedsolhheueocdetdltanoiltnnocuwggo']" - ] - } - ], - "prompt_number": 38 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "every_nth(c6bs, 143)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 64, - "text": [ - "['hetuehroera',\n", - " 'iteloirnnny',\n", - " 'toetsectptn',\n", - " 'hffarefaolw',\n", - " 'hreobhelygs',\n", - " 'nnhmuulaarv',\n", - " 'felxrareisn',\n", - " 'rubloytpsuu',\n", - " 'fshewaldsal',\n", - " 'ertthsesesd',\n", - " 'rarodrehseo',\n", - " 'tgsrguaesdr',\n", - " 'emhebsnatae',\n", - " 'axgoriemndk',\n", - " 'ouatpwhnhou',\n", - " 'frtoagvthyt',\n", - " 'ftlthaehatn',\n", - " 'ttioedhlyan',\n", - " 'noannsipeso',\n", - " 'awcayivsuau',\n", - " 'sleotsmnldt',\n", - " 'leeotihbhui',\n", - " 'tahretntiti',\n", - " 'ytttkrauweu',\n", - " 'obrgrlsopnn',\n", - " 'rrnbegsacwn',\n", - " 'rthcrfihtih',\n", - " 'regvtpeaetv',\n", - " 'epaarhraacn',\n", - " 'qpairioltni',\n", - " 'ttsphlipuae',\n", - " 'hrinntxlami',\n", - " 'iaelfwlepel',\n", - " 'matenimmeto',\n", - " 'seueeipnaeh',\n", - " 'esfwdsspnrl',\n", - " 'renfoijdltt',\n", - " 'unnylhtrupe',\n", - " 'leprtetseof',\n", - " 'rtutsseheen',\n", - " 'hhrawusvlsa',\n", - " 'fheesronwye',\n", - " 'srhoimfaata',\n", - " 'eiraarbihot',\n", - " 'tsednomaatu',\n", - " 'anluimreooi',\n", - " 'eriwyahlecf',\n", - " 'estwpcnnlnt',\n", - " 'itteoedhuyt',\n", - " 'usmttiicrua',\n", - " 'iturhsoaetc',\n", - " 'wrdrmoclsse',\n", - " 'snytoihinot',\n", - " 'ifinulesbgl',\n", - " 'hlnlovckicn',\n", - " 'bdnrcdnaimn',\n", - " 'nouptebceur',\n", - " 'rgefyotdadb',\n", - " 'rhgpeetoslh',\n", - " 'taiailnaapb',\n", - " 'sucieuceeae',\n", - " 'imoeesodtdg',\n", - " 'ogulpamtell',\n", - " 'iseloipjaeo',\n", - " 'ienrnruggas',\n", - " 'esdihishcdn',\n", - " 'neemkdeodoa',\n", - " 'iaenresicto',\n", - " 'rkitnooesen',\n", - " 'huarnteaofm',\n", - " 'mnhotnhdrdi',\n", - " 'rtswaftgesf',\n", - " 'piuiiiewpbk',\n", - " 'yaeerenasfo',\n", - " 'thlqlseyrea',\n", - " 'dyhrtotnolr',\n", - " 'ttteebfdeeo',\n", - " 'otncenienan',\n", - " 'enouitetshs',\n", - " 'iyaausneean',\n", - " 'ruhrraonlxv',\n", - " 'cntnepohvrn',\n", - " 'itidmoteosf',\n", - " 'tneonfngsor',\n", - " 'anatigweene',\n", - " 'lviatsoedit',\n", - " 'nhnfaoouudr',\n", - " 'biynpdtedtc',\n", - " 'rgfrhreosif',\n", - " 'pwdooteeiet',\n", - " 'nlntefretih',\n", - " 'heieaiidlpd',\n", - " 'twalorlntre',\n", - " 'ofuehptoeat',\n", - " 'hiothlorisp',\n", - " 'oaepntiyths',\n", - " 'rpneoagytiw',\n", - " 'laanundrfcs',\n", - " 'istrueofsdu',\n", - " 'eripmtscecc',\n", - " 'weymtrmtosp',\n", - " 'tleskleeehe',\n", - " 'sffhvyhmsir',\n", - " 'haonsiotnpc',\n", - " 'tihdeoitlbw',\n", - " 'eeednsfwnit',\n", - " 'sbdeeomngep',\n", - " 'paatdtltilo',\n", - " 'opldeyrgnsa',\n", - " 'scueeoodolw',\n", - " 'omawoeeeenf',\n", - " 'tcrhisftrah',\n", - " 'opoedsfanld',\n", - " 'ylefpfdstha',\n", - " 'narowntueoy',\n", - " 'uhyyktuoiri',\n", - " 'wehpipeoefs',\n", - " 'htueehsoiro',\n", - " 'rhrdgeotweo',\n", - " 'etaetaffwna',\n", - " 'doeniilwltg',\n", - " 'hlrnigeywao',\n", - " 'hhasiermhta',\n", - " 'cwtnoawitoe',\n", - " 'pseesoiherl',\n", - " 'iureeririan',\n", - " 'clagnaygrid',\n", - " 'mahthiqrsef',\n", - " 'ndiauedhimi',\n", - " 'osatuiboikg',\n", - " 'oeoeftzelln',\n", - " 'tuneadoshag',\n", - " 'avganmtitgr',\n", - " 'hetnbttndrt',\n", - " 'aaweeanrsee',\n", - " 'seisuarrrtb',\n", - " 'hoseiefanml',\n", - " 'ttwrtgaodrt',\n", - " 'iasthrnfedl',\n", - " 'jeagrhtrscl',\n", - " 'euidayderwg',\n", - " 'attleaitfsf',\n", - " 'nabursgfhno']" - ] - } - ], - "prompt_number": 64 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "[(q, u) for q in [i for i in range(len(c6bs)) if c6bs[i] == 'q'] for u in [i for i in range(len(c6bs)) if c6bs[i] == 'u'] if abs(q-u) < 13]" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 44, - "text": [ - "[(29, 37), (503, 507), (985, 973)]" - ] - } - ], - "prompt_number": 44 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "every_nth(c6bs, 13)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 54, - "text": [ - "['harrseehthoexttnsneitetghuydoihuouocttiuedeeerrsohiaeefhifsiitiohtreiehseiiszomhhihtdtoeentencsllilrdieodhpbrlakhntnsdwon',\n", - " 'iorhiniterttuehfeywehueagrieaaernltvanmalddeoptwukuongaiwpuldsrsedrheseenlfoonnavsoenwtsnhelbdetnwhnotsgoarieayuvalanetog',\n", - " 'tfefhiroseaorphlaufbtvetaenehudagtoaelnreeeasarsorrhetneghrveapoamcvrocsotmftttankinonfiphawiclegwttycyctxaengntnenovtpar',\n", - " 'hfqsbrchpdhftprdkniaoeflahnitoaetatiortnttnnrhricnehdibeaimdopltitfeofnooolltahlaaehrtwnoataisviildltntmersltrwniannnpogt',\n", - " 'httenhiooharttioutaplaeisruaielrwoopaprdpdnebehatnmneiehdlretotygaehibbetirenllpicaeygyryyuheootnwsgaaoufshsaesnetrmfsaoe',\n", - " 'nnhtrmtrshsnorsgnnpchehaieehenuaimnndfooeessunnnytnoeiuustoonfaoealixmthngorrapladdgydmraeaaarstohrrsmtddoilttvoiubirwwab',\n", - " 'faiarralochewanhtnamwolcelgsaaatsxalupwtnwneryfieaiuooiaiwmefgneaervlrttwdewfeseeogereiaiuposeefetnsaeolsncnomnulihfesfel',\n", - " 'rsmetplitptularaivscstbetiiuitrewloewaiarherotnyiituistysialisesogtmmhneoofiapnmlawefthosleeapdsredudtcpbidarrutofbktuhlt',\n", - " 'flsesyneoiiseesuahrpuaheutceniorseoewiefpeetwteperamdehaiicueotsrrlhpncnosfindbnneaucarfshalesuenieauenafdcladlihteorcdnl',\n", - " 'eteiitbwycjrastmhiellethftolyyeaatrweeqnmfgghedoelptpnrstsessdrfahensdoetmdytstphdyetsgreinutrdotrsstrydetshicdiltgacpadl',\n", - " 'ryruodrtnmeatesgyglaaurtnmuhferhiotftlrrsotddkotpthkwharriiaorlniyeajimteetqdhudctnoeureswlreoseesreetullihoewoutalrfeyfg',\n", - " 'touiitpsunagbntstwfhdtsrnuetdfyitrgyrleohyalgrlhoeovkueulhsibtyteaastopfehudieorajdemohtspueaeisiifdnpteeeirmsrnecootriif',\n", - " 'erlwionhwonmreretlaesahnpdnnnohabebrrrctnptubetmneesiursgeornfipisnstcuiroebgaaslgeetooftcesgntneihawosaaipfknenfesnhcsgo']" - ] - } - ], - "prompt_number": 54 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "[''.join(transpose(l, (3, 11, 0, 1, 2, 4, 5, 6,7, 8, 9, 10, 12))) for l in chunks(c6bs, 13)]" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 61, - "text": [ - "['hthithnfrfere',\n", - " 'foaoftnasltyr',\n", - " 'qurrethimserl',\n", - " 'sirhfetaeeiuw',\n", - " 'bisihnrrtsioi',\n", - " 'rtenihmrpytdo',\n", - " 'cpeiritalnbrn',\n", - " 'hshtoorliewth',\n", - " 'putesosotoynw',\n", - " 'dnhrehhcpicmo',\n", - " 'haotaashtijen',\n", - " 'fgetorneusram',\n", - " 'tbxurtowleatr',\n", - " 'pnteptraaesee',\n", - " 'rtthhisnrstsr',\n", - " 'dsnfloghaumge',\n", - " 'ktseauntiahyt',\n", - " 'nwnyutnnvhigl',\n", - " 'ifewfapasrela',\n", - " 'ahiebpcmcplae',\n", - " 'odthtlhwsulas',\n", - " 'eteuvaeotaeua',\n", - " 'fsteeehlbhtrh',\n", - " 'lrgatiaceehtn',\n", - " 'anhgasietufnp',\n", - " 'huurerelittmd',\n", - " 'neyinuegicoun',\n", - " 'itdeeahsuelhn',\n", - " 'tdoahieainyfn',\n", - " 'ofiauenatiyeo',\n", - " 'ayhedluaroerh',\n", - " 'eiurarateraha',\n", - " 'ttongwiswsaib',\n", - " 'arultomxletoe',\n", - " 'tgotoonaoortb',\n", - " 'iycvapnleewfr',\n", - " 'ortaeaduwwetr',\n", - " 'rltnlpfpaielr',\n", - " 'teimnrowieqrc',\n", - " 'nouardotafnrt',\n", - " 'thelepenrpmsn',\n", - " 'tyddedewhefop',\n", - " 'naedensneegtt',\n", - " 'nleeaesertgdu',\n", - " 'rgeosburowhdb',\n", - " 'hrrpaenytteke',\n", - " 'rlrtrhnfnedot',\n", - " 'ihswsaniypotm',\n", - " 'coouotyeieepn',\n", - " 'nehkrntairlte',\n", - " 'eoiurmnitaphe',\n", - " 'hvaohnouumtks',\n", - " 'dkeneeeoidpwi',\n", - " 'iuegtiiosenhu',\n", - " 'befaneuithrar',\n", - " 'euhiehuayasrs',\n", - " 'aliwgdsisitrg',\n", - " 'ihfphltwiisie',\n", - " 'mssurromaceio',\n", - " 'diilveoelusar',\n", - " 'obidetnfieson',\n", - " 'pttsaofgsodrf',\n", - " 'lyirptanetrli',\n", - " 'ttosoyoessfnp',\n", - " 'ieheageaoraii',\n", - " 'tatdmaaegrhys',\n", - " 'farrcelrtleen',\n", - " 'esehvhivmhnas',\n", - " 'otierixlmpsjt',\n", - " 'foesobmrhndic',\n", - " 'nphecbttncomu',\n", - " 'ofsesehteneti',\n", - " 'oeenotnwooter',\n", - " 'ohiltigdosmeo',\n", - " 'luifmroeffdte',\n", - " 'ldsoferwiiyqb',\n", - " 'tizotnrfantdg',\n", - " 'aeontlaepdsha',\n", - " 'homntlpsnbtua',\n", - " 'lrhaaplemnpds',\n", - " 'aahvniaelnhcl',\n", - " 'ajiskcdoaedtg',\n", - " 'edhoiadgwayne',\n", - " 'hetenegeeueoe',\n", - " 'rmdnoyyrfctet',\n", - " 'totwngdetasuo',\n", - " 'whotfymihrgro',\n", - " 'ntesirraofref',\n", - " 'osenpyaissest',\n", - " 'apnhhyeulhiwc',\n", - " 'tuteauapeanle',\n", - " 'aeelwhaoelurs',\n", - " 'ianbieasaeteg',\n", - " 'secdcorepsron',\n", - " 'viselosedudst',\n", - " 'isltettfseoen',\n", - " 'iilngnoerntee',\n", - " 'liiwwwhteirsi',\n", - " 'dflhtsrndesrh',\n", - " 'ldrntgrsuasea',\n", - " 'tndoyasadutew',\n", - " 'npitcameterto',\n", - " 'ttesyotocnyus',\n", - " 'meogcudlpadla',\n", - " 'eedotfdsbfela',\n", - " 'rehaxsonidtii',\n", - " 'siprahicdcshp',\n", - " 'lrbieslnalhof',\n", - " 'tmrenatoraiek',\n", - " 'rslagetmrdcwn',\n", - " 'wraynsvnuldoe',\n", - " 'nnkutnoutiiun',\n", - " 'iehvneilohltf',\n", - " 'acnaetuifttae',\n", - " 'notlnrbhbegls',\n", - " 'nonaomifkoarn',\n", - " 'ntsnvfretrcfh',\n", - " 'prdetswsucpec',\n", - " 'oiwtpawfhdays',\n", - " 'giooaoaelndfg',\n", - " 'tfngrebltllgo']" - ] - } - ], - "prompt_number": 61 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/2013-challenge7.ipynb b/2013-challenge7.ipynb deleted file mode 100644 index df220ab..0000000 --- a/2013-challenge7.ipynb +++ /dev/null @@ -1,266 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:f1a5a36cab6e0c7ddd88d11606576a341e061c4e87c77676dfffeff0c585a596" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import matplotlib.pyplot as plt\n", - "import pandas as pd\n", - "import collections\n", - "import string\n", - "%matplotlib inline\n", - "\n", - "from cipherbreak import *" - ], - "language": "python", - "metadata": {}, - "outputs": [], - "prompt_number": 1 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "with open('2013/mona-lisa-words.txt') as f:\n", - " mlwords = [line.rstrip() for line in f]\n", - "mltrans = collections.defaultdict(list)\n", - "for word in mlwords:\n", - " mltrans[transpositions_of(word)] += [word]\n", - "c7a = open('2013/7a.ciphertext').read()\n", - "c7b = open('2013/7b.ciphertext').read()" - ], - "language": "python", - "metadata": {}, - "outputs": [], - "prompt_number": 2 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "c1a = open('2013/1a.ciphertext').read()\n", - "c1b = open('2013/1b.ciphertext').read()\n", - "c2a = open('2013/2a.ciphertext').read()\n", - "c2b = open('2013/2b.ciphertext').read()\n", - "c3a = open('2013/3a.ciphertext').read()\n", - "c3b = open('2013/3b.ciphertext').read()\n", - "c4a = open('2013/4a.ciphertext').read()\n", - "c4b = open('2013/4b.ciphertext').read()\n", - "c5a = open('2013/5a.ciphertext').read()\n", - "c5b = open('2013/5b.ciphertext').read()\n", - "\n", - "p1a = caesar_decipher(c1a, 8)\n", - "p1b = caesar_decipher(c1b, 14)\n", - "p2a = affine_decipher(c2a, 3, 3, True)\n", - "p2b = caesar_decipher(c2b, 6)\n", - "p3a = affine_decipher(c3a, 7, 8, True)\n", - "p3b = keyword_decipher(c3b, 'louvigny', 2)\n", - "p4a = keyword_decipher(c4a, 'montal', 2)\n", - "p4b = keyword_decipher(c4b, 'salvation', 2)\n", - "p5a = keyword_decipher(c5a, 'alfredo', 2)\n", - "p5b = vigenere_decipher(sanitise(c5b), 'florence')" - ], - "language": "python", - "metadata": {}, - "outputs": [], - "prompt_number": 3 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "freqs_7a = pd.Series(collections.Counter([l.lower() for l in c7a if l in string.ascii_letters]))\n", - "freqs_7a.plot(kind='bar')" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 4, - "text": [ - "" - ] - }, - { - "metadata": {}, - "output_type": "display_data", - "png": "iVBORw0KGgoAAAANSUhEUgAAAXIAAAD+CAYAAAAnIY4eAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHFlJREFUeJztnX2wJFV5xn8XVvnave7eii6fZpCIK5aKImhKKQdkCTG6\nUBoT8WsvViwjUbRiGVhMAlgVssHyozQxiR+wSwQUlRCwhLCCrSiIUXeWhWX5ihtZUruGLLq7GhHl\n5o/Tw/SdOz3d58x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KMiq24MyFL1pKolvfgPsEch9sPbk0ft9QZ1LCo2yMXogpOK64i\nImd/3HdlP6TYuhFCCCGEEEIIIYQQQgghhBBCCCGEEEIU8v9Y2rNBijsoswAAAABJRU5ErkJggg==\n", - "text": [ - "" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "freqs_7b = pd.Series(collections.Counter([l.lower() for l in c7b if l in string.ascii_letters]))\n", - "freqs_7b.plot(kind='bar')" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 10, - "text": [ - "" - ] - }, - { - "metadata": {}, - "output_type": "display_data", - "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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F72\nJ5xN3kW4e+mBhM83bhiBV63j+W8Ije+JFM3phBz/mcCXgS+R/jf8cULz/hVwGyG+uZ3QpAexAbiG\ncHD5LeCfCAf6Nw3QvBd4G+EA8znCydwThAPVA/Q/M39nsv4WRwF/Abw9pUYhKsclhAO1qC5/R/w3\nG1cA7yGc7D2esiyEE6Ru3paiuQD47T6v9frwdGh4OiMXogibCWc8o4yLRPl4D+HdzFGEfePW5HHz\nOIsaNuPOyIUYFiemLyImkH0Jn4/9kPToRgghhBBCCCGEEEIIIYQQQgghhBBCCJGZ/wemtgbT3dcN\nuwAAAABJRU5ErkJggg==\n", - "text": [ - "" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "c7a" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 5, - "text": [ - "'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'" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "vigenere_frequency_break(sanitise(c7a))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 6, - "text": [ - "('hp', -2071.4841308636614)" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "' '.join(segment(vigenere_decipher(sanitise(c7a), 'hp')))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 7, - "text": [ - "'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'" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "railfence_break(sanitise(c7b))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 8, - "text": [ - "(2, -4150.8334806309485)" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "' '.join(segment(railfence_decipher(sanitise(c7b), 2)))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 9, - "text": [ - "'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'" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "len(sanitise(c7b))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 18, - "text": [ - "1304" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/2013/2013-challenge6.ipynb b/2013/2013-challenge6.ipynb new file mode 100644 index 0000000..e4229bb --- /dev/null +++ b/2013/2013-challenge6.ipynb @@ -0,0 +1,1444 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import os,sys,inspect\n", + "currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))\n", + "parentdir = os.path.dirname(currentdir)\n", + "sys.path.insert(0,parentdir) \n", + "\n", + "import matplotlib.pyplot as plt\n", + "import pandas as pd\n", + "import collections\n", + "import string\n", + "%matplotlib inline\n", + "\n", + "from cipherbreak import *\n", + "with open('mona-lisa-words.txt') as f:\n", + " mlwords = [line.rstrip() for line in f]\n", + "mltrans = collections.defaultdict(list)\n", + "for word in mlwords:\n", + " mltrans[transpositions_of(word)] += [word]\n", + "c6a = open('6a.ciphertext').read()\n", + "c6b = open('6b.ciphertext').read()" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "c1a = open('1a.ciphertext').read()\n", + "c1b = open('1b.ciphertext').read()\n", + "c2a = open('2a.ciphertext').read()\n", + "c2b = open('2b.ciphertext').read()\n", + "c3a = open('3a.ciphertext').read()\n", + "c3b = open('3b.ciphertext').read()\n", + "c4a = open('4a.ciphertext').read()\n", + "c4b = open('4b.ciphertext').read()\n", + "c5a = open('5a.ciphertext').read()\n", + "c5b = open('5b.ciphertext').read()\n", + "\n", + "p1a = caesar_decipher(c1a, 8)\n", + "p1b = caesar_decipher(c1b, 14)\n", + "p2a = affine_decipher(c2a, 3, 3, True)\n", + "p2b = caesar_decipher(c2b, 6)\n", + "p3a = affine_decipher(c3a, 7, 8, True)\n", + "p3b = keyword_decipher(c3b, 'louvigny', 2)\n", + "p4a = keyword_decipher(c4a, 'montal', 2)\n", + "p4b = keyword_decipher(c4b, 'salvation', 2)\n", + "p5a = keyword_decipher(c5a, 'alfredo', 2)\n", + "p5b = vigenere_decipher(sanitise(c5b), 'florence')" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYYAAAD+CAYAAAA+hqL9AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHrNJREFUeJzt3X+cXXV95/HXG7KJESJhkIYAAVJ3EOLqQ40muv7YcZGQ\n7iqwWwphtzC1sz4qUdF9dPswcVcyU7oW3G0pdhdqLUISlSYVhdjFMGPira4aBhE0JaZJVsdNBjK4\ngwna+iMpn/3jfIc553J/Z37cTN7Px+M+7vd8z/f7Pd9z58z93PP9nnuuIgIzM7MxJ013B8zMrL04\nMJiZWYEDg5mZFTgwmJlZgQODmZkVODCYmVlB3cAgaa2kJyTtlPRZSXM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vr0T+KykU8jORJ6X\ne81OBt4l6QfAL8a7UX2MfTLl+jWmg2yY9GFJk9GvbrIgPIvim/Xna9R5C82/ZneT7UP+uKk2bDnm\ndVQ4ntNrVG17rRyfl9VZX244DWdcCtyS5lyqfTD9LNlQ1S2Mf8IG+ElEjNbaSNmxcBJZgGt0fuFp\n4CAwSvaBqdZ2tpEFnW+SnWm8LiKertP+UeBnZKMaLwK+HxF1g31EPCfpIDBCFmBPBz4n6csR8XtV\n6hwFVkv6LbIzwuaGo9JpxoyTxu5eAmyNiF9WWH9BjeoRET+s0fYryCJyANsjYle1srk6SxmfRPxq\nRDzWQJ2Lyb7DAbAtJulS3TSZ+qbUt69HRMWzjDqvGRExNNF9a8RU90vS3wEXRRP/PNX6WK9v6bh5\nfiK53nHT6mvRyvHZjPRBYyXw3YjYK2kh8MqI6J/g7VyQWzwKjER2n7VadVYDV5MFkb8CNtX7n5Z0\nG1kQ/jnwDbK5zW+OjVhUqfMdYAtZoHop8AngFxHxGzXqfAC4nixY/QXZ0PgRZRen7I2IF5w5SPqd\niPhEbnkp8N6I+O1a+1RoY6YGBrPJIulu4L9HxBPT3Rc7dpL+kCwYVLwKr07deWRDPP+J7KrBOTXK\nvj4iHinLuz4iNtSo0wd8qtIHVUlLGvlQ2goHBrMmSdoNvIxskm/ah9Js6kl6P9kZ1lKy4+BrZGd0\n26e1YxNkps0xmE2FldPdAZt2LyKbb/x2vaGq45HPGMzMrGCmXa5qZmbHyIHBzMwKHBjMzKzAgcHM\nzAocGMzMrOD/A5ZV4vqjDJn1AAAAAElFTkSuQmCC\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "freqs = pd.Series(english_counts)\n", + "freqs.plot(kind='bar')" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "" + ] + }, + "execution_count": 6, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/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js6kl6P9kZ1lKy4+BrZGd0\n26e1YxNkps0xmE2FldPdAZt2LyKbb/x2vaGq45HPGMzMrGCmXa5qZmbHyIHBzMwKHBjMzKzAgcHM\nzAocGMzMrOD/A5ZV4vqjDJn1AAAAAElFTkSuQmCC\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "c6af = frequencies(sanitise(c6a))\n", + "c6af = pd.Series(english_counts)\n", + "c6af.plot(kind='bar')" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "" + ] + }, + "execution_count": 7, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXYAAAD+CAYAAAAuyi5kAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAFvRJREFUeJzt3X+wXOVh3vHv40swxkAIUwKxUHKpUQLyOBNMrCixPb7T\nkMmNQsCTNMFqGho6tZXYMjhDPYrcJlx5pkmYxrFLaEHBsgdie9TEjl05g00dkzUuoTLit0FipNpq\nBS7YQ4xj0RBL0dM/zhGsVrt79u7du9r73uczs3P3nPO+57zn3HOfffc9Z/fKNhERUY6XnegGRETE\naCXYIyIKk2CPiChMgj0iojAJ9oiIwiTYIyIK0xjskmYl7ZG0V9KmLssvlHSvpBckXddl+ZSkByV9\nZlSNjoiI3voGu6Qp4CZgFlgNrJd0UUexZ4F3AX/YYzXXAo8DuWE+ImIMmnrsa4B9tvfbPgRsB65o\nL2D7m7Z3AYc6K0s6D1gHfAjQaJocERH9NAX7CuBA2/ST9bxBfQB4D3Bknu2KiIghNQX70MMnki4D\nvmH7QdJbj4gYm5Malj8FrGybXknVax/ETwGXS1oHnAKcIel221e1F5KUsfeIiCHY7tppbuqx7wJW\nSZqWdDJwJbCjR9ljNmD7vbZX2j4feCtwV2eot5Xt+rj++ut7LjuRdSa1Xakzue1Knclt11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LObGjXcSZtjP1A/bbl08DnJX0L2N+tYH3iQLUP90g6QDW2+IPAEw3beT/VSf1n\nVK++v0z1S+7lduDLkv6iLv8W6q9R6OOPqcLp+yX9HvDPgX/fraDtG4EbJd1i+zca1tvpY8BOSZ+u\n2/YLwMclvZLqncCL2o7ZFHC1pK8B//BSM3qPMS+2trYddRbVUOFOSaNu27+iehE9iWPD9i/61HkT\n8z9mH6Fqf/t5023Ir92P0+V8ro9Pr+0Nc37+bMPybp6qhwR+BviD+rpDt87hx6mGev6Al3q4AN+x\n/Wy/DXScBy+jeoEadHz9G8DTwLNUHZ5+2/kC1YvGvVQ9/R+3/Y2G9R8G/p5qVOEU4Ku2G1+sbR+R\n9DTwDNWL4/cBn5D0V7bf06POYeAdkn6d6h3Z/IZz6m7+xKnHrs4APmf7u12WT/epbtv/u2H9r6F6\nVTRwl+3HG8pfwksXwe62/WC/8nWdi4Cfrie/4EW63bO+GPiGum332O7ay284ZtjeP+q2DWqcbZP0\nBHCh53Hy92pfU7vq8+bFC6FN582wx2GY83O+6s7CLPCI7b2SfgB4re3/PsJtTLdNHgaecfVdU/3q\nvAP4FaoXgT8H/usAf88foHoRfQH4G6pre/ceHTHoUedhqs/tvA/4J8BW4B9s/3KfOtcCV1G92HyI\namj5kKqbK/baPq7nLmmD7a1t05cA77T9r/vt0zHrmNRgj1gskj4C/KHtx050W2LhJP0+VZh3vQus\noe7pVEMk/5bqrrWX9yn7etv3dcy7yvbtfepsAT7craMpaXXTC9CwEuyx7Kj62otXU12kmoihqBgv\nSe+ieodzCdV58CWqd1R3ndCGjcikjbFHjMPsiW5AnHCnUF1re6BpqGcpSo89IqIwk3a7Y0RELFCC\nPSKiMAn2iIjCJNgjIgqTYI+IKMz/BxNrCdCSzPmWAAAAAElFTkSuQmCC\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "freqs = pd.Series(normalised_english_counts)\n", + "freqs.plot(kind='bar')" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYYAAAD+CAYAAAA+hqL9AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHrNJREFUeJzt3X+cXXV95/HXG7KJESJhkIYAAVJ3EOLqQ40muv7YcZGQ\n7iqwWwphtzC1sz4qUdF9dPswcVcyU7oW3G0pdhdqLUISlSYVhdjFMGPira4aBhE0JaZJVsdNBjK4\ngwna+iMpn/3jfIc553J/Z37cTN7Px+M+7vd8z/f7Pd9z58z93PP9nnuuIgIzM7MxJ013B8zMrL04\nMJiZWYEDg5mZFTgwmJlZgQODmZkVODCYmVlB3cAgaa2kJyTtlPRZSXMkdUgakLRHUr+k+WXl90ra\nLWlFLn9pamOvpNtz+XMkbUr5OySdn1vXnbaxR9L1E7njZmZWWc3AIOkC4N3AayPilcDJwCpgDTAQ\nERcC29IykpYA1wBLgJXAHZKUmrsT6ImITqBT0sqU3wOMpvzbgFtTWx3ATcCy9FiXD0BmZjY56p0x\nPAscAV4saRbwYuBJ4HJgfSqzHrgypa8A7o2IIxExBOwDlktaCMyLiMFUbkOuTr6t+4BLUvoyoD8i\nDkXEIWCALNiYmdkkqhkYIuIZ4I+A/0sWEA5FxACwICJGUrERYEFKnw0cyDVxADinQv5wyic970/b\nOwoclnRGjbbMzGwS1RtKehnwQeACsjfqUyX9Zr5MZPfU8H01zMxmiFl11r8O+EZEjAJI+jzwRuCg\npLMi4mAaJno6lR8GFuXqn0v2SX84pcvzx+qcBzyZhqtOi4hRScNAV67OImB7eQclOSiZmbUgIlQp\nv94cw27gDZLmpknktwO7gC8C3alMN3B/Sm8BVkmaLWkx0AkMRsRB4FlJy1M71wEP5OqMtXUV2WQ2\nQD+wQtJ8SacDlwIPVdm5io9169ZVXTdRdaZiG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Y6YGBrPJIulu4L9HxBPT3Rc7dpL+kCwYVLwKr07deWRDPP+J7KrBOTXK\nvj4iHinLuz4iNtSo0wd8qtIHVUlLGvlQ2goHBrMmSdoNvIxskm/ah9Js6kl6P9kZ1lKy4+BrZGd0\n26e1YxNkps0xmE2FldPdAZt2LyKbb/x2vaGq45HPGMzMrGCmXa5qZmbHyIHBzMwKHBjMzKzAgcHM\nzAocGMzMrOD/A5ZV4vqjDJn1AAAAAElFTkSuQmCC\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "c6bf = frequencies(sanitise(c6b))\n", + "c6bf = pd.Series(english_counts)\n", + "c6bf.plot(kind='bar')" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'CPYYL GVVIR PDDVU BCSUP QOWPW SYBYP ODBCS PBBPR CSIOZ PTSTV HYVTW PYOZC OGCRV TTPUI BVGVS YOUGZ ZSRYS BPYLY SHSYY OUGBV BCSWP OUBOU GPUIR DSPYD LTSUB OVUOU GZPYP ZSSTZ DONSB CSLNU SJPAV EBBCS ZRPTV EYHYO SUIDL ZZVHH ORSYJ PZWDP UUOUG BVWED DBCSL WORNS IEWCS YBYPO DBCSU OGCBP HBSYZ CSJSU BTOZZ OUGAE BLVER PUYSP IPAVE BBCPB OUBCS OYYSW VYBZB ODDUV MVLVU GSBBO UGPRR SZZBV BCSVY OGOUP DTOZZ TVUPO UBCSG PDDSY LPUIO PTASG OUUOU GBVBC OUNJS TOGCB USSIB VYVDD VEBPA DPRNA PGMVA LVEJP UBBVI VOBVY ZCPDD OALBC SJPLO JPZZE YWYOZ SIALB COZYS WVYBB CSVBC SYWPW SYZJS CPFSH YVTBC SUPQO ZPBBC OZDSF SDPYS SURYL WBSIE ZOUGA OHOIV YWDPL HPOYZ BLDSR OWCSY ZBCOZ VUSOZ UBTPL ASBCS ROWCS YRDSY NJPZV HHIEB LBCPB IPLJS GVBDE RNL\\n'" + ] + }, + "execution_count": 9, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "c6a" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "1573" + ] + }, + "execution_count": 10, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "len(sanitise(c6b))" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "c6as = sanitise(c6a)" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "Counter({'ad': 1,\n", + " 'ae': 1,\n", + " 'al': 3,\n", + " 'ao': 1,\n", + " 'ap': 1,\n", + " 'as': 2,\n", + " 'av': 2,\n", + " 'bb': 7,\n", + " 'bc': 21,\n", + " 'bd': 1,\n", + " 'bi': 1,\n", + " 'bl': 3,\n", + " 'bo': 5,\n", + " 'bp': 4,\n", + " 'bs': 2,\n", + " 'bt': 2,\n", + " 'bu': 1,\n", + " 'bv': 8,\n", + " 'by': 2,\n", + " 'bz': 1,\n", + " 'cb': 2,\n", + " 'co': 5,\n", + " 'cp': 5,\n", + " 'cr': 1,\n", + " 'cs': 20,\n", + " 'db': 3,\n", + " 'dd': 6,\n", + " 'de': 1,\n", + " 'dl': 2,\n", + " 'do': 2,\n", + " 'dp': 4,\n", + " 'ds': 5,\n", + " 'dt': 1,\n", + " 'du': 1,\n", + " 'dv': 2,\n", + " 'eb': 5,\n", + " 'ed': 1,\n", + " 'ej': 1,\n", + " 'er': 2,\n", + " 'ew': 1,\n", + " 'ey': 2,\n", + " 'ez': 1,\n", + " 'fs': 2,\n", + " 'ga': 2,\n", + " 'gb': 3,\n", + " 'gc': 3,\n", + " 'gm': 1,\n", + " 'go': 2,\n", + " 'gp': 3,\n", + " 'gs': 1,\n", + " 'gv': 3,\n", + " 'gz': 2,\n", + " 'hb': 1,\n", + " 'hh': 2,\n", + " 'hi': 1,\n", + " 'ho': 2,\n", + " 'hp': 1,\n", + " 'hs': 1,\n", + " 'hy': 3,\n", + " 'ia': 1,\n", + " 'ib': 2,\n", + " 'id': 1,\n", + " 'ie': 3,\n", + " 'io': 2,\n", + " 'ip': 2,\n", + " 'ir': 2,\n", + " 'iv': 2,\n", + " 'jp': 6,\n", + " 'js': 4,\n", + " 'la': 1,\n", + " 'lb': 3,\n", + " 'ld': 1,\n", + " 'lg': 1,\n", + " 'lh': 1,\n", + " 'lj': 1,\n", + " 'ln': 1,\n", + " 'lo': 1,\n", + " 'lp': 1,\n", + " 'lt': 1,\n", + " 'lv': 3,\n", + " 'lw': 2,\n", + " 'ly': 1,\n", + " 'lz': 1,\n", + " 'mv': 2,\n", + " 'na': 1,\n", + " 'nj': 2,\n", + " 'nl': 1,\n", + " 'ns': 2,\n", + " 'nu': 1,\n", + " 'oa': 1,\n", + " 'ob': 1,\n", + " 'od': 3,\n", + " 'og': 4,\n", + " 'oh': 1,\n", + " 'oi': 1,\n", + " 'oj': 1,\n", + " 'on': 1,\n", + " 'op': 1,\n", + " 'or': 2,\n", + " 'os': 1,\n", + " 'ou': 15,\n", + " 'ov': 1,\n", + " 'ow': 3,\n", + " 'oy': 2,\n", + " 'oz': 10,\n", + " 'pa': 3,\n", + " 'pb': 4,\n", + " 'pd': 4,\n", + " 'pf': 1,\n", + " 'pg': 1,\n", + " 'ph': 1,\n", + " 'pi': 1,\n", + " 'pl': 4,\n", + " 'po': 5,\n", + " 'pq': 2,\n", + " 'pr': 3,\n", + " 'pt': 3,\n", + " 'pu': 6,\n", + " 'pw': 2,\n", + " 'py': 6,\n", + " 'pz': 4,\n", + " 'qo': 2,\n", + " 'rc': 1,\n", + " 'rd': 2,\n", + " 'rn': 3,\n", + " 'ro': 2,\n", + " 'rp': 3,\n", + " 'rr': 1,\n", + " 'rs': 2,\n", + " 'rv': 1,\n", + " 'ry': 2,\n", + " 'sb': 4,\n", + " 'sc': 1,\n", + " 'sd': 1,\n", + " 'sf': 1,\n", + " 'sg': 3,\n", + " 'sh': 2,\n", + " 'si': 5,\n", + " 'sj': 3,\n", + " 'sl': 2,\n", + " 'so': 2,\n", + " 'sp': 3,\n", + " 'sr': 3,\n", + " 'ss': 3,\n", + " 'st': 3,\n", + " 'su': 7,\n", + " 'sv': 2,\n", + " 'sw': 3,\n", + " 'sy': 12,\n", + " 'sz': 2,\n", + " 'ta': 1,\n", + " 'tb': 1,\n", + " 'to': 3,\n", + " 'tp': 2,\n", + " 'ts': 2,\n", + " 'tt': 1,\n", + " 'tv': 3,\n", + " 'tw': 1,\n", + " 'tz': 1,\n", + " 'ub': 8,\n", + " 'ug': 10,\n", + " 'ui': 4,\n", + " 'un': 1,\n", + " 'uo': 4,\n", + " 'up': 4,\n", + " 'ur': 1,\n", + " 'us': 3,\n", + " 'uu': 2,\n", + " 'uv': 1,\n", + " 'uy': 1,\n", + " 'va': 1,\n", + " 'vb': 5,\n", + " 'vd': 1,\n", + " 've': 6,\n", + " 'vg': 1,\n", + " 'vh': 3,\n", + " 'vi': 2,\n", + " 'vl': 1,\n", + " 'vm': 1,\n", + " 'vo': 1,\n", + " 'vs': 1,\n", + " 'vt': 3,\n", + " 'vu': 5,\n", + " 'vv': 1,\n", + " 'vw': 1,\n", + " 'vy': 6,\n", + " 'wb': 1,\n", + " 'wc': 3,\n", + " 'wd': 2,\n", + " 'we': 1,\n", + " 'wo': 1,\n", + " 'wp': 4,\n", + " 'ws': 2,\n", + " 'wv': 2,\n", + " 'wy': 1,\n", + " 'yb': 4,\n", + " 'yd': 1,\n", + " 'yh': 1,\n", + " 'yj': 1,\n", + " 'yl': 4,\n", + " 'yn': 1,\n", + " 'yo': 6,\n", + " 'yp': 3,\n", + " 'yr': 1,\n", + " 'ys': 6,\n", + " 'yv': 3,\n", + " 'yw': 3,\n", + " 'yy': 3,\n", + " 'yz': 5,\n", + " 'zb': 4,\n", + " 'zc': 3,\n", + " 'zd': 2,\n", + " 'ze': 1,\n", + " 'zj': 1,\n", + " 'zo': 2,\n", + " 'zp': 3,\n", + " 'zr': 1,\n", + " 'zs': 3,\n", + " 'zt': 1,\n", + " 'zu': 1,\n", + " 'zv': 3,\n", + " 'zw': 1,\n", + " 'zy': 1,\n", + " 'zz': 6})" + ] + }, + "execution_count": 12, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "frequencies(ngrams(c6as, 2))" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'harry good call on the nazi paper trail the attached is a memo from paris high command to goering s secretary referring to the painting and clearly mentioning sara seems like they knew about the scam our friendly ss officer was planning to pull they picked up her trail the night after she went missing but you can read about that in their report still no joy on getting access to the original miss mona in the gallery and i am beginning to think we might need to rollout a black bag job you want to do it or shall i by the way i was surprised by this report the other papers we have from the nazis at this level are encrypted using bifid or playfair style ciphers this one isnt maybe the cipher clerk was off duty that day we got lucky'" + ] + }, + "execution_count": 13, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "' '.join(segment(letters(c6a).translate(''.maketrans({'B':'t', 'C':'h', 'S':'e', 'O':'i', 'U':'n', 'G':'g', 'A':'b', 'V':'o', 'N':'k', 'J':'w', 'T':'m', 'I':'d', 'P':'a', 'W':'p', 'R':'c', 'Y':'r', 'L':'y', 'D':'l', 'H':'f', 'Z':'s', 'Q':'z', 'E':'u', 'F':'v', 'M':'j'}))))" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "trans={'B':'t', 'C':'h', 'S':'e', 'O':'i', 'U':'n', 'G':'g', 'A':'b', 'V':'o', 'N':'k', 'J':'w', 'T':'m', 'I':'d', 'P':'a', 'W':'p', 'R':'c', 'Y':'r', 'L':'y', 'D':'l', 'H':'f', 'Z':'s', 'Q':'z', 'E':'u', 'F':'v', 'M':'j'}" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'PARISHGCOMNDTUVWYZBEFJLQ'" + ] + }, + "execution_count": 15, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "''.join(sorted(trans.keys(), key=lambda k: trans[k]))" + ] + }, + { + "cell_type": "code", + "execution_count": 41, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'harry good call on the nazi paper trail the attached is a memo from paris high command to goering s secretary referring to the painting and clearly mentioning sara seems like they knew about the scam our friendly ss officer was planning to pull they picked up her trail the night after she went missing but you can read about that in their report still no joy on getting access to the original miss mona in the gallery and i am beginning to think we might need to rollout a black bag job you want to do it or shall i by the way i was surprised by this report the other papers we have from the nazis at this level are encrypted using bifid or playfair style ciphers this one isnt maybe the cipher clerk was off duty that day we got lucky'" + ] + }, + "execution_count": 41, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "' '.join(segment(keyword_decipher(c6as, 'parishighcommand', KeywordWrapAlphabet.from_largest)))" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "c6bs = sanitise(c6b)" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "1573" + ] + }, + "execution_count": 18, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "len(c6bs)" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "from itertools import permutations" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "[(0, 1, 2, 3),\n", + " (0, 1, 3, 2),\n", + " (0, 2, 1, 3),\n", + " (0, 2, 3, 1),\n", + " (0, 3, 1, 2),\n", + " (0, 3, 2, 1),\n", + " (1, 0, 2, 3),\n", + " (1, 0, 3, 2),\n", + " (1, 2, 0, 3),\n", + " (1, 2, 3, 0),\n", + " (1, 3, 0, 2),\n", + " (1, 3, 2, 0),\n", + " (2, 0, 1, 3),\n", + " (2, 0, 3, 1),\n", + " (2, 1, 0, 3),\n", + " (2, 1, 3, 0),\n", + " (2, 3, 0, 1),\n", + " (2, 3, 1, 0),\n", + " (3, 0, 1, 2),\n", + " (3, 0, 2, 1),\n", + " (3, 1, 0, 2),\n", + " (3, 1, 2, 0),\n", + " (3, 2, 0, 1),\n", + " (3, 2, 1, 0)]" + ] + }, + "execution_count": 20, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "list(permutations(range(4)))" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "['hithhnfrferteaofftnasltyorrreqthimserulrhfsetaeeiuiwsihbnrrtsioiienirhmrpytdtoeircitalnbrpnhtohorliewtshtesposotoynuwhredhhcpicmnootahashtijeanetofrneusragmxurttowleatbrtepptraaesenethhrisnrststrnfldoghaumgseseakuntiahyttnyuntnnvhigwlewfiapasrelfaiebapcmcplahethtolhwsuladseuveaeotaeutateefehlbhtrshgatliaceehtrnhgaasietufnnpurehrelittmudyinnuegicouendeeiahsuelhtnoahtieainyfdniauoenatiyefohedaluaroeryhuraeraterahiaongtwiswsaitbultaomxletoreototonaoortgbcvaipnleewfyrtaeoaduwwetrrtnlrpfpaiellrimntrowieqrecuarndotafnroteletpenrpmshnddetdewhefoypedennsneegtateeanesertgdlueosrburowhdgbrpahenyttekrertrrhnfnedoltswsianiypothmouoctyeieeponhkrnntairlteeiuremnitaphoeaohhnouumtkvsenedeeoidpwkiegtiiiosenhuufanbeuithraerhieehuayasrusiwgadsisitrlgfphiltwiisihesurmromaceisoilvdeoelusairideotnfiesobntsapofgsodrtfirpltanetrlyiosotyoessfntpheaigeaoraieitdmtaaegrhyasrrcfelrtleeanehvehivmhnassieroixlmpsjttesofbmrhndiochecnbttncompusesoehtenetfienootnwooteeriltoigdosmehoifmlroeffdtuesoflerwiiyqdbzottnrfantdigontalaepdsheamnthlpsnbtuoahaalplemnpdrshvnaiaelnhcaliskacdoaedtjghoieadgwayndetenhegeeueoeednoryyrfctemttwntgdetasuoootfwymihrgrhoesinrraofretfenpoyaissesstnhhayeulhiwpcteatuapeanlueelwahaoeluresnbiieasaeteagcdcsorepsroenselvosedudsitlteittfseoesnlnginoernteieiwwlwhteirsiilhtdsrndesrfhrntlgrsuasedadoytasadutenwitcnametertpoesytotocnyutsogcmudlpadleadotefdsbfeleahaxrsonidtieiprashicdcshipbielslnalhorfrentatoraiemklagretmrdcwsnaynwsvnuldorekutnnoutiiunnhvnieilohltefnaeatuifttacetlnnrbhbeglosnaonmifkoaronsnvnfretrcfthdetpswsucpercwtpoawfhdayisooagoaelndfigngrtebltllgfo ',\n", + " 'hihthnrffetreafoftanslytorrreqhtimesrurlhfestaeeiuwisibhnrtrsiioieinrhrmpydttoierctialbnrphntoohrleiwthstepsostooyunwherdhchpimcnotoahsahtjieaentorfnesuramgxutrtolweabtrtpeptaraeesnehthrsinrtsstnrflodghuamgessekaunitahtytnuyntnnvhgiwlwefipaaserlfiaebpacmpclaehthotlhswuldasevueaoetauetaetefhelbthrsghatilaceehtnrhgaasiteufnnpuerhrleitmtudiynneugiocuedneeaihseulhntoathieianydfniuaoeantieyfoehdaulareoryuhrareatreahaiontgwiwssatibutlaoxmleotretootnoaorotgcbvapinleewfrytaoeadwuwertrtlnrppfailelrmintorwiqereucardnotfanrtoeltepernpmhsndedtdweheofypdeensnnegetaeteaensetrgduleorsbuorwhgdbrapheynttkeretrrrnhfndeolstwsainipyotmhoucotyieeeopnhrknnatirtleeuirenmitpahoaeohnhoumutksvendeeeiodpkwietgiioisehnuuafnbueitrhaehrieheuaaysrsuiwagdssiitlrgfhpilwtiiisheusrmormaecisiolvedoeulsariidoetnifesbontaspogfsordtfriplatnertlyoisoytoessfnptheiageoaraeiitmdtaeagryhasrrcflerteleaenhvheivhmnassieorixmlpstjteosfbrmhnidocehcntbtnocmpsueseohtneetifenootnowoteeritloidgosemhofimlorefdftuseofelrwiiyqbdzottnrafntidgotnaleapdhseanmthplsntbuohaaapllenmpdsrhvanialenhacliksacodaetdjgohiedagwyandteenehgeueeoeednroyyfrctmettnwtgedtausootofwmyihgrrheosirnraforeftenopyasisesstnhhayuelhwipcetataupenalueelwhaaoleursenbiieaasetaegccdsoerpsoreneslvsoeddusilttetitfesoenslnignorentieeiwwlwtheisriihltdrsndserfrhntglrsauseaddotyasdautnewictnaemtetrposeyttoocynutosgcumdlapdlaedoetfdbsfeelahxarsnoiditeirpasihcdschibpiesllnlahofrretnatroaimeklgaremtrdwcsnyanwvsnudlorkeutnnouitiunnhvineiolhletfneaatiuftatceltnnbrhbgelonsaomnifokarnosnnvfrterctfhdtepsswuceprctwpowafhadyiosoaogaenldfgingtrebtlllfgo ',\n", + " 'htihhfnrfreteoaffntastlyorrretqhismerlurhsfeteaeiiuwshibnrrtsoiiineirmhrptydteoirictanlbrnphthoorilewsthtsepoostonyuwrhedhhcpcimnootaahshitjenaetfornuesrgamxruttwoletabretpprtaaseentehhirsnsrtsrtnfdlogahumsgesaekutniayhttynunntnvihgwelwfaiparselafieabpccmplhaettholwhsualdsueveeaoteauttaeeefhlhbtrhsgaltiaecehrtnhagaseitunfnprueherlittmuydinunegciounedeieahuselthnohatiaeinfydnaiuoneatyiefhoedlauaorerhyurearaetraihaogntwsiwsiatblutamoxlteoroetootnaoortbgcviapnelewyfrteaoaudwwterrntlrfppaeillirmnrtoweiqrceuanrdoatfnorteeltpnerpsmhnddetedwhfeoyepdennsneegttaeenaesretglduesorbruowdhgbprahneytetkrretrhrnfendotlswisanyipohtmooucteyiepeonkhrntnailrteieurmeniatpheoaohhnouumtvkseendeoeidwpkigetiiiosnehufuanebuihtrarehieehuyaasursigwadissirtlgpfhitlwisiihseurrmomcaeiosildveoleusiariedotfnieosbnstapfogsdortifrptlanterliyostoyosesftnphaeigaeoriaeidtmtaaeghryarsrceflrlteenaehevhimvhnsasireoilxmpjsttseofmbrhdniohcecbnttcnomupseosehetneftieonotwnooeterlitogidomsehiofmrloeffdteusolferiwiydqbztotnfrandtignotaalepsdhemantlhpsbntuaohalaplmenprdshnvaiealnchalsikadcoadetjhgoiaedgawynedtehnegeeueeoedonryryfcetmtwtntdgetsauoootfywmirhgrohesnirroafrtefepnoyiasssesthnhaeyulihwptceautapaenleuelawhaeoluersnibiesaaeetagdccsroeprsoesnelovseuddstiltiettsfeosenlgnineornetiewiwlhwterisilihtsdrnedsrhfrnltgrusasdeadyotaasduetnwticnmaetretpeosyottoncyustogmcudpladeladtoefsdbfleeaahxrosnitdiepirahsiccdshpibileslanlhrofrnetaotraeimkalgrtemrcdwsanynswvnludoerkuntnotuiinunhnvieliohtlefaneautifttactelnrnbhebglsonanomikfoaornsvnnfertrfcthedtpwssupcerwctpaowfdhaysioogaoalendifgnrgtelbtlglfo ',\n", + " 'hhithrnffterefaofatnsyltorrrehqtiemsrrulhefsteaeiwuisbihntrrsiioiienrrhmpdyttioertciablnrhpntoohreliwhtstpesotsoouynwehrdchhpmicntooashahjtieeantrofnseurmagxturtlowebatrptepatraeesnhethsrintrssntrfoldguhamegsskeauintathytunynntnvghiwwlefpiaaesrlifaepbacpmcleahtohtlshwudlasveueoaetuaeteatehfeltbhrgshaitlaecehntrhagastieunfnpeurhlreimttuidynenugoicudeneaeihesulnhtotahiieandyfnuiaoaenteiyfeohdualaeroruyhrraearteaahiotngwwisstaibtulaxomloetrteoontoarootcgbvpainelewrfytoaeawduwretrltnrppfalielmrinotrwqieruecadrnoftantroetleprenphmsneddtwdehoefydpeesnnngeeteateeanstergudlerosbourwghdbarphyentkterterrnrhfdneosltwasinpiyomthocuotiyeeoepnrhknantitrleueirnemiptahaoeonhhomuutskvedneeieodkpwitegioiishenuaufnubeirthaheriheeuaayssruiawgdssiiltrghfpiwltiiishuesromrmeaciisolevdouelsraiiodetinfebsonatspgofsrodtrfipaltnretloyisyotosesfpnthieagoeareaiimtdteaagyrharsrclferetleeanhhveihvmnsasioerimxlptsjtoesfrbmhindoechctnbtoncmspueesohnteeitfeonotonwoetertilodigoesmhfoimolredfftsueoeflriwiybqdztotnarfnitdgtonaelaphdsenamtphlstnbuhoaapallnempsdrhavnilaenahclkisaocdatedjoghideagywantdeeenhgueeeeoedrnoyfyrcmtetntwtegdtuasotoofmwyighrrehosrinrfaorfeteonpysaissesthnhauyelwhipectaatupnealeuelhwaaloeusrenibieaaseategccdseorposreenslsvoedduslittteitefsoneslingnroeniteewiwltwhesirihiltrdsnsderrfhngtlrasusaeddtoyadsauntewcitneamtterpsoeyttooycnuotsgucmdalpdaledeotfbdsfeelaxharnsoiidteripaishcsdchbipiselllnahforrtenartoamiekglarmetrwdcsynanvwsndulokreuntnoiutinunhivneoilheltfenaaitufattcletnbnrhgbelnosamoniofkanrosnnvftrertcfhtdepsswuecprtcwpwoafahdyoisooaganeldgfintgretbllflgo ',\n", + " 'hthihfrnfrteeofafnatstylorrrethqisemrlruhsefteeaiiwushbinrtrsoiiiniermrhptdyteioritcanblrnhpthoorielwshttspeootsonuywrehdhchpcminotoaashhijteneatfronusergmaxrtutwloetbareptprataseenthehisrnstrsrntfdolgauhmsegsakeutinaythtyunnnntvighwewlfapiareslaifeapbccpmlheattohlwshuadlsuveeeoateuatteaeehflhtbrhgsalitaeechrnthaagsetiunnfpreuhelritmtuyidnuengcoiundeeiaehuesltnhohtaiaienfdynauionaetyeifheodluaaoerrhuyreraaertaiahogtnwswisitabltuamxoltoeroteoontaorotbcgvipaneelwyrfteoaauwdwtrernltrfppaelilimrnrotweqircueandroaftnotreetlpnrepshmndedtewdhfoeyedpensnnegetteaeneasrtegludesrobrouwdghbparhnyetektrrterhnrfednotslwiasnypiohmtoocuteiyepoenkrhntaniltreiuermneiaptheaoohnhoumutvskeedneoiedwkpigteiioisnheufauneubihrtarheieheuyaasusrigawdissirltgphfitwlisiihsuerrommceaioisldevoluesiraieodtfineobsnsatpfgosdrotirfptalntrelioystyoosseftpnhaiegaoerieaidmttaeaghyrarrscelfrleteneahehvimhvnssairoeilmxpjtstsoefmrbhdinoheccbtntconmuspeoeshentefiteoontwonoeetrltiogdiomeshifomrolefdftesuolefriiwydbqzttonfarnditgntoaaelpshdemnatlphsbtnuahoalpalmneprsdhnavielancahlskiadocadtejhogiadegaywnetdehengeueeeeodornyrfycemttwnttdegtsuaootofymwirghroehsnrirofartfeeponyisasssethhnaeuyliwhptecauatpaneleeulahwaelouesrniibesaaeeatgdccsreoprosesenlosveuddstlititetsefosnelginneroneitewwilhtwersiilhitsrdnesdrhrfnlgtruassdaedytoaadsuentwtcinmeatrtepesoyottonycusotgmucdpaldealdteofsbdfleeaaxhronsitidepriahisccsdhpbiilselalnhrfornteaortaemikaglrtmercwdsaynnsvwnlduoekrunntotiuinnuhniveloihtelfaenauitftatctlenrbnhegblsnoanmoikofaonrsvnnfetrrftchetdpwssupecrwtcpawofdahysoiogoaalnedigfnrtgeltblgflo ',\n", + " 'hhtihrfnftreefoafantsytlorrrehtqiesmrrluhesfteeaiwiusbhintrrsioiiinerrmhpdtytieorticabnlrhnptohoreilwhsttpseotosounywerhdchhpmcintooasahhjiteenatrfonsuermgaxtrutlwoebtarpetpartaesenhtehsirntsrsnrtfodlguahmesgskaeuitnatyhtuynnnntvgihwwelfpaiaersliafepabcpcmlehatothlswhudalsvueeoeatueatetaeheflthbrghsailtaeechnrthaagsteiunnfperuhlerimttuiydneungociudneeaieheuslnthothaiiaendfynuaioaneteyifehodulaaeorruhyrreaaretaaihotgnwwsistiabtluaxmolotertoeonotarootcbgvpianeelwryftoeaawudwrterlntrpfpaleilmirnortwqeiruceadnrofatntoretelprnephsmneddtwedhofeydepesnnngeetetaeenastreguldersoboruwgdhbaprhynetketrtrernhrfdenostlwaisnpyiomhtocoutieyeopenrkhnatnitlreuiernmeipathaeoonhhomuutsvkedeneioedkwpitgeioiishneuafunuebirhtahreiheeuayassuriagwdsisilrtghpfiwtliisihuserormmecaiiosledvoulesriaioedtifnebosnastpgfosrdotrifpatlnrteloiysytoossefptnhiaegoaereiaimdtteaagyhrarrsclefrelteenahhevihmvnssaioreimlxptjstosefrmbhidnoehcctbntocnmsupeeoshneteifteoontownoeetrtliodgioemshfiomorledfftseuoelfriiwybdqzttonafrnidtgtnoaealphsdenmatplhstbnuhaoaplalnmepsrdhanvileanachlksiaodcatdejohgidaegyawntedeehngueeeeeodronyfrycmettnwttedgtusaotoofmywigrhreohsrnirfoarfteeopnysiasssethhnaueylwihpetcaautpnaeleeulhawaleouserniibeasaeaetgcdcseroporseesnlsovedudsltittietesfonselignnreonietewwilthwesriihlitrsdnsedrrhfngltraussadedtyoadasunetwctinemattrepseoytotoyncuostgumcdapldaeldetofbsdfeleaxahrnosiitderpiaihscscdhbpiislellanhfrortnearotameikgalrmterwcdsyannvswndluokerunntoituinnuhinveolihetlfeanaiutfattcltenbrnhgeblnsoamnoiokfanorsnvnfterrtfchtedpswsuepcrtwcpwaofadhyosioogaanledgifntrgetlblfglo ',\n", + " 'ihthnhfrefrtaeoftfnalstyrorrqethmiseurlrfhseateeuiiwishbrnrtisoieinihrmryptdoteicritlanbprnhotholrietwshetspsootyonuhwrehdhcipcmonothaasthijaeneotfrenusargmuxrtotwlaetbtreptpraeaseenthrhisrnsttsrnlfdohgaugmseesaknutihaytntyutnnnhviglwewifapsareflaibeapmccpalhehttohlwsluadesuvaeeoateuattefeehblhtsrhgtalicaeethrnghaaisetfunnuprerheltitmduyinnueigcoeundeeiashuehltnaohteiaiynfdinaueonaityeofheadluraoeyrhuarertaerhaianogtiwswasitubltoamxeltoerottoonoaorgtbcaviplneefwyrateodauwewtrtrnlprfpiaelrlimtnroiweqercurandtoafrnotleetepnrmpshdndedtewehfopyednensenegatteaeneesrtdgluoesrubrohwdgrbpaehnyttekerrtrrhnnfedlotsswiainyptohmuoocyteieepohnkrnntarilteeiuermntiapoheahohnuoumktvsneedeeoipdwkeigtiiioesnhuufabneutihrearheiehauyarsuswigasdistirlfgphlitwiisiehsumrroamcesioivldeeoluasirdieontfiseobtnsaopfgosdrftirlptaentrylioostyeossnftpehaiegaoarietidmataerghysarrfceltrleaenevhehvimhansseiroxilmspjtetsobfmrnhdicohencbtntcopmusseoethentefineoontwotoeeirltiogdsomeohiflmrofefdutesfolewriiqydbozttrnfatndiogntlaaedpshaemnhtlpnsbtouahaalpelmndprsvhnaaielhncailskcadoeadtgjhoeiadwgaydnetneheegeuoeeendoryyrftcemttwngtdeatsuoootwfymhirghroeisnrarofertfnepoayisesssnthhyaeuhliwcptetauaepanuleewlahoaelruesbniiaesateeacgdcosrespronesevlosdeudistletitftseeosnnlgionertneiiewwwlhtiersiilhdtsrdnesfrhrtnlgsruaesdaodytsaadtueniwtcanmeetrtopestyotconytusocgmuldpaldeaodtedfsbeflehaaxsronditiieprsahidccsihpbeilsnlalohrfernttaoriaemlkagertmdrcwnsaywnsvunldroektunnuotiuinnvhniielolhtenfaetauitftaectlnnrbbhegolsnoanmfikoraonnsvnrfetcrftdhetspwscupecrwtopawhfdaiysoaogoealnfdiggnrtbeltllgf o ',\n", + " 'ihhtnhrfeftraefotfanlsytrorrqehtmiesurrlfhesateeuiwiisbhrntrisioeiinhrrmypdtotiecrtilabnprhnotohlreitwhsetpssotoyounhwerhdchipmcontohasathjiaeenotrfensuarmguxtrotlwaebttrpetpareaesenhtrhsirntstsnrlfodhguagmeseskanuithatyntuytnnnhvgilwweifpasaerfliabepamcpcalehhtothlswludaesvuaeoeatueatetfeheblthsrghtailcaeethnrghaaistefunnuperrhletimtduiynneuigoceudneeaisheuhlntaotheiiayndfinuaeoaniteyofehadulraeoyruharretarehaainotgiwwsastiubtloaxmelotertotonooarogtcbavpilneefwryatoedawuewrttrlnprpfialerlmitnoriwqeerucradntofarntoleteeprnmphsdneddtweehofpydenesnengeatetaeenestrdguloersuborhwgdrbapehynttkeertrrrnhnfdelostswaiinpytomhuocoytieeeophnrknnatritleeuiernmtipaohaehonhuomuktsvnedeeeiopdkweitgiioieshnuuafbnuetirheahreiheauayrssuwiagsdsitilrfghpliwtiiisehusmroramecsiiovledeoulasridioentifsebotnasopgfosrdftrilpatenrtyloiosyteossnfptehiaegoaareitimdateargyhsarrfcletrelaeenvhhevihmansseiorximlsptjetosbfrmnhidcoehnctbntocpmsuseeothneteifneoontowtoeeirtliodgsoemohfilmorfedfutsefoelwriiqybdozttrnaftnidogtnlaeadphsaenmhtplnstbouhaaaplelnmdpsrvhanailehnacilkscaodeatdgjoheidawgyadnteneehegueoeeendroyyfrtcmettnwgtedatusootowfmyhigrhreoisrnarfoerftneopaysiesssnthhyauehlwicpettaauepnauleewlhaoalerusebniiaeasteaecgcdosersporneesvlsodeduisltettifteseonsnligonretnieiewwwlthiesriihldtrsdnsefrrhtnglsrauesadodtysadatuneiwctanemettropsetytocoyntuoscgumldapldaeodetdfbsefelhaxasrnodiitierpsaihdcscihbpeislnllaohfrertntaroiamelkgaermtdrwcnsyawnvsundlroketunnuoituinnvhinieollhetnfeataiutfatecltnnbrbhgeolnsoamnfiokranonsnvrftecrtfdhtespswcuepcrtwopwahfadiyosaoogeanlfdgigntrbetlllfg o ',\n", + " 'thihfhnrrfetoeafnftatslyrorrteqhsimelrurshfeetaeiiuwhsibrnrtosiinieimrhrtpydetoiirctnalbnrphhtooirleswthstepoostnoyurwhehdhccpimonotaahsihtjneaeftorunesgramrxutwtolteabertprptasaeetnehihrssnrtrstndfloaghusmgeasektuniyahtytnunntnivhgewlwafiprasealfiaebpccmphlaetthowlhsaulduseveeaoetauttaeeefhhlbthrsglatieacerhtnahgaesitnufnrpueehrltitmyudiunnecgionuedieeauhsetlhnhoataieifnydaniunoeaytiehfoeldauoarehryuerareatriahagontswiwisatlbutmaoxtleooretootnoaorbtgcivapenleywfretaouadwtwernrtlfrppeaililrmrntoewiqcreunardaotfonrteeltnperspmhdndeetdwfheoeypdnensenegttaeneaersetlgduseorrbuodwhgpbranheyettkrrethrrnefndtolsiwsayniphotmooucetyipeeoknhrtnnalirtieeumrenaitpehoahohnuoumvtkseendoeeiwdpkgietiiionsehfuuaenbuhitrraeheiehyuaausrsgiwaidssritlpgfhtilwsiiisheurrmocmaeoisidlveloeuisareidoftnioesbsntafpogdsoritfrtplatnerilyotsoysoestfnpaheiageoiraeditmataehgryrasrecfllrteneaeehvhmivhsnasrieolixmjpststeomfbrdhnihocebcntctnoumpsoeseehtnfetioenowtnoeotelritgoidmoseihofrmlofefdetuslofeirwidyqbtzotfnradntingotaalespdhmeanlthpbsntauohlaapmlenrpdsnhvaeialcnhaslikdacodaethjgoaiedagwyendtheneegeueeoeodnrryyfectmwttndtgestauoootyfwmrihgorhensiroraftrefpenoiyassseshtnheayuilhwtpceuataapeneluealwheaoleursinbiseaaeetadgccrsoerpsoseneolvsueddtsilitetstfesoenglnienorentiweiwhlwtreisliihstdrendshrfrlntgursadseaydotaasdeutntwicmnaerteteposoyttnocysutomgcupdlaedlatdoesfdblfeeaahxorsntidipeirhasiccdsphibliesalnlrhofnretoatreaimaklgtremcrdwasnysnwvlnudeorknutntouiniunnhvileiothleafneuatitftatcelrnnbehbgslonnaomkifooarnvsnnefrtfrctehdtwpsspucewrctapowdfhasyiogoaolaenidfgrngtlebtgllf o ',\n", + " 'hhitrhnftferfeaoaftnysltrorrheqteimsrrulehfsetaewiuibsihtnrrisioiienrrhmdpytitoetrcibalnhrpnotoherlihwtsptestosouoynewhrcdhhmpictnoosahajhtieeanrtofsneumragtxurltowbeatprteaptreaeshnetshritnrsnstrofldughaemgskseaiunttahyutnynntngvhiwwlepfiaeasrilfapebapcmcelahothtslhwdulavseuoeaeutaeetathefetlbhgrshiatleacenhtrahgatsienufnepurlhremittiudyennuogicduenaeeiehsunlhttoahiieadnyfuniaaoenetiyefohudalearouryhrraerateaahitongwwistsaitbulxaomolettreonotoraooctgbpvaienlerwfyotaewadurwetlrtnprpflaiemlriontrqwieurecdarnfotatnrotelerpenhpmsenddwtdeohefdypesenngneeetateeantserugdlreosoburgwhdabrpyhenkttetrernrrhdfnesoltawsipniymothcouoityeoeeprnhkannttirlueeinrempitaahoenohhmouustkvdeneieeokdpwtiegoiiihsenauufunberithhaerhieeauayssruaiwgsdsilitrhgfpwiltiiisuhesormremaciisoelvduoelrsaioideitnfbesoantsgpofrsodrtfiapltrnetolyiysotsoespfntiheaogeaeraimitdetaaygrhrasrlcfeertleeanhhvehivmsnasoiermixltpsjotesrfbmihndeochtcnbotncsmpueesonhteietfoenootnweotetrildoigeosmfhoiomlrdeffstueeoflirwibyqdtzotanrfintdtgonealahpdsneampthltsnbhuoapaalnlemspdrahvnliaeanhcklisoacdtaedojghdieaygwatndeeenhugeeeeoerdnofyyrmctenttwetgdutastooomfwygihrerhorsinfraofretoenpsyaisseshtnhuayewlhiepctaatunpeaeluehlwalaoesureinbiaeasaetecgcdesoropsreensslvodedulsittteietfsnoesilngrnoeinteweiwtlwhseirhiilrtdssnderrfhgntlarsuasedtdoydasanutecwitenamtterspoetytoyocnoutsugcmadlpadleedotbfdsefelxahanrsoiidtreipiashscdcbhipsielllnafhortrenratomaiegklamretwrdcysnavnwsdnulkorenutnioutniunihvnoeilehltefnaiatuafttlcetbnnrghbenlosmaonoifknaronsnvtfretrcfthdespsweucptrcwwpoaafhdoyisooagnaelgdfitngrteblfllg o ',\n", + " 'thhifhrnrfteoefanfattsylrorrtehqsiemlrrushefeteaiiwuhsbirntrosiiniiemrrhtpdyetioirtcnablnrhphtooirelswhtstpeootsnouyrwehhdchcpmiontoaashihjtneeaftrounsegrmarxtuwtlotebaerptrpatsaeetnheihsrsntrrsntdfolaguhsmegasketuinyathytunnnntivghewwlafpiraesalifaepbccpmhleattohwlshaudlusveeeoaetuatteaeehfhltbhrgslaiteaecrhntahagestinunfrpeuehlrtimtyuidunencgoinudeieaeuhestlnhhotaaiiefndyanuinoaeyteihfeolduaoaerhruyerraeartiaahgotnswwiistalbtumaxotloeorteoontoarobtcgivpaenelywrfetoauawdtwrenrltfrppealiilmrrnotewqicruenadraoftontreetlnpresphmdnedetwdfhoeeydpnesnengetteaneearstelgudserorboudwghpbarnhyeetktrrtehrnrefdntosliwasynpihomtoocuetiypeoeknrhtnanlitrieuemrneaiptehaohonhuomuvtskeednoeiewdkpgiteiioinshefuauenubhirtraheeiheyuaaussrgiawidssriltpghftiwlsiiishuerromcmeaoiisdlevloueisraeiodftinoebssnatfpgodsroitrftpaltnreiloytsyososetfpnahieagoeireadimtateahgyrrarseclflretneeaehhvmihvsnsarioelimxjptsstoemfrbdhinhoecbctnctonumspoeesehntfeitoeonwtoneoetlrtigodimoesihformolfedfetsuloefiriwdybqtztofnardnitngtoaaelsphdmenaltphbstnauholapamlnerpsdnhaveilacnahslkidaocdatehjogaideagywentdheenegueeeeoodrnryfyecmtwtntdtegstuaootoyfmwrighorehnsriorfatrfepeoniysasssehthneauyilwhtpecuaatapneeleualhwealoeusrinibseaaeeatdgccrseorposseenolsvueddtsliittestefsoneglinenroenitwewihltwresilihistrdensdhrrflngturasdsaeydtoaadseunttwcimneartteepsooyttnoycsuotmgucpdaledaltdeosfbdlfeeaaxhornstiidperihaisccsdphbiliseallnrhfonrteoarteamiakgltrmecrwdasynsnvwlndueokrnunttoiuninunhivleoithelafenuaittfattclernbnehgbslnonamokiofoanrvsnneftrfrtcehtdwpsspuecwrtcapwodfahsyoigooalaneidgfrntgletbglfl o ',\n", + " 'hhtirhfntfrefeoaafntystlrorrhetqeismrrluehsfeteawiiubshitnrrisoiiinerrmhdptyiteotricbanlhrnpothoerilhwstptsetoosuonyewrhcdhhmpcitnoosaahjhiteenartfosnuemrgatxrultwobetapretaprteasehnteshirtnsrnsrtofdlugahemsgksaeiutntayhutynnnntgvihwwelpfaiearsilafpeabpccmelhaotthslwhdualvsueoeeauteaettaheeftlhbgrhsialteaecnhrtahagtseinunfeprulhermittiuydenunogciduneaeieehusnlthtohaiiaednfyunaiaoneetyiefhoudlaeaorurhyrrearaetaaihtognwwsitsiatbluxamooltetroenootraooctbgpviaenelrwyfoteawaudrwtelrntprfplaeimlironrtqweiurcedanrfoattnorteelrpnehpsmenddwtedohfedyepsenngneeettaeenatsreugldresoobrugwdhabpryhnektettrrenrhrdfensotlawispnyimohtcoouiteyoepernkhantntilrueienrmepiataheonohhmouustvkdeenieoekdwptigeoiiihsneaufuunebrihtharehieeauyassuraigwsdislirthgpfwitliisiuhseorrmemcaiioseldvuolersiaoieditfnbeosanstgpforsdortifaptlrnteoliyystososepftnihaeogaeeriamidtetaayghrrarslceferlteenahhevhimvsnsaoiremilxtpjsotserfmbihdneohctcbnotcnsmupeeosnhetieftoeonotwneoettrlidogieomsfhioomrldeffsteueolfiriwbydqtztoanfrindttgnoeaalhpsdnemaptlhtsbnhuaopalanlmesprdahnvlieaanchklsioadctadeojhgdiaeygawtnedeehnugeeeeeordonfyrymcetntwtetdgutsatooomfywgirherohrsnifroafrteoepnsyiasssehthnuaeywliheptcaautnpaeeleuhlawlaeosuerinibaesaaeetcgdcesrooprseesnslovdeudlstittieetsfnoseilgnrneoinetwewitlhwserihilirtsdsnedrrhfgnltarusasdetdyodaasnuetcwtienmattrespeotyotyoncoustugmcadpladeledtobfsdeflexaahnrosiitdrepiiahssccdbhpisilellanfhrotrneraotmaeigkalmrtewrcdysanvnswdnlukoernuntiotuninuihnvoeliehtlefaniautafttlctebnrnghebnlsomanooikfnaornsvntfertrfcthedspwseupctrwcwpaoafdhoysiooganalegdiftnrgtelbflgl o ',\n", + " 'ithhnfhrerftaoeftnfaltsyrrorqtehmsieulrrfsheaeteuiiwihsbrrntiosieniihmrrytpdoeticirtlnabpnrhohtoliretswhestpsootynouhrwehhdcicpmoonthaastihjaneeoftreunsagrmurxtowtlatebterptrpaesaeetnhrihsrsnttrsnldfohagugsmeeaskntuihyatnytutnnnhivglewwiafpsraefalibaepmccpahlehttohwlslaudeusvaeeoaetuattefeehbhltshrgtlaiceaetrhngahaiestfnunurperehlttimdyuinuneicgoenudeieasuhehtlnahoteaiiyfndianuenoaiyteohfealduroaeyhruaerrtearhiaangotiswwaistulbtomaxetloeorttoonooargbtcaivplenefywraetoduawetwrtnrlpfrpiealrilmtrnoiewqecrurnadtaofrontleetenprmsphddnedetwefhopeydnneseengatteaneeerstdlguoserurbohdwgrpbaenhytetkerrtrhrnnefdltossiwaiynpthomuoocyetiepeohknrntnarliteieuemrntaipoehahhonuuomkvtsneedeoeipwdkegitiiioenshufuabenuthireraheeihayuarusswgiasidstrilfpghltiwisiieshumrroacmesoiivdleelouaisrdeionftisoebtsnaofpgodsrfitrltpaetnryilootsyesosntfpeahieagoairetdimaaterhgysrarfecltlreaneevehhvmihasnserioxlimsjptestobmfrndhichoenbctnctopumssoeetehntfeinoeonwtoteoeilrtigodsmoeoihflrmoffeduetsfloewiriqdybotztrfnatdniongtlaaedsphamenhltpnbstoauhalapemlndrpsvnhaaeilhcnaislkcdaoedatghjoeaidwagydentnheeeeguoeeenodryryftecmtwtngdteastuoootwyfmhrighoreinsraorfetrfnpeoaiysesssnhthyeauhilwctpetuaaeapnuelewalhoealreusbiniaseateeacdgcorsesrponseevolsdueditsleittfsteesonnglioenrteniiwewwhltiresilihdstrdensfhrrtlngsuraedsaoydtsaadteunitwcamneerttoepstoytcnoytsuocmgulpdaledaotdedsfbelfehaaxsorndtiiipershaidccsiphbelisnallorhfenrttoarieamlakgetrmdcrwnasywsnvulndreoktnunutoiuninvnhiileolthenafetuaittfaetclnrnbbehgoslnonamfkioroannvsnreftcfrtdehtswpscpuecwrtoapwhdfaisyoagooelanfidggrntbletlglf o ',\n", + " 'ihhtnrhfetfrafeotafnlystrrorqhetmeisurrlfehsaeteuwiiibshrtnriisoeiinhrrmydptoitectrilbanphrnoothlerithwseptsstooyuonhewrhcdhimpcotnohsaatjhiaeenortfesnuamrgutxroltwabettpretapreeasehntrshirtnstnsrlofdhugagemseksaniuthtaynutytnnnhgvilwweipfasearfilabpeampccaelhhotthslwlduaevsuaoeeauteaettfheebtlhsgrhtialceaetnhrgahaitsefnunueprrlhetmitdiuynenuiogceduneaeisehuhnltatoheiiaydnfiunaeaonietyoefhaudlreaoyurharretraehaaintogiwwsatsiutbloxameoltetrotnoooraogctbapvilenefrwyaotedwauerwttlrnpprfilaermlitonriqweeurcrdantfoartnolteeerpnmhpsdenddwteeohfpdyensenegneaettaeenetsrdugloresuobrhgwdrabpeyhntkteetrrrnrhndfelsotsawiipnytmohucooyiteeoephrnknantrtileueienrmtpiaoahehnohumoukstvndeeeieopkdwetigioiiehsnuaufbunetriheharehieaauyrssuwaigssditlirfhgplwitiiiseuhsmorraemcsiioveldeuolarsidoienitfsbeotansogpforsdfrtilapterntyolioystesosnpfteihaeogaaeritmidaetaryghsrarflceterlaeenvhhevhimasnseoirxmilstpjeotsbrfmnihdceohntcbnotcpsmuseeotnhetiefnoeonotwteoeitrlidogseomofhilomrfdefustefeolwiriqbydotztranftindotgnleaadhpsanemhptlntsbohuaapalenlmdsprvahnaliehanciklscoadetadgojhediawygadtneneeheugeoeeenrdoyfyrtmcetntwgetdautsotoowmfyhgirheroirsnafroefrtnoepasyiesssnhthyuaehwlicepttaauenpauelewhlaolaersuebiniaaestaeeccgdoesrsoprneesvsloddeuilstettifetsenosnilgornetineiwewwtlhiserihildrtsdsnefrrhtgnlsarueasdotdysdaatnueicwtaenmettrospettyocyontouscugmladpladeoedtdbfseeflhxaasnrodiitirepsiahdsccibhpesilnllaofhretrntraoimaelgkaemrtdwrcnysawvnsudnlrkoetnunuiotuninvihnioellehtnefatiautaftelctnbnrbgheonlsomanfoikrnaonnsvrtfectrfdthesspwceupctrwowpahafdioysaoogenalfgdigtnrbtellflg o ',\n", + " 'tihhfnhrreftoaefntfatlsyrrortqehsmielurrsfheeateiuiwhisbrrntoisineiimhrrtypdeotiicrtnlabnprhhotoilrestwhsetposotnyourhwehhdccipmoontahasithjnaeefotruensgarmruxtwotltaebetrprtpaseaetenhirhssrntrtsndlfoahgusgmeaesktnuiyhatyntuntnnihvgelwwaifprsaeafliabepcmcphalethtowhlsaluduesveaeoeatutateefehhblthsrgltaiecaerthnaghaeistnfunrupeerhlttimyduiunnecigoneudieeaushethlnhaotaeiifyndainuneoayitehofeladuoraehyruearretarihaagnotsiwwiastlubtmoaxtelooertotonooarbgtciavpelneyfwreatoudawtewrntrlfprpeialirlmrtnoeiwqcerunradatofornteletneprsmphddneedtwfehoepydnneseengtatenaeerestldgusoerrubodhwgprbanehyettkrerthrrnenfdtlosiswayinphtomouoceytipeeokhnrtnnalritieeumernatipeohahhonuuomvktsenedoeeiwpdkgeitiiioneshfuuaebnuhtirreaheeihyauaurssgwiaisdsrtilpfghtliwsiiisehurmrocameosiidvleleouiasrediofntiosebstnafopgdosriftrtlpatenriylotosyseostnfpaehiaegoiaredtimaatehrgyrsarefclltrenaeeevhhmvihsansreiolximjsptsetombfrdnhihcoebnctcntoupmsoseeethnfteioneowntoetoelirtgiodmsoeiohfrlmoffedeutslfoeiwridqybtoztfrnadtninogtalaesdphmaenlhtpbnstaouhlaapmelnrdpsnvhaeailchnasilkdcaodeathgjoaeidawgyednthneeeegueoeeondrryyfetcmwttndgtesatuoootywfmrhigohrenisroarfterfpneoiayssesshntheyauihlwtcpeutaaaepneuleawlheoalerusibnisaeaeteadcgcrosersposneeovlsudedtisliettsfteseongnlieonretniwiewhwltriesliihsdtrednshfrrltngusradesayodtasadetuntiwcmaneretteopsotytncoystuomcgupldaeldatodesdfblefeahaxosrntdiipierhsaicdcspihbleisanllrohfnertotareiamalkgtermcdrwansyswnvlunderokntuntuoinuinnvhilieotlheanfeutaittfateclrnnbebhgsolnnoamkfiooranvnsnerftfcrtedhtwspspcuewcrtaopwdhfasiyogaooleanifdgrgntlbetgllf o ',\n", + " 'hihtrnhftefrfaeoatfnylstrrorhqetemisrurlefhseatewuiibishtrnriisoieinrhrmdyptiotetcriblanhprnoothelrihtwspetstsoouyonehwrchdhmipctonoshaajthieaenrotfsenumargtuxrlotwbaetptreatpreeashentsrhitrnsntsrolfduhgaegmskesainutthayuntyntnnghviwlwepifaesariflapbeapmccealhohttshlwdluavesuoaeeuateeatthfeetblhgsrhitalecaenthraghatisenfuneuprlrhemtitiduyennuoigcdeunaeeieshunhlttaohieiadynfuinaaeoneityeofhuadleraouyrhrarertaeahaitnogwiwstasitublxoamoeltterontooroaocgtbpavielnerfwyoatewdaurewtltrnpprfliaemrliotnrqiweuercdranftoatrnotleerepnhmpsedndwdteoehfdpyesnengeneeatteaentesrudglroesoubrghwdarbpyehnktteterrnrrhdnfeslotaswipinymtohcuooiyteoeeprhnkannttrilueeinermptiaaohenhohmuousktvdneeieeokpdwteigoiiihesnauufubnertihhearheieaauysrsuawigssdiltirhfgpwlitiiisuehsomrreamcisioevldueolrasiodieintfbseoatnsgopfrosdrftialptrentoyliyostseospnftiehaoegaearimtideatayrghrsarlfceetrleaenhvhehvimsansoeirmxiltspjoetsrbfminhdecohtncbontcspmueseontheitefoneoontwetoetirldiogesomfohiolmrdfefsuteefoliwribqydtoztarnfitndtognelaahdpsnaemphtltnsbhouapaalnelmsdpravhnlaieahnckilsocadteadogjhdeiaywgatdneenehuegeeoeerndofyyrmtcenttwegtduatstooomwfyghirehrorisnfarofertonepsayisesshnthuyaewhliecptataunepaeulehwlaloaesrueibniaaesateeccgdeosrosprenessvloddeulisttetieftsneosinlgroneitnewiewtwlhsierhiilrdtssdnerfrhgtnlasruaesdtodydsaantueciwteanmtetrsopettyoyconotusucgmaldpaldeeodtbdfseeflxhaansroiditriepisahsdccbihpseillnlafohrternrtaomiaeglkamertwdrcynsavwnsdunlkroentuniuotnuinivhnoielelhtenfaitauatftlectbnnrgbhenolsmoanofiknraonnsvtrfetcrftdhesspwecuptcrwwopaahfdoiysoaognealgfditgnrtbelfllg o ',\n", + " 'thhifrhnrtfeofeanafttyslrrortheqseimlrrusehfeetaiwiuhbsirtnroisiniiemrrhtdpyeitoitrcnbalnhrphotoierlshwtspteotosnuoyrewhhcdhcmpiotnoasahijhtneeafrtousnegmrartxuwltotbeaeprtraptseaethneishrstnrrnstdoflaughsemgaksetiunytahyutnnnntigvhewwlapfireasailfapebcpcmhelatothwslhaduluvseeoeaeutatetaehefhtlbhgrsliateeacrnhtaahgetsinnufrepuelhrtmityiuduenncogindueiaeeuehstnlhhtoaaiiefdnyauninaoeyetihefoludaoearhuryerraeratiaahgtonswwiitsaltbumxaotoleotreonotoraobctgipvaeenlyrwfeotauwadtrwenlrtfprpelaiimlrronteqwicurendarafototnretelnrpeshpmdendewtdfoheedypnsenegnetetaneeartselugdsreorobudgwhpabrnyheekttrtrehnrredfntsoliawsypnihmotocoueitypoeekrnhtannltiriueemnreapiteahohnohumouvstkedenoieewkdpgtieioiinhsefauueunbhritrhaeehieyauaussrgaiwisdsrlitphgftwilsiiisuherormcemaoiisdelvluoeirsaeoidfitnobessantfgpodrsoirtftapltrneiolytysossoetpfnaiheaogeieradmitaetahygrrraselcflertneeaehhvmhivssnaroielmixjtpssotemrfbdihnheocbtcncotnusmpoeesenhtfietooenwotneeotltrigdoimeosifhoromlfdefestuleofiirwdbyqttzofanrdintntgoaealshpdmnealpthbtsnahuolpaamnlerspdnahveliacanhsklidoacdtaehojgadieaygwetndheeneugeeeeoordnrfyyemctwnttdetgsutaotooymfwrgihoerhnrsiofratfrepoenisyasssehhtneuayiwlhtepcuaatanpeeeluahlwelaoesuriinbsaeaeaetdcgcresoropsseenoslvudedtlsiittesetfsnoegilnernoeintwweihtlwrseilhiisrtdesndhrrflgntuarsdaseytdoadasenuttcwimenartteespootytnyocsoutmugcpadleadltedosbfdlefeaxahonrstiidpreihiascscdpbhilsieallnrfhontreoratemaiagkltmrecwrdaysnsvnwldnuekornnuttiounniunihvloeitehlaefnuiattafttlcerbnneghbsnlonmaokoifonarvnsnetfrftrcethdwspspeucwtrcawpodafhsoyigooalnaeigdfrtngltebgfll o ',\n", + " 'hthirfhntrfefoeaanftytslrrorhteqesimrlrueshfeetawiiubhsitrnriosiiniermrhdtpyietotircbnalhnrpohtoeirlhswtpstetoosunoyerwhchdhmcpitonosaahjihtenearftosunemgratrxulwtobteapertarptesaehtnesihrtsnrnrstodfluaghesmgkaseituntyahuytnnnntgivhwewlpafierasialfpaebpccmehlaotthswlhdaulvuseoeeauetaettaheefthlbghrsilateeacnrhtaahgtesinnuferpulehrmtitiyudeunnocgidnueaieeeuhsntlhthoaiaiedfnyuanianoeeytiehfouldaeoaruhryrerareataiahtgonwswitisatlbuxmaootletorenootroaocbtgpivaeenlrywfoetawuadrtwelnrtpfrpleaimilrorntqewiucrednarfaottonrteelrnpehspmedndwetdofhedeypsnengeneettaeneatrseulgdrseoorbugdwhapbrynheketttrrenhrrdefnstolaiwspynimhotcoouietyopeerknhatnntliruieenmrepaitaehonhohmuousvtkdeenioeekwdptgieoiiihnseafuuuenbrhithraeheieayuasusragiwsidslrithpgfwtilisiiusheorrmecmaioisedlvuloerisaoeidiftnboesasntgfpordsoritfatplrtneoilyytsossoeptfniaheoageeiramditeatayhgrrraslecfelrteneahehvhmivssnaoriemlixtjpsostermfbidhnehoctbcnoctnsumpeoesnehtifetooenowtneeottlridgoiemosfihoormldfefsetuelofiirwbdyqttzoafnridnttngoeaalhspdnmeaplthtbsnhauoplaanmlesrpdanhvleiaacnhksliodactdaeohjgdaieyagwtendehenuegeeeeorodnfryymectnwttedtgustatooomyfwgriheorhrnsiforaftreopensiyasssehhtnueaywilhetpcauatnapeeeluhalwleaoseuriinbaseaaeetcdgcersoorpsesensolvduedltsititeestfnsoeiglnrenoientwweithlwsreihliirstdsendrhrfglntaursadsetydodaasneutctwiemnatrtesepotoytynocosutumgcapdlaedletdobsfdelfexaahnorsitidrpeiihassccdbphislielalnfrhotnreroatmeaigaklmtrewcrdyasnvsnwdlnukeornnutitounniuinhvoleiethleafniuatatftltcebrnngehbnslomnaookifnoarnvsntefrtfrctehdswpsepuctwrcwapoadfhosyiogoanlaegidftrngtlebfgll o ',\n", + " 'ithhnfrhertfaofetnafltysrrroqthemseiulrrfsehaeetuiwiihbsrrtnioiseniihmrrytdpoeitcitrlnbapnhrohotliertshwesptsotoynuohrewhhcdicmpootnhasatijhaneeofrteusnagmrurtxowltatbeteprtrapeseaethnrishrstntrnsldofhauggsemeaksntiuhytanyuttnnnhigvlewwiapfsreafailbapemcpcahelhtothwslladueuvsaeoeaeutatetfehebhtlshgrtliaceeatrnhgaahietsfnnuureprelhttmidyiunuenicogendueiaesuehhtnlahtoeaiiyfdniaunenaoiyetohefaludroeayhuraerrterahiaangtoiswwaitsultbomxaetoleotrtonoooragbctaipvleenfyrwaeotduwaetrwtnlrpfprielarimltronieqwecurrndataforotnleteenrpmshpddendewtefohpedynnseeegnatetaneeertsdlugosreurobhdgwrpabenyhtektertrrhnrnedfltsosiawiypnthmouocoyeitepoehkrnntanrltieiueemnrtapioeahhhnouumokvstnedeeoiepwkdegtiiioienhsufaubeunthrierhaeehiayaurusswgaisisdtrlifphgltwiisiiesuhmroracemsoiivdeleluoairsdeoinfitsobetsanofgpodrsfirtltapetrnyiolotysessontpfeaiheaogaiertdmiaaetrhygsrrafelctleraneevehhvmhiassneroixlmisjtpesotbmrfndihcheonbtcncotpusmsoeetenhtfienooenwotteeoiltrigdosmeooifhlromffdeuestfleowiirqdbyottzrfantdinontglaeadshpamnehlptnbtsoahualpaemnldrspvnahaelihcanisklcdoaedtaghojeadiwaygdetnnheeeeugoeeenordyrfytemctwntgdetasutootowymfhrgihoerinrsaofretfrnpoeaisyesssnhhtyeuahiwlcteptuaaeanpueelwahloelaresubiinasaeteaecdcgoressropnseevosldudeitlseittfsetesnongiloernteiniwwewhtlirseilhidsrtdesnfhrrtlgnsuaredasoytdsadatenuitcwamenerttoesptotycnyotsoucmuglpadleadoteddsbfelefhaxasonrdtiiipreshiadcscipbhelsinallorfhentrtoraiemalagketmrdcwrnayswsvnuldnrekotnnuutiounnivnihiloeltehnaeftuiattafetlcnrbnbeghosnlonmafkoironanvnsretfcftrdethswspcpeucwtroawphdafisoyagooelnafigdgrtnbltelgfl o',\n", + " 'ihthnrfhetrfafoetanflytsrrroqhtemesiurlrfeshaeetuwiiibhsrtrniioseinihrmrydtpoietctirlbnaphnroohtleirthswepststooyunoherwhchdimcpotonhsaatjihaeneorftesunamgrutrxolwtabtetpertarpeesaehtnrsihrtsntnrslodfhuaggesmekasnituhtyanuyttnnnhgivlwewipafserafialbpaempccaehlhotthswlldauevusaoeeauetaettfheebthlsghrtilaceeatnrhgaahitesfnnuuerprlehtmtidiyuneuniocgednueaieseuhhntlathoeiaiydfniuaneanoieytoehfauldreoayuhrarertreahaiantgoiwswatisutlboxmaeotletortnoooroagcbtapivleenfrywaoetdwuaertwtlnrppfrilearmiltorniqeweucrrdnatfaortonlteeernpmhspdedndweteofhpdeynsneegenaettaeneetrsdulgorseuorbhgdwrapbeynhtketetrrrnhrndeflstosaiwipyntmhoucooyieteopehrknnatnrtlieuieenmrtpaioaehhnhoumuoksvtndeeeioepkwdetgiioiiehnsuafubuentrhiehraeheiaayursuswagissidtlrifhpglwtiiisieushmorraecmsioivedleuloarisdoeiniftsboetasnogfpordsfritlatpertnyoiloytsessonptfeiaheoagaeirtmdiaeatryhgsrraflectelraenevhehvhmiassneorixmlistjpeostbrmfnidhcehontbcnoctpsumseoetnehtifenooenowtteeoitlridgosemoofihlormfdfeusetfelowiirqbdyottzrafntidnotngleaadhspanmehpltntbsohauaplaenmldsrpvanhaleihacnikslcodaetdagohjedaiwyagdtenneheeuegoeeenrodyfrytmectnwtgedtaustotoowmyfhgriheorirnsaforeftrnopeasiyesssnhhtyueahwilcetptauaenapueelwhalolearseubiinaasetaeeccdgoerssorpnesevsolddueiltsetitfestensoniglorentieniwwewthlisreihlidrstdsenfrhrtglnsaureadsotydsdaatneuictwaemnetrtosepttoycynotosucumglapdlaedoetddbsfeelfhxaasnorditiirpesihadsccibpheslinlalofrhetnrtroaimealgakemtrdwcrnyaswvsnudlnrkeotnnuuitounnivinhiolelethneaftiuatatfeltcnbrnbgehonslomnafokirnoannvsrtefctfrdtehsswpcepuctwrowaphadfiosyaogoenlafgidgtrnbtlelfgl o',\n", + " 'tihhfnrhretfoafentaftlysrrrotqhesmeilurrsfeheaetiuwihibsrrtnoiisneiimhrrtydpeoitictrnlbanphrhootilersthwseptostonyuorhewhhcdcimpootnahsaitjhnaeefortuesngamrrutxwolttabeetprrtapseeatehnirshsrtnrtnsdlofahugsgemaekstniuyhtaynutntnnihgvelwwaipfrseaafilabpecmpchaelthotwhslalduuevseaoeeauttaetefhehbtlhsgrltiaeceartnhagaheitsnfnurueperlhttmiydiuunenciogneduieaeusehthnlhatoaeiifydnaiunneaoyiethoeflaudoreahyurearretraihaagntosiwwiatslutbmoxateoloetrotnooorabgctiapvelenyfrweaotudwaterwntlrfppreilairmlrtoneiqwceurnrdaatfoortneltenerpsmhpddenedwtfeohepdynnseeegntaetnaeeretsldugsoreruobdhgwprabneyhetktretrhrnrendftlsoisawyipnhtmooucoeyitpeoekhrntnanlrtiieuemenratpieoahhhnouumovkstendeoeiewpkdgetiiioinehsfuauebunhtrirehaeehiyaauurssgwaiissdrtlipfhgtlwisiiiseuhrmorcaemosiidvelleuoiarsedoifnitosbestanfogpdorsifrttlapterniyoltoyssesotnpfaeihaeogiaerdtmiaaethrygrsraeflclternaeeevhhmvhisasnreoilxmijstpseotmbrfdnihhceobntccnotupsmoseeetnhftieonoewnoteteolitrgidomseoiofhrlomffdeeustlfeoiwirdqbytotzfrandtinnotgaleasdhpmanelhptbntsaohulapamenlrdspnvahealichansikldcoadetahgojaediawygedtnhneeeeugeoeeonrdryfyetmcwtntdgetsautootoywmfrhgiohernirsoafrtefrpnoeiasysesshnhteyuaihwltceputaaaenpeuelawhleolaersuibinsaaeetaedccgroesrsopsneeovsluddetilsiettsfetsenognileornetinwiwehwtlriselihisdrtedsnhfrrltgnusardeasyotdasdaetnuticwmaenretteospottyncyostoumcugpladeladtoedsdbfleefahxaosnrtdiipirehsiacdscpibhlesianllrofhnetrotraeimaalgktemrcdwranysswvnludnerkontnutuionuninvihlioetlehanefutiattaftelcrnbnebghsonlnomakfoiornavnnsertffctredthwssppceuwctraowpdhafsioygaoolenaifgdrgtnlbteglfl o',\n", + " 'hithrnfhterffaoeatnfyltsrrrohqteemsirulrefsheaetwuiibihstrrniiosienirhmrdytpioettcirblnahpnroohtelirhtswpesttsoouynoehrwchhdmicptoonshaajtiheaneroftseunmagrturxlowtbatepteratrpeesahetnsrihtrsnntrsoldfuhagegsmkeasintuthyaunytntnnghivwlewpiafesraifalpbaepmcceahlohttshwldlauveusoaeeuaeteatthfeetbhlgshritlaeceantrhagahtiesnfnueurplrehmttiidyuenunoicgdenuaeieesuhnhtltahoieaidyfnuianaenoeiyteohfualderoauyhrraerrteaahiatngowiswtaistulbxomaoetlteorntoorooacgbtpaivelenrfywoaetwduaretwltnrppfrlieamrilotrnqiewuecrdrnaftaotrontleerenphmspeddnwdetoefhdpeysnnegeeneatteanetersudlgroseourbghdwarpbyenhktetterrnrhrdnefsltoasiwpiynmthocuooiyetoeperhknantntrliueienemrptaiaoehnhhomuuoskvtdneeieoekpwdtegioiiihensaufuubenrthiheraheeiaayusrusawgissidltrihfpgwltiiisiueshomrreacmisoievdlueloraisodeiinftbsoeatsngofprodsrfitaltpretnoyilyotssesopntfieahoeageairmtdieaatyrhgrsralfecetlreanehvehhvmisasnoerimxlitsjpoestrbmfindhechotnbconctspumesoentehitfeonoeonwteteotilrdigoesmofoiholrmdffesuetefloiwirbqdytotzarfnitdntongelaahdspnamephlttnbshoaupalanemlsdrpavnhlaeiahcnkislocdatedaoghjdeaiywagtdenenheueegeoeernodfyrymtecntwtegdtuasttooomwyfghriehorrinsfaorfetronpesaiysesshnhtuyeawhilectpatuaneapeuelhwalloeasreuibinaaseateeccdgeorsosrpensesvoldduelitsteitefstnesoinglroenitenwiwetwhlsirehilirdstsdenrfhrgtlnasuraedstoyddsaanteucitweamntertsoepttoyycnootsuucmgalpdaledeotdbdsfeelfxhaansoridtiripeishasdccbiphselilnalforhtenrrtoamieaglakmetrwdcrynasvwsndulnkreontnuiutonuniivnhoileelthenafituaattfletcbnrngbehnoslmonaofkinroannvstreftcfrtdehsswpecputcwrwoapahdfoisyoagonelagfidtgrntbleflgl o',\n", + " 'thihfrnhrtefofaenatftylsrrrothqesemilrursefheeatiwuihbisrtrnoiisnieimrhrtdypeiotitcrnblanhprhootielrshtwspetotsonuyorehwhchdcmipotonashaijthneaefrotusengmarrtuxwlottbaeeptrratpseeathenisrhstrnrntsdolfauhgsegmakestinuythayuntnntnighvewlwapifresaaiflapbecpmchealtohtwshladluuveseoaeeuatteatehfehtblhgsrlitaeecarnthaaghetisnnfureupelrhtmtiyiduuenncoigndeuiaeeueshtnhlhtaoaieifdynauinnaeoyeitheofluadoerahuyrerarertaiahagtnoswiwitasltubmxoatoeloterontooroabcgtipaveelnyrfweoatuwdatrewnltrfppreliaimrlrotneqiwcuerndraaftootrnetlenrepshmpdednewdtfoehedpynsneegenteatneaertesludgsroeroubdghwparbnyehekttrterhnrrednftsloiaswypinhmtoocuoeiytpoeekrhntannltriiueemneraptieaohhnhoumuovsktedneoieewkpdgteiioiinhesfauueubnhrtirheaeheiyaauusrsgawiissdrltiphfgtwlisiiisuehromrceamoisidevllueoiraseodifintobsesatnfgopdrosirfttalptrenioyltyossseotpnfaiehaoegieardmtiaeathyrgrrsaelfcletrneaeehvhmhvissanroeilmxijtspsoetmrbfdinhhecobtnccontuspmoeseenthfiteoonewonteetoltirgdiomesoifohrolmfdfeesutlefoiiwrdbqyttozfarnditnntogaelashdpmnaelphtbtnsahoulpaamnelrsdpnavhelaicahnskildocadteahogjadeiaywgetdnheneeuegeeoeorndrfyyemtcwnttdegtsuatotooymwfrghioehrnrisofartferponeisaysseshhnteuyaiwhltecpuataanepeeulahwleloaesruiibnsaaeeatedccgreosrospseneosvluddetlisitetseftsneoginleroneitnwwiehtwlrsielhiisrdtesdnhrfrlgtnuasrdaesytodadsaentutciwmeanrtetesopottynycosotumucgpaldealdteodsbdfleefaxhaonsrtidipriehisacsdcpbihlseialnlrfohnterortaemiaaglktmercwdraynssvwnldunekronntutiuonnuinivhloietelhaenfuitatatftlecrbnnegbhsnolnmoakofionravnnsetrfftcretdhwssppecuwtcrawopdahfsoiygoaolneaigfdrtgnltbegfll o',\n", + " 'htihrfnhtreffoaeantfytlsrrrohtqeesmirluresfheeatwiuibhistrrnioisineirmhrdtypieotticrbnlahnprohoteilrhstwpsettosounyoerhwchhdmciptoonsahajithenaerfotsuenmgartruxlwotbtaepetrartpeseahtensirhtsrnnrtsodlfuahgesgmkaesitnutyhauyntnntngihvwelwpaifersaiaflpabepcmcehalothtswhldaluvuesoeaeueatetathefethblghsriltaeecanrthaaghteisnnfueruplerhmttiiydueunnocigdneuaieeeushnthlthaoiaeidfynuainaneoeyitehofuladeorauhyrrearretaaihatgnowsiwtiastlubxmoaoteltoernotorooacbgtpiaveelnryfwoeatwudartewlntrpfprleiamirlortnqeiwucerdnrafatotorntelernephsmpeddnwedtofehdepysnnegeenetatenaetresuldgrsoeorubgdhwaprbynehketttrernhrrdenfstloaiswpyinmhtocouoieytopeerkhnatnntlriuieenmerpatiaeohnhhomuuosvktdeneioeekwpdtgeioiiihnesafuuuebnrhtihreaheeiayausursagwisisdlrtihpfgwtliisiiusehormrecamiosiedvluleoriasoediifntboseastngfoprdosriftatlprtenoiylytossseoptnfiaehoaegeiarmdtieaatyhrgrrsalefceltrenaehevhhmvissanoreimlxitjsposetrmbfidnhehcotbncocntsupmeosenethifteooneownteetotlirdgioemsofiohorlmdffeseutelfoiiwrbdqyttozafrnidtntnogealahsdpnmaeplhttbnshaouplaanmelsrdpanvhleaiachnksilodcatdeaohgjdaeiyawgtednehneueegeeoerondfryymetcnwttedgtusattooomywfgrhieohrrnisfoarfteropnesiaysseshhntueyawihletcpautanaepeeulhawlleoaseruiibnasaeaetecdcgerosorspesnesovldudeltistietesftnseoignlreonietnwwiethwlsriehliirsdtsednrhfrgltnausradestyoddasanetuctiwemantretseoptotyyncoostuumcgapldaeldetodbsdfelefxahanosritdirpieihsascdcbpihsleilanlfrohtnerrotameiagalkmterwcdryansvswndlunkeronntuituonnuiinvholieetlheanfiutaattfltecbrnngebhnsolmnoaokfinoranvnsterftfcrtedhswspepcutwcrwaopadhfosiyogaonleagifdtrgntlbefgll o']" + ] + }, + "execution_count": 21, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "[column_transposition_decipher(c6bs, p, fillvalue=' ') for p in permutations(range(4))]" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'hithhnfrferteaofftnasltyorrreqthimserulrhfsetaeeiuiwsihbnrrtsioiienirhmrpytdtoeircitalnbrpnhtohorliewtshtesposotoynuwhredhhcpicmnootahashtijeanetofrneusragmxurttowleatbrtepptraaesenethhrisnrststrnfldoghaumgseseakuntiahyttnyuntnnvhigwlewfiapasrelfaiebapcmcplahethtolhwsuladseuveaeotaeutateefehlbhtrshgatliaceehtrnhgaasietufnnpurehrelittmudyinnuegicouendeeiahsuelhtnoahtieainyfdniauoenatiyefohedaluaroeryhuraeraterahiaongtwiswsaitbultaomxletoreototonaoortgbcvaipnleewfyrtaeoaduwwetrrtnlrpfpaiellrimntrowieqrecuarndotafnroteletpenrpmshnddetdewhefoypedennsneegtateeanesertgdlueosrburowhdgbrpahenyttekrertrrhnfnedoltswsianiypothmouoctyeieeponhkrnntairlteeiuremnitaphoeaohhnouumtkvsenedeeoidpwkiegtiiiosenhuufanbeuithraerhieehuayasrusiwgadsisitrlgfphiltwiisihesurmromaceisoilvdeoelusairideotnfiesobntsapofgsodrtfirpltanetrlyiosotyoessfntpheaigeaoraieitdmtaaegrhyasrrcfelrtleeanehvehivmhnassieroixlmpsjttesofbmrhndiochecnbttncompusesoehtenetfienootnwooteeriltoigdosmehoifmlroeffdtuesoflerwiiyqdbzottnrfantdigontalaepdsheamnthlpsnbtuoahaalplemnpdrshvnaiaelnhcaliskacdoaedtjghoieadgwayndetenhegeeueoeednoryyrfctemttwntgdetasuoootfwymihrgrhoesinrraofretfenpoyaissesstnhhayeulhiwpcteatuapeanlueelwahaoeluresnbiieasaeteagcdcsorepsroenselvosedudsitlteittfseoesnlnginoernteieiwwlwhteirsiilhtdsrndesrfhrntlgrsuasedadoytasadutenwitcnametertpoesytotocnyutsogcmudlpadleadotefdsbfeleahaxrsonidtieiprashicdcshipbielslnalhorfrentatoraiemklagretmrdcwsnaynwsvnuldorekutnnoutiiunnhvnieilohltefnaeatuifttacetlnnrbhbeglosnaonmifkoaronsnvnfretrcfthdetpswsucpercwtpoawfhdayisooagoaelndfigngrtebltllgfo'" + ] + }, + "execution_count": 22, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "c6bs" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'hit'" + ] + }, + "execution_count": 23, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "''.join([c[0] for c in every_nth(c6bs, 3)])" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "28" + ] + }, + "execution_count": 24, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "c6bs.find('e', 13)" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "1.6083844580777096" + ] + }, + "execution_count": 25, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "len(c6bs) / 978" + ] + }, + { + "cell_type": "code", + "execution_count": 26, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'bnrrt'" + ] + }, + "execution_count": 26, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "c6bs[55:60]" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "[('heih', 177), ('heit', 207), ('heip', 307), ('heil', 522)]" + ] + }, + "execution_count": 27, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "[(c6bs[0] + c6bs[i] + c6bs[2*i] + c6bs[3*i], i) for i in range(int(len(c6bs) / 3)) if c6bs[i] == 'e' and c6bs[2*i] == 'i' ]" + ] + }, + { + "cell_type": "code", + "execution_count": 28, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "['hithhnfrferteaofftnasltyorrreqthimserulrhfsetaeeiuiwsihbnrrtsioiienirhmrpytdtoeircitalnbrpnhtohorliewtshtesposotoynuwhredhhcpicmnootahashtijeanetofrneusragmxurttowleatbrtepptraaesenethhrisnrststrnfldoghaumgseseakuntiahyttnyuntnnvhigwlewfiapasrelfaiebapcmcplahethtolhwsuladseuveaeotaeutateefehlbhtrshgatliaceehtrnhgaasietufnnpurehrelittmudyinnuegicouendeeiahsuelhtnoahtieainyfdniauoenatiyefohedaluaroeryhuraeraterahiaongtwiswsaitbultaomxletoreototonaoortgbcvaipnleewfyrtaeoaduwwetrrtnlrpfpaiellrimntrowieqrecuarndotafnrotel',\n", + " 'etpenrpmshnddetdewhefoypedennsneegtateeanesertgdlueosrburowhdgbrpahenyttekrertrrhnfnedoltswsianiypothmouoctyeieeponhkrnntairlteeiuremnitaphoeaohhnouumtkvsenedeeoidpwkiegtiiiosenhuufanbeuithraerhieehuayasrusiwgadsisitrlgfphiltwiisihesurmromaceisoilvdeoelusairideotnfiesobntsapofgsodrtfirpltanetrlyiosotyoessfntpheaigeaoraieitdmtaaegrhyasrrcfelrtleeanehvehivmhnassieroixlmpsjttesofbmrhndiochecnbttncompusesoehtenetfienootnwooteeriltoigdosmehoifmlroeffdtuesoflerwiiyqdbzottnrfantdigontalaepdsheamnthlpsnbtuoahaalplemnpdrshvna',\n", + " 'iaelnhcaliskacdoaedtjghoieadgwayndetenhegeeueoeednoryyrfctemttwntgdetasuoootfwymihrgrhoesinrraofretfenpoyaissesstnhhayeulhiwpcteatuapeanlueelwahaoeluresnbiieasaeteagcdcsorepsroenselvosedudsitlteittfseoesnlnginoernteieiwwlwhteirsiilhtdsrndesrfhrntlgrsuasedadoytasadutenwitcnametertpoesytotocnyutsogcmudlpadleadotefdsbfeleahaxrsonidtieiprashicdcshipbielslnalhorfrentatoraiemklagretmrdcwsnaynwsvnuldorekutnnoutiiunnhvnieilohltefnaeatuifttacetlnnrbhbeglosnaonmifkoaronsnvnfretrcfthdetpswsucpercwtpoawfhdayisooagoaelndfigngrteb',\n", + " 'ltllgfo']" + ] + }, + "execution_count": 28, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "[c for c in chunks(c6bs, 522)]" + ] + }, + { + "cell_type": "code", + "execution_count": 29, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'HITHH NFRFE RTEAO FFTNA SLTYO RRREQ THIMS ERULR HFSET AEEIU IWSIH BNRRT SIOII ENIRH MRPYT DTOEI RCITA LNBRP NHTOH ORLIE WTSHT ESPOS OTOYN UWHRE DHHCP ICMNO OTAHA SHTIJ EANET OFRNE USRAG MXURT TOWLE ATBRT EPPTR AAESE NETHH RISNR STSTR NFLDO GHAUM GSESE AKUNT IAHYT TNYUN TNNVH IGWLE WFIAP ASREL FAIEB APCMC PLAHE THTOL HWSUL ADSEU VEAEO TAEUT ATEEF EHLBH TRSHG ATLIA CEEHT RNHGA ASIET UFNNP UREHR ELITT MUDYI NNUEG ICOUE NDEEI AHSUE LHTNO AHTIE AINYF DNIAU OENAT IYEFO HEDAL UAROE RYHUR AERAT ERAHI AONGT WISWS AITBU LTAOM XLETO REOTO TONAO ORTGB CVAIP NLEEW FYRTA EOADU WWETR RTNLR PFPAI ELLRI MNTRO WIEQR ECUAR NDOTA FNROT ELETP ENRPM SHNDD ETDEW HEFOY PEDEN NSNEE GTATE EANES ERTGD LUEOS RBURO WHDGB RPAHE NYTTE KRERT RRHNF NEDOL TSWSI ANIYP OTHMO UOCTY EIEEP ONHKR NNTAI RLTEE IUREM NITAP HOEAO HHNOU UMTKV SENED EEOID PWKIE GTIII OSENH UUFAN BEUIT HRAER HIEEH UAYAS RUSIW GADSI SITRL GFPHI LTWII SIHES URMRO MACEI SOILV DEOEL USAIR IDEOT NFIES OBNTS APOFG SODRT FIRPL TANET RLYIO SOTYO ESSFN TPHEA IGEAO RAIEI TDMTA AEGRH YASRR CFELR TLEEA NEHVE HIVMH NASSI EROIX LMPSJ TTESO FBMRH NDIOC HECNB TTNCO MPUSE SOEHT ENETF IENOO TNWOO TEERI LTOIG DOSME HOIFM LROEF FDTUE SOFLE RWIIY QDBZO TTNRF ANTDI GONTA LAEPD SHEAM NTHLP SNBTU OAHAA LPLEM NPDRS HVNAI AELNH CALIS KACDO AEDTJ GHOIE ADGWA YNDET ENHEG EEUEO EEDNO RYYRF CTEMT TWNTG DETAS UOOOT FWYMI HRGRH OESIN RRAOF RETFE NPOYA ISSES STNHH AYEUL HIWPC TEATU APEAN LUEEL WAHAO ELURE SNBII EASAE TEAGC DCSOR EPSRO ENSEL VOSED UDSIT LTEIT TFSEO ESNLN GINOE RNTEI EIWWL WHTEI RSIIL HTDSR NDESR FHRNT LGRSU ASEDA DOYTA SADUT ENWIT CNAME TERTP OESYT OTOCN YUTSO GCMUD LPADL EADOT EFDSB FELEA HAXRS ONIDT IEIPR ASHIC DCSHI PBIEL SLNAL HORFR ENTAT ORAIE MKLAG RETMR DCWSN AYNWS VNULD OREKU TNNOU TIIUN NHVNI EILOH LTEFN AEATU IFTTA CETLN NRBHB EGLOS NAONM IFKOA RONSN VNFRE TRCFT HDETP SWSUC PERCW TPOAW FHDAY ISOOA GOAEL NDFIG NGRTE BLTLL GFO\\n'" + ] + }, + "execution_count": 29, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "c6b" + ] + }, + { + "cell_type": "code", + "execution_count": 30, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "[29, 503, 985]" + ] + }, + "execution_count": 30, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "[i for i in range(len(c6bs)) if c6bs[i] == 'q']" + ] + }, + { + "cell_type": "code", + "execution_count": 31, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'hithhnfrfer'" + ] + }, + "execution_count": 31, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "''.join([c[0] for c in every_nth(c6bs, 11)])" + ] + }, + { + "cell_type": "code", + "execution_count": 32, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'hithhnfrferte'" + ] + }, + "execution_count": 32, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "''.join([c[0] for c in every_nth(c6bs, 13)])" + ] + }, + { + "cell_type": "code", + "execution_count": 33, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'hhrnrnumeodti'" + ] + }, + "execution_count": 33, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "''.join([c[0] for c in chunks(c6bs, 121)])" + ] + }, + { + "cell_type": "code", + "execution_count": 34, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'harrseehthoexttnsneitetghuydoihuouocttiuedeeerrsohiaeefhifsiitiohtreiehseiiszomhhihtdtoeentencsllilrdieodhpbrlakhntnsdwon'" + ] + }, + "execution_count": 34, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "''.join([c[0] for c in chunks(c6bs, 13)])" + ] + }, + { + "cell_type": "code", + "execution_count": 35, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "True" + ] + }, + "execution_count": 35, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "'l' in ''.join([c[0] for c in chunks(c6bs, 13)])" + ] + }, + { + "cell_type": "code", + "execution_count": 36, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "['httmtbnoreohaegaasdetgrmlvtshtenenfiargurredrmcrpwnaegennckehmoinhutioddnrtegmranmmneieseetoetmaaoeoceyiesieaidnseewtrdtttmoaicnagariounanfcfor',\n", + " 'ieysaniepwthhtmtenoanwecheehtulueodyratleteupnuomhsnobkeitriotiibisrimeettrsetrnaprbseemfrtnaunecitettmnntwaoecsiorhdnaeeouthesatryeuhirostphat',\n", + " 'taoeerrintocaoxbsrgkyllpwaegrfieianeotwtogwwftatsenesrrdyynuekdoeeilsaoosflsaacesshtonrefwntmopldeeeeairpnpneasetentstdnrcdeaihloenknlfbnnhedee',\n", + " 'horrerhrhsypsfureshuueflsefanntgahifeeiatbfwprrehfesrpeopenravpsuewgicetaiyfoafhsjnteoihdiranadnoandmshrohcllsollsterlowtnlfxpihrtwuntthmvdralb',\n", + " 'hfruitmcthnihrrtntannwaauoethntihtaorrsoocyeaonlnoeebarloiteosweihgfhelnprinreevitdnholotiflthrhadhnturayhtuuarvtneingyipypdrrpoamsthetbinecynl',\n", + " 'nfrlusriotuctnteesuttfihlthlgpmcsiuhyawmtvrtiwdedygruhttteamhekntuapeiufopotagleetictttiuyaahascegeotogoaaeereeoelirdrttouassabrirvnvfaefftwidt',\n", + " 'fteriipthewmietpttminieeaaliauuoueoehhsxoatreiotdpttrersheinhnihhadhsssiflspirrhreooenofeqnelahadwgrworfiyaeetpsinesesacetdbosifednnnncgkrptsfl',\n", + " 'rnqhwoyaoshnjuophrganabtdebaardueaeduialniarletpeeagonrwmprineeurysiuoaegtohehtioscmnwimsdtpplvltaeynohrsetlsesetgiisusnsslfnhermcuoiaeloespoil',\n", + " 'fatfsitlrproeswthnshvpahsuhcseyelinaraieapetlqaetdtdwyhsooltodguaailriissateiylviohpeoglobddspnijyeyttoesuuwnardtiwiraaayoeeiilekwlueetoatwoogg',\n", + " 'eshsiidnloeoarlrrfeyhaptetteihinhnalaottononrrfndeelhtniuntauetfesstmlroonyataemxfeutodrfzisnlasgnurgfetelaabgoufnwlfsdmtgaldcsnlsdtialsrrsaanf',\n", + " 'rliehetbisdtnaeailstiscouareerndtytuenboolalienreneudtfaohepueiarriwrvibdeoidsehlbcsftoologhbeikhdefdwsfshphicedsolhheueocdetdltanoiltnnocuwggo']" + ] + }, + "execution_count": 36, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "every_nth(c6bs, 11)" + ] + }, + { + "cell_type": "code", + "execution_count": 37, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "['hetuehroera',\n", + " 'iteloirnnny',\n", + " 'toetsectptn',\n", + " 'hffarefaolw',\n", + " 'hreobhelygs',\n", + " 'nnhmuulaarv',\n", + " 'felxrareisn',\n", + " 'rubloytpsuu',\n", + " 'fshewaldsal',\n", + " 'ertthsesesd',\n", + " 'rarodrehseo',\n", + " 'tgsrguaesdr',\n", + " 'emhebsnatae',\n", + " 'axgoriemndk',\n", + " 'ouatpwhnhou',\n", + " 'frtoagvthyt',\n", + " 'ftlthaehatn',\n", + " 'ttioedhlyan',\n", + " 'noannsipeso',\n", + " 'awcayivsuau',\n", + " 'sleotsmnldt',\n", + " 'leeotihbhui',\n", + " 'tahretntiti',\n", + " 'ytttkrauweu',\n", + " 'obrgrlsopnn',\n", + " 'rrnbegsacwn',\n", + " 'rthcrfihtih',\n", + " 'regvtpeaetv',\n", + " 'epaarhraacn',\n", + " 'qpairioltni',\n", + " 'ttsphlipuae',\n", + " 'hrinntxlami',\n", + " 'iaelfwlepel',\n", + " 'matenimmeto',\n", + " 'seueeipnaeh',\n", + " 'esfwdsspnrl',\n", + " 'renfoijdltt',\n", + " 'unnylhtrupe',\n", + " 'leprtetseof',\n", + " 'rtutsseheen',\n", + " 'hhrawusvlsa',\n", + " 'fheesronwye',\n", + " 'srhoimfaata',\n", + " 'eiraarbihot',\n", + " 'tsednomaatu',\n", + " 'anluimreooi',\n", + " 'eriwyahlecf',\n", + " 'estwpcnnlnt',\n", + " 'itteoedhuyt',\n", + " 'usmttiicrua',\n", + " 'iturhsoaetc',\n", + " 'wrdrmoclsse',\n", + " 'snytoihinot',\n", + " 'ifinulesbgl',\n", + " 'hlnlovckicn',\n", + " 'bdnrcdnaimn',\n", + " 'nouptebceur',\n", + " 'rgefyotdadb',\n", + " 'rhgpeetoslh',\n", + " 'taiailnaapb',\n", + " 'sucieuceeae',\n", + " 'imoeesodtdg',\n", + " 'ogulpamtell',\n", + " 'iseloipjaeo',\n", + " 'ienrnruggas',\n", + " 'esdihishcdn',\n", + " 'neemkdeodoa',\n", + " 'iaenresicto',\n", + " 'rkitnooesen',\n", + " 'huarnteaofm',\n", + " 'mnhotnhdrdi',\n", + " 'rtswaftgesf',\n", + " 'piuiiiewpbk',\n", + " 'yaeerenasfo',\n", + " 'thlqlseyrea',\n", + " 'dyhrtotnolr',\n", + " 'ttteebfdeeo',\n", + " 'otncenienan',\n", + " 'enouitetshs',\n", + " 'iyaausneean',\n", + " 'ruhrraonlxv',\n", + " 'cntnepohvrn',\n", + " 'itidmoteosf',\n", + " 'tneonfngsor',\n", + " 'anatigweene',\n", + " 'lviatsoedit',\n", + " 'nhnfaoouudr',\n", + " 'biynpdtedtc',\n", + " 'rgfrhreosif',\n", + " 'pwdooteeiet',\n", + " 'nlntefretih',\n", + " 'heieaiidlpd',\n", + " 'twalorlntre',\n", + " 'ofuehptoeat',\n", + " 'hiothlorisp',\n", + " 'oaepntiyths',\n", + " 'rpneoagytiw',\n", + " 'laanundrfcs',\n", + " 'istrueofsdu',\n", + " 'eripmtscecc',\n", + " 'weymtrmtosp',\n", + " 'tleskleeehe',\n", + " 'sffhvyhmsir',\n", + " 'haonsiotnpc',\n", + " 'tihdeoitlbw',\n", + " 'eeednsfwnit',\n", + " 'sbdeeomngep',\n", + " 'paatdtltilo',\n", + " 'opldeyrgnsa',\n", + " 'scueeoodolw',\n", + " 'omawoeeeenf',\n", + " 'tcrhisftrah',\n", + " 'opoedsfanld',\n", + " 'ylefpfdstha',\n", + " 'narowntueoy',\n", + " 'uhyyktuoiri',\n", + " 'wehpipeoefs',\n", + " 'htueehsoiro',\n", + " 'rhrdgeotweo',\n", + " 'etaetaffwna',\n", + " 'doeniilwltg',\n", + " 'hlrnigeywao',\n", + " 'hhasiermhta',\n", + " 'cwtnoawitoe',\n", + " 'pseesoiherl',\n", + " 'iureeririan',\n", + " 'clagnaygrid',\n", + " 'mahthiqrsef',\n", + " 'ndiauedhimi',\n", + " 'osatuiboikg',\n", + " 'oeoeftzelln',\n", + " 'tuneadoshag',\n", + " 'avganmtitgr',\n", + " 'hetnbttndrt',\n", + " 'aaweeanrsee',\n", + " 'seisuarrrtb',\n", + " 'hoseiefanml',\n", + " 'ttwrtgaodrt',\n", + " 'iasthrnfedl',\n", + " 'jeagrhtrscl',\n", + " 'euidayderwg',\n", + " 'attleaitfsf',\n", + " 'nabursgfhno']" + ] + }, + "execution_count": 37, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "every_nth(c6bs, 143)" + ] + }, + { + "cell_type": "code", + "execution_count": 38, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "[(29, 37), (503, 507), (985, 973)]" + ] + }, + "execution_count": 38, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "[(q, u) for q in [i for i in range(len(c6bs)) if c6bs[i] == 'q'] for u in [i for i in range(len(c6bs)) if c6bs[i] == 'u'] if abs(q-u) < 13]" + ] + }, + { + "cell_type": "code", + "execution_count": 39, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "['harrseehthoexttnsneitetghuydoihuouocttiuedeeerrsohiaeefhifsiitiohtreiehseiiszomhhihtdtoeentencsllilrdieodhpbrlakhntnsdwon',\n", + " 'iorhiniterttuehfeywehueagrieaaernltvanmalddeoptwukuongaiwpuldsrsedrheseenlfoonnavsoenwtsnhelbdetnwhnotsgoarieayuvalanetog',\n", + " 'tfefhiroseaorphlaufbtvetaenehudagtoaelnreeeasarsorrhetneghrveapoamcvrocsotmftttankinonfiphawiclegwttycyctxaengntnenovtpar',\n", + " 'hfqsbrchpdhftprdkniaoeflahnitoaetatiortnttnnrhricnehdibeaimdopltitfeofnooolltahlaaehrtwnoataisviildltntmersltrwniannnpogt',\n", + " 'httenhiooharttioutaplaeisruaielrwoopaprdpdnebehatnmneiehdlretotygaehibbetirenllpicaeygyryyuheootnwsgaaoufshsaesnetrmfsaoe',\n", + " 'nnhtrmtrshsnorsgnnpchehaieehenuaimnndfooeessunnnytnoeiuustoonfaoealixmthngorrapladdgydmraeaaarstohrrsmtddoilttvoiubirwwab',\n", + " 'faiarralochewanhtnamwolcelgsaaatsxalupwtnwneryfieaiuooiaiwmefgneaervlrttwdewfeseeogereiaiuposeefetnsaeolsncnomnulihfesfel',\n", + " 'rsmetplitptularaivscstbetiiuitrewloewaiarherotnyiituistysialisesogtmmhneoofiapnmlawefthosleeapdsredudtcpbidarrutofbktuhlt',\n", + " 'flsesyneoiiseesuahrpuaheutceniorseoewiefpeetwteperamdehaiicueotsrrlhpncnosfindbnneaucarfshalesuenieauenafdcladlihteorcdnl',\n", + " 'eteiitbwycjrastmhiellethftolyyeaatrweeqnmfgghedoelptpnrstsessdrfahensdoetmdytstphdyetsgreinutrdotrsstrydetshicdiltgacpadl',\n", + " 'ryruodrtnmeatesgyglaaurtnmuhferhiotftlrrsotddkotpthkwharriiaorlniyeajimteetqdhudctnoeureswlreoseesreetullihoewoutalrfeyfg',\n", + " 'touiitpsunagbntstwfhdtsrnuetdfyitrgyrleohyalgrlhoeovkueulhsibtyteaastopfehudieorajdemohtspueaeisiifdnpteeeirmsrnecootriif',\n", + " 'erlwionhwonmreretlaesahnpdnnnohabebrrrctnptubetmneesiursgeornfipisnstcuiroebgaaslgeetooftcesgntneihawosaaipfknenfesnhcsgo']" + ] + }, + "execution_count": 39, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "every_nth(c6bs, 13)" + ] + }, + { + "cell_type": "code", + "execution_count": 40, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "['hthithnfrfere',\n", + " 'foaoftnasltyr',\n", + " 'qurrethimserl',\n", + " 'sirhfetaeeiuw',\n", + " 'bisihnrrtsioi',\n", + " 'rtenihmrpytdo',\n", + " 'cpeiritalnbrn',\n", + " 'hshtoorliewth',\n", + " 'putesosotoynw',\n", + " 'dnhrehhcpicmo',\n", + " 'haotaashtijen',\n", + " 'fgetorneusram',\n", + " 'tbxurtowleatr',\n", + " 'pnteptraaesee',\n", + " 'rtthhisnrstsr',\n", + " 'dsnfloghaumge',\n", + " 'ktseauntiahyt',\n", + " 'nwnyutnnvhigl',\n", + " 'ifewfapasrela',\n", + " 'ahiebpcmcplae',\n", + " 'odthtlhwsulas',\n", + " 'eteuvaeotaeua',\n", + " 'fsteeehlbhtrh',\n", + " 'lrgatiaceehtn',\n", + " 'anhgasietufnp',\n", + " 'huurerelittmd',\n", + " 'neyinuegicoun',\n", + " 'itdeeahsuelhn',\n", + " 'tdoahieainyfn',\n", + " 'ofiauenatiyeo',\n", + " 'ayhedluaroerh',\n", + " 'eiurarateraha',\n", + " 'ttongwiswsaib',\n", + " 'arultomxletoe',\n", + " 'tgotoonaoortb',\n", + " 'iycvapnleewfr',\n", + " 'ortaeaduwwetr',\n", + " 'rltnlpfpaielr',\n", + " 'teimnrowieqrc',\n", + " 'nouardotafnrt',\n", + " 'thelepenrpmsn',\n", + " 'tyddedewhefop',\n", + " 'naedensneegtt',\n", + " 'nleeaesertgdu',\n", + " 'rgeosburowhdb',\n", + " 'hrrpaenytteke',\n", + " 'rlrtrhnfnedot',\n", + " 'ihswsaniypotm',\n", + " 'coouotyeieepn',\n", + " 'nehkrntairlte',\n", + " 'eoiurmnitaphe',\n", + " 'hvaohnouumtks',\n", + " 'dkeneeeoidpwi',\n", + " 'iuegtiiosenhu',\n", + " 'befaneuithrar',\n", + " 'euhiehuayasrs',\n", + " 'aliwgdsisitrg',\n", + " 'ihfphltwiisie',\n", + " 'mssurromaceio',\n", + " 'diilveoelusar',\n", + " 'obidetnfieson',\n", + " 'pttsaofgsodrf',\n", + " 'lyirptanetrli',\n", + " 'ttosoyoessfnp',\n", + " 'ieheageaoraii',\n", + " 'tatdmaaegrhys',\n", + " 'farrcelrtleen',\n", + " 'esehvhivmhnas',\n", + " 'otierixlmpsjt',\n", + " 'foesobmrhndic',\n", + " 'nphecbttncomu',\n", + " 'ofsesehteneti',\n", + " 'oeenotnwooter',\n", + " 'ohiltigdosmeo',\n", + " 'luifmroeffdte',\n", + " 'ldsoferwiiyqb',\n", + " 'tizotnrfantdg',\n", + " 'aeontlaepdsha',\n", + " 'homntlpsnbtua',\n", + " 'lrhaaplemnpds',\n", + " 'aahvniaelnhcl',\n", + " 'ajiskcdoaedtg',\n", + " 'edhoiadgwayne',\n", + " 'hetenegeeueoe',\n", + " 'rmdnoyyrfctet',\n", + " 'totwngdetasuo',\n", + " 'whotfymihrgro',\n", + " 'ntesirraofref',\n", + " 'osenpyaissest',\n", + " 'apnhhyeulhiwc',\n", + " 'tuteauapeanle',\n", + " 'aeelwhaoelurs',\n", + " 'ianbieasaeteg',\n", + " 'secdcorepsron',\n", + " 'viselosedudst',\n", + " 'isltettfseoen',\n", + " 'iilngnoerntee',\n", + " 'liiwwwhteirsi',\n", + " 'dflhtsrndesrh',\n", + " 'ldrntgrsuasea',\n", + " 'tndoyasadutew',\n", + " 'npitcameterto',\n", + " 'ttesyotocnyus',\n", + " 'meogcudlpadla',\n", + " 'eedotfdsbfela',\n", + " 'rehaxsonidtii',\n", + " 'siprahicdcshp',\n", + " 'lrbieslnalhof',\n", + " 'tmrenatoraiek',\n", + " 'rslagetmrdcwn',\n", + " 'wraynsvnuldoe',\n", + " 'nnkutnoutiiun',\n", + " 'iehvneilohltf',\n", + " 'acnaetuifttae',\n", + " 'notlnrbhbegls',\n", + " 'nonaomifkoarn',\n", + " 'ntsnvfretrcfh',\n", + " 'prdetswsucpec',\n", + " 'oiwtpawfhdays',\n", + " 'giooaoaelndfg',\n", + " 'tfngrebltllgo']" + ] + }, + "execution_count": 40, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "[''.join(transpose(l, (3, 11, 0, 1, 2, 4, 5, 6,7, 8, 9, 10, 12))) for l in chunks(c6bs, 13)]" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.4.3" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/2013/2013-challenge7.ipynb b/2013/2013-challenge7.ipynb new file mode 100644 index 0000000..e7dd197 --- /dev/null +++ b/2013/2013-challenge7.ipynb @@ -0,0 +1,271 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import os,sys,inspect\n", + "currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))\n", + "parentdir = os.path.dirname(currentdir)\n", + "sys.path.insert(0,parentdir) \n", + "\n", + "import matplotlib.pyplot as plt\n", + "import pandas as pd\n", + "import collections\n", + "import string\n", + "%matplotlib inline\n", + "\n", + "from cipherbreak import *" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "with open('mona-lisa-words.txt') as f:\n", + " mlwords = [line.rstrip() for line in f]\n", + "mltrans = collections.defaultdict(list)\n", + "for word in mlwords:\n", + " mltrans[transpositions_of(word)] += [word]\n", + "c7a = open('7a.ciphertext').read()\n", + "c7b = open('7b.ciphertext').read()" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "" + ] + }, + "execution_count": 3, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXIAAAD+CAYAAAAnIY4eAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAFQxJREFUeJzt3X+0ZWV93/H3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yYf7MufS9WpG+RW6MPrmJO8B/hnwb4ctWFXvA96X\n5Neq6scmtGOlDwG3Jrmmb9f3A1cmOZqup/8NA9vsCOBNST4P/O1jzRg9RrzRBtp20Ba6ob5bk8y6\nbTvo3jSP5PHh+uExZb6TtW+zy+jaP7jPjBrCO+jbGbI/99tnVH1r3TcBvmfC48N8of+I/2rg4v57\ng1Gdvyvphm8u5rFeLMBXq+rPR1WwYj94Et0b0mrHx78EPAj8OV0HZ6Q+6I+mC+VPAt9eVV+asP5H\ngL+hGzV4KvC5qpr45lxVjyZ5EDhA92b4TcDvJPmDqvrJEWUeAS5I8ka6T1xrG57pu/Fz1489PR34\nWFV9fcjj28YUr6r6swnrP53uXa+Aj1fV3nHL92XO4LEvrj5RVXdOWP75dMfQA9xQG3ToZf/l3Uv7\ndt1cVUN78RO2GVW1f9ZtW63NbFuSPwVOqzXs7KPaN6ld/T7zjS8uV7HPDK1nUn1r3Ten0XcOzgI+\nU1X3JjkeeEFVXT/DOrYNTD4CHKjud5rGlbkAOI8u9H8b+K+TXs9JfonuTfNrwKfovpu75eCIwIgy\ndwHX0r2xPBP4deBvq+oHx5R5B/DDdG8uv0k3VPxwuoMh7q2qJ/TMk/xoVf36wPQZwFur6kfG/U+P\nW8eiBLm0UZJcBvyHqvrsvNui9Uvy7+nCe+hRWhPKHks35PGv6Y4qe8qYZV9UVX+0Yt4PV9UVY8rs\nAi4d1rFMsn01HchpGOQ65CXZBzyX7kulhRha0uZK8hN0n2DOoNsPbqL7xPTxuTZsRuY9Ri5thrPm\n3QDN3VPpviu7Y9LQTYvskUtS4+Z9+KEkaZ0McklqnEEuSY0zyCWpcQa5JDXu/wO49gMmLR0ghAAA\nAABJRU5ErkJggg==\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "freqs_7a = pd.Series(collections.Counter([l.lower() for l in c7a if l in string.ascii_letters]))\n", + "freqs_7a.plot(kind='bar')" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXIAAAD+CAYAAAAnIY4eAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAFNpJREFUeJzt3X+0b3Vd5/HnSwiVH0p3aVcEXBdNwsuiZiSRJlueTI0a\nA9Y0ocxkV3NcFTpqy2kCm+Lc1hqGVmM1NsupUFiQwQyVMtBKhxvwTVIGChBuXG7A6G3A4jo1atpk\nQrznj73hfu/h++vs8z0/9rnPx1rfdfbe3/3Zn8/ZZ5/X9/P9fPfe31QVkqT+esZ6N0CStDIGuST1\nnEEuST1nkEtSzxnkktRzBrkk9dzEIE9yeZL9SXaPeO69SZ5IsmVo2UVJHkyyN8nrV6PBkqSDTeuR\nXwGctXRhkhOB1wF/PrRsO/BGYHtb5oNJ7PFL0iqbGLRVdSvwxRFP/RLwb5csOwe4pqoeq6p9wEPA\nGfNopCRpvGX3mJOcAzxSVfcueeqFwCND848Ax6+gbZKkGRy+nJWTHAm8j2ZY5anFE4p4/b8krbJl\nBTnwEmAbcE8SgBOAO5O8Evg8cOLQuie0yw6SxHCXpA6qamTHeVlDK1W1u6q2VtVJVXUSzfDJy6tq\nP3A98KYkRyQ5CXgpcMeY7Yx8XHzxxWOfm/ToUm6tytg+98V617XR2+e+mK3cJNNOP7wG+DRwcpKH\nk7x1aSYPhfMe4FpgD/Bx4IKaVrskacUmDq1U1flTnn/xkvlLgEvm0C5J0owOW1xcXNMKd+7cuTip\nzm3btnXabpdya1VmLeva6O1by7o2evvWsq6N3r61rGujt29cuZ07d7K4uLhz1PpZ69GPJI64SNIy\nJaHm8WGnJGnjMcglqeeWex65JB2kvaZkLIdSV59BLmkOxoX15JDXfDi0Ikk9Z5BLUs8Z5JLUcwa5\nJPWcQS5JPWeQS1LPGeSS1H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rkk9dx6n34oSVohg1ySes4gl6SeM8glqecMcknquf8PbpB+\nEqMB7LsAAAAASUVORK5CYII=\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "freqs_7b = pd.Series(collections.Counter([l.lower() for l in c7b if l in string.ascii_letters]))\n", + "freqs_7b.plot(kind='bar')" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'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’I 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’ IPAWYDVB. AJYCZ DBI AWLN WGLULG AD BHL IOT KXYTJIVGZ’ 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’Z 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’H OPYS AD ITSXLKL IOPA HOT STMI PI DXAW AWL HZ PUS P RHC’A HLT OTY VVXUV VC AWL GBC DXAW PI ZIBRR JUSLG OTY RVPA. XA’H 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'" + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "c7a" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "('hp', -2071.4841308636614)" + ] + }, + "execution_count": 6, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "vigenere_frequency_break(sanitise(c7a))" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'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'" + ] + }, + "execution_count": 7, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "' '.join(segment(vigenere_decipher(sanitise(c7a), 'hp')))" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(2, -4150.8334806309485)" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "railfence_break(sanitise(c7b))" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'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'" + ] + }, + "execution_count": 9, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "' '.join(segment(railfence_decipher(sanitise(c7b), 2)))" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "1304" + ] + }, + "execution_count": 10, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "len(sanitise(c7b))" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.4.3" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/2014-challenge1.ipynb b/2014-challenge1.ipynb deleted file mode 100644 index 00f9ccc..0000000 --- a/2014-challenge1.ipynb +++ /dev/null @@ -1,136 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:238ee41cd65ee30b21b8e31cf8256253cda5ffb52bd978fe39c5c022b8eaa509" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import matplotlib.pyplot as plt\n", - "%matplotlib inline\n", - "\n", - "from cipherbreak import *\n", - "\n", - "c1a = open('2014/1a.ciphertext').read()\n", - "c1b = open('2014/1b.ciphertext').read()" - ], - "language": "python", - "metadata": {}, - "outputs": [], - "prompt_number": 1 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "key_a, score = caesar_break(c1a)\n", - "key_a, score" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 15, - "text": [ - "(4, -728.156672407534)" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "print(caesar_decipher(c1a, key_a))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "MARK, \n", - "\n", - "THANKS FOR BRINGING ME IN ON THIS ONE, SEEMS LIKE A FASCINATING CASE. \n", - "\n", - "I HAVE THREE QUESTIONS: \n", - "WHY WOULD THE FLAG DAY ASSOCIATES WANT A SHIP? \n", - "WHY WOULD THEY WANT THIS SHIP? \n", - "WHY WOULD THEY WANT THIS SHIP NOW? \n", - "\n", - "HAVING READ THE ATTACHED DOCUMENT I SUSPECT THAT THE ANSWERS ARE ALL RELATED TO THE QUESTION OF WHAT EXACTLY SHE AND HER FLAG DAY ASSOCIATE CREW WERE TRYING TO SURVEY. \n", - "\n", - "I AM GUESSING THAT YOU ALREADY CHECKED OUT THE ONBOARD GPS SYSTEM FOR INFORMATION ABOUT HER MOVEMENTS, BUT IF YOU DID FIND ANYTHING I WOULD BE FASCINATED TO HEAR ABOUT IT. IN THE MEANTIME I AM PRETTY SURE THAT YOU KNOW MORE ABOUT THE FLAG DAY ASSOCIATES THAN YOU HAVE TOLD ME, SO A BRIEFING WOULD BE MUCH APPRECIATED. \n", - "\n", - "ALL THE BEST, \n", - "\n", - "HARRY \n", - "\n" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "key_b, score = caesar_break(c1b)\n", - "key_b, score" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 10, - "text": [ - "(22, -637.7038880633795)" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "print(' '.join(segment(sanitise(caesar_decipher(c1b, key_b)))))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "report on the trojan project having drugged the crew we were able to take the ship with essentially no resistance the crew were handed to the somali pirates at the deepwater rendezvous as planned and we began the survey just after midnight the radar showed an approaching vessel which our database identified as a coastguard cutter we headed south to avoid detection with all ship lights off we then completed the survey in the new location afterdawn with the listening post installed we began assembling the equipment for phase two of the operation keeping a watch for further patrols in the sky and on the water\n" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/2014-challenge2.ipynb b/2014-challenge2.ipynb deleted file mode 100644 index 4e5eeff..0000000 --- a/2014-challenge2.ipynb +++ /dev/null @@ -1,188 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:95cdf1235b4fe6238989ec008feb03cf628e9bfb2e2d10e7949b2aaa237928c4" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import matplotlib.pyplot as plt\n", - "import pandas as pd\n", - "import collections\n", - "import string\n", - "%matplotlib inline\n", - "\n", - "from cipherbreak import *\n", - "\n", - "c2a = open('2014/2a.ciphertext').read()\n", - "c2b = open('2014/2b.ciphertext').read()" - ], - "language": "python", - "metadata": {}, - "outputs": [], - "prompt_number": 18 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "freqs = pd.Series(english_counts)\n", - "freqs.plot(kind='bar')" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 26, - "text": [ - "" - ] - }, - { - "metadata": {}, - "output_type": "display_data", - "png": "iVBORw0KGgoAAAANSUhEUgAAAYYAAAD+CAYAAAA+hqL9AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJztnX+0VeV55z9XKZjoxcs1FsEYr7U0SrVhQojpSuI6/kBp\nJkGcWsWZCjczk1VljHFNp4NkpgOMq5TQ1anamTQmGi40wWiro5gRBIGdm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nYdfCsWza2slHDRWgagxB5MKNxERE4p2F64/dp\nHKoSQgghhBBCCCGEEEIIIYQQQgghhBBCiBHO/wdc3dBPs9bnrQAAAABJRU5ErkJggg==\n", - "text": [ - "" - ] - } - ], - "prompt_number": 26 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "key_a, score = affine_break(c2a)\n", - "key_a, score" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 5, - "text": [ - "((5, 25, True), -761.8388033231918)" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "print(affine_decipher(c2a, key_a[0], key_a[1]))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "DEAR MARK, \n", - "\n", - "THANKS FOR THE LATEST REPORT FROM THE ON-SITE TEAM. IT SHOWS THAT THE SHIPBOARD GPS SYSTEM WAS COMPLETELY SCRAMBLED SO WE ARE NOT GOING TO BE ABLE TO TRACE HER MOVEMENTS FROM THAT. DO WE HAVE ANY ODD TRACES FROM ONSHORE RADAR THAT GIVE A HINT OF WHERE SHE MIGHT HAVE BEEN? \n", - "\n", - "THE COMMENT IN THE LAST MESSAGE THAT THE PIRATES COMPLETED THE SURVEY EVEN THOUGH THEY HAD MOVED SOUTH TO AVOID DETECTION SHOULD HAVE TOLD ME THAT THE SURVEY WAS NOT GEOGRAPHIC. AT FIRST I THOUGHT IT MIGHT HAVE BEEN REFERRING TO A TELECOMS SURVEY SINCE YOU MENTIONED THE LONG AERIAL, BUT ACTUALLY THE ATTACHED MESSAGE IS VERY REVEALING. STILL NOT SURE WHAT THE SURVEY WAS FOR THOUGH, AND HOW THAT IS CONNECTED TO THE MISSING SUPERSTRUCTURE. CAN YOU GET ME ANY PICTURES? \n", - "\n", - "HARRY \n", - "\n" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "key_b, score = keyword_break_mp(c2b)\n", - "key_b, score" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 15, - "text": [ - "(('flag', ), -367.81492429457404)" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "print(' '.join(segment(sanitise(keyword_decipher(c2b, key_b[0], key_b[1])))))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "calm weather allowed us to complete the hull survey and establish its integrity no major remedial works were required and the pumps and extra bulkheads were installed out in deep waters over the next five days we are now testing the system for reliability and safety before moving on to phase three of the operation operation trojan remains on target\n" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "freqs_2b = pd.Series(collections.Counter([l.lower() for l in c2b if l in string.ascii_letters]))\n", - "freqs_2b.plot(kind='bar')" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 24, - "text": [ - "" - ] - }, - { - "metadata": {}, - "output_type": "display_data", - "png": "iVBORw0KGgoAAAANSUhEUgAAAWwAAAD+CAYAAAAeRj9FAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAG9NJREFUeJztnX2wJFV5xn8XVl0+9jp7C4RVMUNRQdSAg0hiAhaDkUgU\nCcZIRZPAGGMRTYC10IgmZHexIqjFR6kJJgHZFT8iEURIlcgK9yoaxQL38iEiBndTkMCSsOAuCgZk\n8sfpud0zt3u653TPmdNnnl9V1+3Tt59+3z595syZp79ACCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQ\nNWN3YAtwXVReDzwQLdsCHD+ZtIQQYnpYUXC9M4G7gVVRuQtcGE1CCCEcsFuBdV4IvB64FJiJls0k\n5oUQQjigSId9EfA+4JnEsi5wOnA7cBnQqD41IYQQSfI67BOAhzE+dXJEfQlwINACHgQuGEt2Qggh\nlsizNT4M/AnwNLASmA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zmgF0d6U7CjF6G8QnML4XnYQ7YHwB/k7Hux6PpU5ifu6PyOcwo6JoovzcCn8d8AAZHb7362x14\nO+ab/RfRsjyvtw6ciuk8VtDfgV49RPNq7Oricky9J9vFMIsN4JWkt9s7h8S0aX8AryuwziD/hfkp\nfhxwPmYQNWzw9nmM9XI+8WgUjIX1SE6s5Ah8N8xnpah//TDwUBRj3wLr34j5PHwHMzp/ZbSNYTyN\nGUzugamHn1DsS/mZKLftmC/A1cCXgK8D78uJ925MR38zI1orLk869mhj/LPr6R8xJmkO0XeB/8yJ\n8TLMN1kX862b93O0xxHEJ5e+SbGfKy8Bfjuav5Fse6IKjsR4xl1Mh5A1Mm/mbGdbdSlNhB9hbLVR\n7rZtZizfVkB7BP0nEPPaRVasvJg27c+GvTA/5e/AjA7XAIcCN4whVjMx/zSmg3sqfdUl3o3x2Z8H\n/CvwRYp9hi/CdNJPYn5RfQPTeT8xRHM7cC3mS2Qf4B8xX+hvGaI5EzgF80VyKWbQ9hTmC+nHZI+0\nT4u23+MIzK+IPx0SS4jacznmS1mEyXmUu8tvFXA6ZmD3i5x1j0xZdkqOZgPwKxn/SzuJWRmTGGEL\nUZZ7MKOY0KweUY7TMb9QjsC0jZuj6aZJJlUlrjxsIark+PxVxBSyEnMO6/vk2y5CCCGEEEIIIYQQ\nQgghhBBCCCGEEEJ4yv8D7xdktg48eJoAAAAASUVORK5CYII=\n", - "text": [ - "" - ] - } - ], - "prompt_number": 24 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/2014-challenge3.ipynb b/2014-challenge3.ipynb deleted file mode 100644 index 92ac480..0000000 --- a/2014-challenge3.ipynb +++ /dev/null @@ -1,181 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:d8ff372312e3a12aff6a0d9e6b5df79509140ca9131aeeb8fc78255c4c5e8cd3" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import matplotlib.pyplot as plt\n", - "import pandas as pd\n", - "import collections\n", - "import string\n", - "%matplotlib inline\n", - "\n", - "from cipherbreak import *\n", - "\n", - "c3a = open('2014/3a.ciphertext').read()\n", - "c3b = open('2014/3b.ciphertext').read()" - ], - "language": "python", - "metadata": {}, - "outputs": [], - "prompt_number": 1 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "freqs = pd.Series(english_counts)\n", - "freqs.plot(kind='bar')" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 2, - "text": [ - "" - ] - }, - { - "metadata": {}, - "output_type": "display_data", - "png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAD+CAYAAAAgT5JOAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJztnX2UHNV55n8DigSGEa3BRCCMGUK0BgLxrGUZ59jmNB8C\nxbH52BAQuwGNd9cnoMWYs9ks4N0sUjhRxtqTjSG7jrHBGhEbDAksCK8QEkjt4A8YkGksIwtJ2CKS\ngmRjISRsR4sW7R/vbbrU091Vdbu75nbX8zunT1Xfuk/d91bX9Nv1PtU9IIQQQgghhBBCCCGEEEII\nIYQQQgghhBBCCCFEV3IL8CKwHrgXmAIMAKuBTcAqoFDTfzOwEbgw0j7L7WMzcHukfQpwv2t/Gjg5\nsm2+G2MTcE27JiSEEKJ1BoEfY2/iYG/k84ElwH92bTcBI279DKAM/JrTbgH63LYx4ENufQUw160v\nAL7o1q8EvuHWB4CXseRTiKwLIYQIgAHgJWAaMAl4FJiDXR1Md32Od8/Brh5uiuhXAh8GTgB+FGmf\nB3wp0udstz4J+Jlbvwr4m4jmS04nhBAiAw6L2b4b+EvgH4F/AvZgpaXpwC7XZxfVZDED2B7RbwdO\nrNO+w7Xjltvc+gHgDeDYJvsSQgiRAXEJ4lTgRqxcNAM4Gv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FPusWYig2qVvHgQ\nQnSaufFdRA9zBOZBfp/4EpYQQgghhBBCCCGEEEIIIYQQQgghhBBCiET8fygVznwTf1OJAAAAAElF\nTkSuQmCC\n", - "text": [ - "" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "key_a, score = affine_break(c3a)\n", - "key_a, score" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 3, - "text": [ - "((11, 1, True), -839.4977013876568)" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "print(' '.join(segment(affine_decipher(sanitise(c3a), key_a[0], key_a[1]))))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "harry you asked me about the flag day associates they area transnational hacking group dedicated to the overthrow of western capitalism they have been implicated in several major protests including an attempt to takeover the uk national grid attacks on reservoir systems and interference in bank trading networks it looks like the fda carried out fairly extensive modifications to the ship they did a good job too we hadnt noticed the added bulkheads until we compared the layout with the plans from lloyds register they seem to be there to add rigidity though there is one additional panel at the stern that doesnt fit the pattern and we will be removing that tonight to see what it is there for we would have done it this afternoon but decided we should conduct our own hull survey in case there is a booby trap\n" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "key_b, score = keyword_break_mp(c3b)\n", - "key_b, score" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 7, - "text": [ - "(('seahorse', ), -681.3308426043137)" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "print(' '.join(segment(sanitise(keyword_decipher(c3b, key_b[0], key_b[1])))))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "phase three the nautilus system was fully tested last night with complete success we sailed within four hundred metres of the target and monitored all radio traffic for two hours with no sign that we were being watched or were even noticed we then conducted a full radar sweep of the area and found three dead spots where we could work on the ship without detection as planned we converted the two adjacent empty containers in the middle of the stack into a large workshop area and carried out a full inspection drill now even if we are boarded our work should remain undetected we retrieved seahorse from the third container and carried out stage one of the assembly\n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "freqs_3b = pd.Series(collections.Counter([l.lower() for l in c3b if l in string.ascii_letters]))\n", - "freqs_3b.plot(kind='bar')" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 9, - "text": [ - "" - ] - }, - { - "metadata": {}, - "output_type": "display_data", - "png": "iVBORw0KGgoAAAANSUhEUgAAAW4AAAD+CAYAAAAas+94AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHMtJREFUeJztnX20HGV9xz+XpECAXJdbNYkvuMhpDL5xNWppxbpSoEol\nclBp7YtZqhwrKoRaC3i0QM+xgj3WW23tqSIkKr7EN4TWIjHeK9TXUnIhiAFNiWJbgiUEgqBF2f7x\nzGbn7t3ZefaZnZnnmfl+zpl795md7/x++8yzv539zuwMCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQ\nogacA2wHbo0eA0wBW4A7gOuARjmpCSGE6OeZmKJ9MLAEU6yPAt4D/EW0zHnAJaVkJ4QQYhGvAi6L\ntd+BKdg7gBXRvJVRWwghhAesAW7HWCOHAN8A3g/cF1tmoq8thBAiR5amPL8DuBTjY/8UmAd+2bdM\nJ5qEEEIUQFrhBrg8mgDeBfwY2I2xSO4GVgH3DBIeddRRnZ07d44hTSGEqBU3A9NJTx5gsYLHR/+P\nAE4DPgFcDayP5q8Hrhok3LlzJ51OZ+TpwgsvdNJl0Ratq0vMkHJV//gXM6RcxxkTOGZYUbbZ4/4s\n8KvAI8BZwP2Ys0g2A68DdgGnW6zHml27dhWuLVpXl5gh5VpGzJByLSNmSLkWGdOmcP/WgHl7gBNG\niiSEEG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eJvZzQ34gBM0f4U5jX+NXBUimZblOsHgWuABiMUbl+ux30X5uvGVZhPy/tIPyO9+yZZ\nitlrugvjoR2B3cZ6L/BNzCflBPBqzEBJ46MYT/rzke5UzJ6QDR/AfJN4PGbjvgp4h4XuSkzRvyqK\neQrwCcyAS/qA6/bPEuAMzCf8z6N5th5uUfQXvCnMm+Hb5J/resyHxVLM7xC6fD5FdwUmv/g4GGa1\ndXkeg8frdtJf6+9YrH8Q/4X5AD8RU7wPJr0wfQJjzVxCb28UjA11r0XM+DY9ADPmR/G37wHujmI9\nzlKzFfOe+CZmj/150XrS+AXwMObD92DMB+OjQxULeTTKdTfmg/Vw4LPAV4C3pcQ9C2hjvl1aWy4+\nHZzs0sL4cdcC/zdkueaQ5zrADy1iPQPz9aqD8Zxs9/LX0jsodT2jfcU5Gvjt6PFW0q2OLs/H+Mgd\nzBv/xuGLp/qJuyzjFkEz5fldOca+HWPNuPwSeC0LDzLajINmyvO7HPJI41DMHuEtmCt5rsIcS7gu\nh1hdmrHHv8AUtUcsdGdhPPnHA58BPo39+/J9mGL9M+AbGGvmm5iiPIybgasxHyyPBf4Js5PzaouY\n5wCvxXzAXIbZMXsE82H1fZL3vN8QxemyFngT8CcWMYWoPVdgPsCFH7yb7L8YXA68BbPz9vOUZcHs\nFPXzWstYFwNPSXhu0EHPseDjHrcQRbIDs1fks5Uk7HgL5pvwWsz2vCGavlpmUnngi8ctRFm8NH0R\nEQgHY45d3YSdLSOEEEIIIYQQQgghhBBCCCGEEEIIIUSF+H/3Fw/jxzDvcgAAAABJRU5ErkJggg==\n", - "text": [ - "" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/2014-challenge4.ipynb b/2014-challenge4.ipynb deleted file mode 100644 index 71e4da6..0000000 --- a/2014-challenge4.ipynb +++ /dev/null @@ -1,282 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:85b017d44c4150025cec1993a3ad84bbb01961530ccda02157c917ba9e7b9019" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import matplotlib.pyplot as plt\n", - "import pandas as pd\n", - "import collections\n", - "import string\n", - "%matplotlib inline\n", - "\n", - "from cipherbreak import *\n", - "\n", - "c4a = open('2014/4a.ciphertext').read()\n", - "c4b = open('2014/4b.ciphertext').read()" - ], - "language": "python", - "metadata": {}, - "outputs": [], - "prompt_number": 1 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "freqs = pd.Series(english_counts)\n", - "freqs.plot(kind='bar')" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 2, - "text": [ - "" - ] - }, - { - "metadata": {}, - "output_type": "display_data", - "png": "iVBORw0KGgoAAAANSUhEUgAAAYYAAAD+CAYAAAA+hqL9AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJztnX+0VeV55z9XKZjoxcs1FsEYr7U0SrVhQojpSuI6/kBp\nJkGcWsWZCjczk1VljHFNp4NkpgOMq5TQ1anamTQmGi40wWiro5gRBIGdmh94lXgMkSBgggUqJAYR\nTFIGRuaP5z2cfc89P/be95593vPe72etvfa73/0++/2x99nPfp/vPueAEEIIIYQQQgghhBBCCCGE\nEEIIIYQQQgghhBAtZQHwMrAVWAWMAbqB9cAOYB3QVVF+J7AduCaWP9UdYydwbyx/DPCwy98MnB/b\nN9fVsQOYM1wdEkIIkZ0e4MfYzRvsBj4XWAb8Z5c3H1jq0pOBIvBrznYX0OH29QMfdumngBkuPQ/4\nokvfBHzDpbuBVzGn0xVLCyGEaCHdwCvAOGAU8CQwHZsNjHdlznHbYLOF+TH7tcBHgAnAj2L5s4Ev\nxcpc5tKjgJ+59M3A38RsvuTshBBCNJFTGuw/CPwl8I/APwGH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f2NkNIHbBT2BLgHi0W+j/on+C+B72EevAP4A+xi\nqsdKTBt4zNnMwp646vHX2Gzn17EL4Qbgv9Yoe59bvoSFAdLwdcwJPe7a9ilgFXYRVzrV0pidCnwa\nczxHXV6jGHszqbxZdmMfpudoTrvmYg5oFPa9mhKP1bH5OOnHbDnWh/h1UytsWeJDVL+et9apL8v1\neW2D/ZXsw5zjdMw5nEbtm+IqLFS1lPITNliY7+cN6olfC6dgn5+k+sJPgf2ujrMblN2AfUa+h800\nPuTs63Ec+BXm4E/DnOo7dS2Md1y7DmDOeBzw98AzwJ/UqWse0IvN/lKFo0IUn0sUsJjmWuD/Vtnf\nU8f2BPBanf2/jU0lT2DxvEazErA4bklE/AeSefCLgatcegO1QztDZRoW1z+B3VReqFGup8Fxdg9f\nk1LR02D/7mGu7xUsXJXmm/k9NfJ3N7CbykAhudF1U6ueRvVluT7TcDr21PsD7JeSJ2B60Lphrqcn\nlj6O3UyPNbCZh2kgvw78HfAwjT/Tf4U5g38GvouFq76H3fhr8RKwGnNU7wHuxx4S/qCOzeeAOZiz\negB7WDyGOb2dVJ85/JE7dompwH8A/m2DPgkhhsBy7OFAhMGfk/0bwJ3AZ7EHyaMNyk6rkjengc1i\n4Pwa+6qJ2cNCyDMGIZrFduxJzZdQmsifz2IzrKnYdfCsWza2slHDRWgagxB5MKNxERE4p2F64/dp\nHKoSQgghhBBCCCGEEEIIIYQQQgghhBBCiBHO/wdc3dBPs9bnrQAAAABJRU5ErkJggg==\n", - "text": [ - "" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "c4bs = sanitise(c4b)\n", - "c4bs" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 3, - "text": [ - "'prsaoegerauiadmwehdnisnrasawuaaessrefgdosogvorbeeeaartesctdfmenuibrttlmeytumtmeuaikwhutkwerwahmnpwraeesononesebatoihacineetbrotadaktgfeesyioflttlstiiaeosvieonsrrtaupmnnoaencocnuvrsclvdrgctaiihriciaihrsduomrlemcrngleomarfhiuewhalcsasracufrawwsmehulstoaohceletmtoilsepdmumtptrslyrhhntpanwpmoadppdwbeseoassltmlpesletuncorerlclitaosvsiniifwseafortaaduyenenonnsopfhontwkoertcslyvoeiohlufoeioetsthtsbreneveaouepgieesobduorsfeercdyadutaepeadrdigseebfuoggopogalyfewsoeemdntohrebhaaesneworgnfiaulnlwadueodcotrargvuenewhiertlauilmsoniotmuinewaiuewloerstttisdrsasnussiesmerdhetryrhpnlrtereadmredebnntrnenwmoutrdosaneowomcgidciasaontiioiascesissupcrmoybrineyweelaylewtyrtilhsto'" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "key_a, score = keyword_break_mp(c4a)\n", - "key_a, score" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 4, - "text": [ - "(('stern', ), -830.5838133421847)" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "print(' '.join(segment(keyword_decipher(sanitise(c4a), key_a[0], key_a[1]))))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "harry we completed the survey and you are not going to believe what we found behind the false bulkhead in the stern there was a large pumping station connected to a number of sea facing outlets it looks like a scuttling valve system similar to the ones used on u boats in world war two icant understand why they would goto so much effort when they could have scuttled her at anytime with a small quantity of plastic explosive the team back at nsa have run some analytics on the remaining text files we extracted from the servers onboard these ciphers are going to be pretty hard to crack the attached report has frequency analysis matching usual english text so we can assume that the sender was a native speaker did you have any thoughts on what the nautilus system might have been or what it was for\n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "key_b, score = column_transposition_break_mp(c4bs)\n", - "key_b, score" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 7, - "text": [ - "(((6, 0, 1, 7, 9, 4, 2, 3, 5, 8, 10), False, True), -1777.161911681522)" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "print(' '.join(segment(sanitise(column_transposition_decipher(sanitise(c4bs), key_b[0], key_b[1], key_b[2])))))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "rar rrc tee eat flen var rire epymeslntnkeeeeepbln suce lnrsdreowaeyahsdaebt ture t be sonr is nu ahl drool ciano it vs ref ytnlowmesnhtbuoosbys ghuoaeywmoaaiarnvimo art ttt plnas yfcutuuadgserarriuii yaro i iue ted as an thn nc do etc dcr mla oop pdt coeehsfseodioobgdgt oeser dns do pyyeewdemekhnhtyirel roe hfs mmnpsutwuptlhodyrgw row a en its re tdg is nw rna or uuup eia foa or ilac wait a wmo san olobprugpehnuvltwdsh me acic wrp in so srm wa be gti muth ch smc elp seri row o on eeee a dead nii earl dmos colla ms fed laws or et nos idge cue mha a elias eos eoc a ufo ent hsw tue ent mn irl tai eg tim twsnklsucgaerswolrn blrvfenyergstsoeafeu am lrm prnn i are to wage f miao ios is a chul wultuhdstifdorhtabd doe hwl rio at strn rcts ieoussvebtkreettvpnc imf as hss we peso ntvieifaegmaioeuuose new e as me i\n" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "key_b, score = column_transposition_break_mp(c4bs, fitness=Ptrigrams)\n", - "key_b, score" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 9, - "text": [ - "(((4, 8, 0, 6, 9, 3, 1, 2, 5, 7, 10), False, True), -2823.7851213306785)" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "print(' '.join(segment(sanitise(column_transposition_decipher(sanitise(c4bs), key_b[0], key_b[1], key_b[2])))))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "sda ebt ture t be sonr is nu ahl drool ciano it vs ref ytnlowmesnhtbuoosbys ghuoaeywmoaaiarnvimo art ttt plnas yfcutuuadgserarriuii yaro i iue ted as an thn nc do etc dcr mla oop pdt coeehsfseodioobgdgt oeser dns do pyyeewdemekhnhtyirel roe hfs mmnpsutwuptlhodyrgw row a en its re tdg is nwp in so srm wa be gti muth ch smc elp seri row o on eeee a dead nii earl dmos coll rna or uuup eia foa or ilac wait a wmo san olobprugpehnuvltwdsh meac icw rams fed laws or et nos idge cue mha a elias eos eoc a ufo ent hsw tue ent mn irl tai eg tim twsnklsucgaerswolrn blrvfenyergstsoeafeu am lrm prnn i are tra rrr c tee eat flen var rireepymeslntnkeeeee pblnsucelnrsdreowaey a how age f miao ios is a chul wultuhdstifdorhtabd doe hwl rio at strn rcts ieoussvebtkreettvpnc imf as hss we peso ntvieifaegmaioeuuose new e as me i\n" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "freqs_4b = pd.Series(collections.Counter([l.lower() for l in c4b if l in string.ascii_letters]))\n", - "freqs_4b.plot(kind='bar')" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 11, - "text": [ - "" - ] - }, - { - "metadata": {}, - "output_type": "display_data", - "png": "iVBORw0KGgoAAAANSUhEUgAAAWwAAAD+CAYAAAAeRj9FAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAG2lJREFUeJztnXuQHEd9xz9nKX6i43QJSOJhFlwRMi8fCIgTTLw4tmMo\nLFyGKCEvncu4El62EkIsUxBLVBEsqggKSZEUGPsEGIJ4CZOHkRA32AEK4lhnyxjJoFhgkkgmlmXJ\nvOLgzR89q53dm93pmdnp3r75fqqmbntmvvvrX19vb+93XiCEEEIIIYQQQgghhBBCCCGEEEIIIYQQ\nQoiAuArYA9wdvwaYBHYC9wI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a4C3Z2jeHy9/j7E0inIT5gtjO6beFwMfx8zg+n1Rttt6\nEXAZ5kviZ/E6Wz+3CL0D1CSmc3+j4rhJ1mG+LBZjrido81kL7Usp3l43YvJM9q8su67NC0n/TOyx\njP+blnHS+E/MF9UFmEH7ZLIt1o9jbJjrMLZce5Z5DHjQMm6yr5yA+WwV8a8fAA7GcZ9gqdmF+fx8\nHTNDf2H8PrY8Fsc8hPmiXAp8GvgS8FabN/A1LW9i/K9bgP/N2LcxYFsL+J5lzGdjftK0gC+Tb3a/\nms5BoVvJnkkkORP4jfj1LrLtiGHyIuAlmHp/lc6vnH40MrYfKF+lkYqbZB/GiilyBW+jz/oDlvrV\ndB84tO1f/eLmjV+E0zCzxbswd+tcgTn+sKPCmNCd8/9hBr9Hc+jfgPHfnwh8Cvgk9mPB+zCD9E+B\nr2GsmK8DP7HQXgX8IeYL4nrMRO5RzJfOd8g50xai7tyI+VIXC5t3U/4KwiXAmzGTxZ9l7NtmE/C0\nPtueZRt45I1vIRyxFzPLcWUDifB4M+aX9mpMP7ktXr7sqgIuPWwhRpmLsncRNedkzPGwO8hnwwgh\nhBBCCCGEEEIIIYQQQgghhBBCCJGD/wdbsUjhLuQm+wAAAABJRU5ErkJggg==\n", - "text": [ - "" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "railfence_break(c4bs)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 6, - "text": [ - "(5, -1581.9784460662272)" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "' '.join(segment(railfence_decipher(c4bs, 5)))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 7, - "text": [ - "'phase four the decks were cleared by two am and the mounting plates were prepared and measured mounting points were assembled by four am though owing to the approaching dawn deployment of seabird was postponed and we embarked onstage two of seahorse assembly with camouflage plates installed we set to cruising in case of air or sea surveillance following standard routes to avoid suspicion monitoring of airwaves gave no cause for concern but we have raised security levels and are using a column transposition cipher for this communication with keyword seabird future comms will relyon even more security tonight will be used for more sea trials of the nautilus system while the assembly crew rest and the survey team carryout further mapping we will resume the seahorse build at dusk tomorrow'" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/2014-challenge5.ipynb b/2014-challenge5.ipynb deleted file mode 100644 index 4eecb6a..0000000 --- a/2014-challenge5.ipynb +++ /dev/null @@ -1,272 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:7aee1c5a7be0ded7315a453bbefef56aee8217ed72fa1276cfe88f18bc828f77" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import matplotlib.pyplot as plt\n", - "import pandas as pd\n", - "import collections\n", - "import string\n", - "%matplotlib inline\n", - "\n", - "from cipherbreak import *\n", - "\n", - "c5a = open('2014/5a.ciphertext').read()\n", - "c5b = open('2014/5b.ciphertext').read()" - ], - "language": "python", - "metadata": {}, - "outputs": [], - "prompt_number": 1 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "freqs = pd.Series(english_counts)\n", - "freqs.plot(kind='bar')" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 2, - "text": [ - "" - ] - }, - { - "metadata": {}, - "output_type": "display_data", - "png": "iVBORw0KGgoAAAANSUhEUgAAAYYAAAD+CAYAAAA+hqL9AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJztnX+0VeV55z9XKZjoxcs1FsEYr7U0SrVhQojpSuI6/kBp\nJkGcWsWZCjczk1VljHFNp4NkpgOMq5TQ1anamTQmGi40wWiro5gRBIGdmh94lXg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sWza2slHDRWgagxB5MKNxERE4p2F64/dp\nHKoSQgghhBBCCCGEEEIIIYQQQgghhBBCiBHO/wdc3dBPs9bnrQAAAABJRU5ErkJggg==\n", - "text": [ - "" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "c5bs = sanitise(c5b)\n", - "c5bs" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 3, - "text": [ - "'sssatanuelclaendeeheevrnhtailsltocsoeoanuodoeecaferbetrtenoiiucrwurfaproeercssoeuatulgtematremlieaveieogcelesaeeeyyiuuoaidaosdmdecsshthuhatcnxaererseltunaghanrdtevepisydtaeamcinmrnweoramrvibodsdfdpatimrssietdaospecgracnetblfioeushsmeeirlshmittrlnesehmclssoswfottwnbyteyngeymttgstariixeeedrnasmltwgmildcrtseogohrolsshmawndsstrabndnecfcayehotdornonenecatneavoeaatehercyrighsayrefsooatemncwtkaaawndadmsllnnnlutfoeeenoyoewtmanrrsxhvorolhisfunnthaeeofolphebaatmnornoeodnvtphnoetedeaeonphpaeuratvhndetahrahpoorsefovddsttpsvgraaatodsuryidovtrelerltmemdheoarshoarrrerxisgeifawfaiyidusiyieeesotkeaelatresntifemteiaighaceiondktkitteaeanecnndictnedddenstsheanrtamneahshidaocnuissctehslnlectheetlltidlcttnpnmcvsvnositdaelxpihsfattysfoedcmwhtebaachertaigriuirtngiaphetrowehwswaacmgcouwoogoegsmtarteeiemvayinogstitagblncstcycolretedarehopnebyegwcteetlteyeteenansafmo'" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "key_a, score = keyword_break_mp(c5a)\n", - "key_a, score" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 4, - "text": [ - "(('seabird', ), -1255.0542494109186)" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "print(' '.join(segment(keyword_decipher(sanitise(c5a), key_a[0], key_a[1]))))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "harry i cracked that last message for myself and noticed something really odd the text said it was encrypted using a column transposition with keyword seabird but it was enciphered using a rail fence cipher i can only assume that the text we retrieved was an archive of the original message re encrypted for safety whoever the flag day associates are they have a pretty sophisticated operation if they are filing messages like this more like one of the major terrorist groups than the usual hacker collective the tech guys took a look at the aerial from the boat and they tell me that it is a drag wire usually used to communicate with a submarine when submerged it carried an acoustic transducer array as well as a shortwave transmitter and listening gear one thing that puzzles me now is why we were allowed to find the ship floating at all surely they must have planned to sink her using the scuttling equipment otherwise what was it for they seem too smart to leave it floating for us to find any thoughts mark ps just before i sent this the cipher clerk came in with a decrypt of the attached columnar transposition keyword has length six think it answers some of our questions about the nautilus system\n" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "key_b, score = column_transposition_break_mp(c5bs)\n", - "key_b, score" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 6, - "text": [ - "(((3, 2, 4, 1, 5, 0), False, True), -1998.321513226948)" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "print(' '.join(segment(sanitise(column_transposition_decipher(sanitise(c5bs), key_b[0], \n", - " fillcolumnwise=key_b[1], \n", - " emptycolumnwise=key_b[2])))))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "phase five seahorse is ready for trials and the nautilus system is fully functional we engaged the mechanism and lowered the deck to three feet above sealevel approaching the shore by the radar station at all times signals from their communications were monitored and no sign was given that our approach had been monitored or even noticed we backed off the deck was raised by two feet and the approach attempted again once more our incursion was unnoticed overnight we conducted a range of tests and mapped the radar coverage on three separate occasions there seems to have been a flurry of activity and our modeling suggests that the ships masts may have triggered brief alarms on all occasions the automatic dive systems cut incorrectly lowering the decks to sealevel and the alarms were cancelled the seahorse deployment system will be fully mounted tonight and we will conduct a battery of tests on the deployment and emergency recovery systems over the next two nights assuming that sea and air traffic remains low xxxx\n" - ] - } - ], - "prompt_number": 42 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "key_b, score = column_transposition_break_mp(c5bs, fitness=Ptrigrams)\n", - "key_b, score" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 8, - "text": [ - "(((3, 2, 4, 1, 5, 0), False, True), -2821.4971440358026)" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "print(' '.join(segment(sanitise(column_transposition_decipher(c5bs, key_b[0], \n", - " fillcolumnwise=key_b[1], emptycolumnwise=key_b[2])))))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "output_type": "stream", - "stream": "stdout", - "text": [ - "phase five seahorse is ready for trials and the nautilus system is fully functional we engaged the mechanism and lowered the deck to three feet above sealevel approaching the shore by the radar station at all times signals from their communications were monitored and no sign was given that our approach had been monitored or even noticed we backed off the deck was raised by two feet and the approach attempted again once more our incursion was unnoticed overnight we conducted a range of tests and mapped the radar coverage on three separate occasions there seems to have been a flurry of activity and our modeling suggests that the ships masts may have triggered brief alarms on all occasions the automatic dive systems cut incorrectly lowering the decks to sealevel and the alarms were cancelled the seahorse deployment system will be fully mounted tonight and we will conduct a battery of tests on the deployment and emergency recovery systems over the next two nights assuming that sea and air traffic remains low xxxx\n" - ] - } - ], - "prompt_number": 40 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "transpositions[key_b[0]]" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 41, - "text": [ - "['tokens',\n", - " 'trials',\n", - " 'tricks',\n", - " 'tromps',\n", - " 'umiaks',\n", - " 'unfair',\n", - " 'urbans',\n", - " 'urgent',\n", - " 'vocals',\n", - " 'womans',\n", - " 'womens',\n", - " 'wreaks',\n", - " 'wrecks',\n", - " 'yokels',\n", - " 'ricardo',\n", - " 'sneaker',\n", - " 'speaker',\n", - " 'tobagos',\n", - " 'trebles',\n", - " 'woolens',\n", - " 'sneakers',\n", - " 'speakers',\n", - " 'speedier',\n", - " 'tobaccos',\n", - " 'together',\n", - " 'treaties',\n", - " 'treatise',\n", - " 'trollops',\n", - " 'unedited',\n", - " 'woollens',\n", - " 'wreckers',\n", - " 'treatises',\n", - " 'triteness',\n", - " 'usherette',\n", - " 'woodcocks',\n", - " 'tritenesss',\n", - " 'usherettes']" - ] - } - ], - "prompt_number": 41 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/2014-challenge6.ipynb b/2014-challenge6.ipynb deleted file mode 100644 index fc91ef6..0000000 --- a/2014-challenge6.ipynb +++ /dev/null @@ -1,255 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:5973034ac2337d403853a03b7c1d5fdb5ce28d6b3ac7e6be40537ee382e9f648" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import matplotlib.pyplot as plt\n", - "import pandas as pd\n", - "import collections\n", - "import string\n", - "%matplotlib inline\n", - "\n", - "from cipherbreak import *\n", - "\n", - "c6a = open('2014/6a.ciphertext').read()\n", - "c6b = open('2014/6b.ciphertext').read()" - ], - "language": "python", - "metadata": {}, - "outputs": [], - "prompt_number": 1 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "freqs = pd.Series(english_counts)\n", - "freqs.plot(kind='bar')" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 2, - "text": [ - "" - ] - }, - { - "metadata": {}, - "output_type": "display_data", - "png": "iVBORw0KGgoAAAANSUhEUgAAAYYAAAD+CAYAA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/Tf4U5g38GvouFq76H3fhr8RKwGnNU7wHuxx4S/qCOzeeAOZiz\negB7WDyGOb2dVJ85/JE7dompwH8A/m2DPgkhhsBy7OFAhMGfk/0bwJ3AZ7EHyaMNyk6rkjengc1i\n4Pwa+6qJ2cNCyDMGIZrFduxJzZdQmsifz2IzrKnYdfCsWza2slHDRWgagxB5MKNxERE4p2F64/dp\nHKoSQgghhBBCCCGEEEIIIYQQQgghhBBCiBHO/wdc3dBPs9bnrQAAAABJRU5ErkJggg==\n", - "text": [ - "" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "freqs_6a = pd.Series(collections.Counter([l.lower() for l in c6a if l in string.ascii_letters]))\n", - "freqs_6a.plot(kind='bar')" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 3, - "text": [ - "" - ] - }, - { - "metadata": {}, - "output_type": "display_data", - "png": "iVBORw0KGgoAAAANSUhEUgAAAXIAAAD+CAYAAAAnIY4eAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAG3JJREFUeJztnXuwJGV5xn8HVkHZPZ49FV2uZpCIK5a6iqCWUo7IEmIp\nUDEmkqh7SMVKpLyGMlxMAqRKssHyUmpM4gXOEgFFJRuwhLACrSiIUZllYVluunEhxRqy6C4m4hpO\n/vh6OH3mzPR0fz39zdvfeX5VUzPd00+/b3/99ds9T18GhBBCCCGEEEIIIYQQQgghhBBCCCGEEEII\nIUbKxcBOYEuf784EngCmM+POAe4DtgEn1p6dEEKIoRwHvITFhfww4Drgx8wX8qOADvAUoAXcD+wT\nJEshhFjCDCu0NwOP9hn/UeAvesadAlwB7AW24wr5sRXzE0IIMQSfI+ZTgAeBO3rGH5yO7/IgcIhn\nXkIIIQqyrOT0TwfOBdZmxk3kTD9XOiMhhBClKFvIj8D535vT4UOBHwAvBx7Ceedkvnto0QyOOGLu\ngQceKJ2oEEIscTYDa3zFL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3dijuaf1k6jzx+Dfwvbge9P26H+ESuYp4n0vx24namK4GvAN8APjBM\nbOkQvo3z2q4DfjVgmlaOfg74jyExXoD7yTQH3Eixo/+jmT859S3yjzayPB94Xfr5BvKtjiocg/Oj\n53Ab/Pdzpm0Nmdf20aTkTWvI99triHkPzsIpc1dya8D47QW0R7PwxOWw/jQo1rCYvv22LAfgjiTv\nwD3x9CDc+Y3ra4jVynz+Na7o7R2iOQPn4z8L+DLwJYpt9x/DFe9fArfgLJxbcYV6EJuBq3E7l98A\n/gm3o3/zkFjvBd6O28l8DncQuBe3s7qPEkfmQixVLsHt4EWc/C3V7oZcAbwbd5D4+JBpj+kz7u0F\nYlwA/OaA7/qdQF2EpSNyIcbBNtwRjzWbSYyXd+N+0RyN6xs3p68bx5nUIMbtkQsxbk4aPolYguyP\nO6/2Q4bbN0IIIYQQQgghhBBCCCGEEEIIIYQQQixB/h+QzzRVXRW/NwAAAABJRU5ErkJggg==\n", - "text": [ - "" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "freqs_6b = pd.Series(collections.Counter([l.lower() for l in c6b if l in string.ascii_letters]))\n", - "freqs_6b.plot(kind='bar')" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 4, - "text": [ - "" - ] - }, - { - "metadata": {}, - "output_type": "display_data", - "png": "iVBORw0KGgoAAAANSUhEUgAAAWwAAAD+CAYAAAAeRj9FAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGMxJREFUeJztnX+QJGV9h5+Fi/Lrlrst8Tg1ugkVglrGU8SYUsuJQWOI\nXCiNVJmkZNVYRg1CoobDigJWqSepxCtNTKJR7lSMEn8gWKjguaNIlMTIIYqAOb0EU96ReJADRIOy\n+ePtcWdnp2e6353pebvneaqmdrrn/cz32++veefTPb0gIiIiIiIiIiIiIiIiIiIiIiIiIjVjA/BR\n4FvAzcCvAnPAN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4C\nnDCg/A1Zbu8CrgQ2UHLCXje8yEi4nfD14XLCJ9+d5F813un46wirpdsJPtcjGV7xfwl8mfCpNwO8\ngNDIg3g/wXv+eKY5g7BKGcQ7Cd8QHkpopN8F/jyn7Duyx98RvtIW5VLCB8PlWV6nAx8idK7eD7tO\nnR0OvJjwYfDjbN8w/3bc9E5kc4SOfj3jye0swgfDOsLvAjp8fIDm6ZSrt0sI+Xf3mTzrrcOT6N+f\nbxoQK6Zv/uaQ1/vxX4QPrWcRJu0jyJ+wPkSwXbazvCqFYFf9YEic7r5wGGH8FPWv7wD2ZzGOG1Bu\nN2GMfJmwKn9Sph3ET4D7CB+8RxA+7B4YqAg8kOV0gPAhuRH4KPA54HUDYr0SWCB8Wyplq1R50rFD\ni+CXfQb4vz6vzw/QLgH/MeT9H0v4WrRE8IyGreQheIWdE0hfpNin3qOB38ie7ybfplgLpxB84yXC\nYP9qTrn5Ie+zb3QplWZ+yOv7RhzvVoLtUuaXuPM5+/cN0JzMyhOIw/pMXoxhsWL6ZlmOJqwUv064\n8+ZmwvmGq0ccZ77r+U8IE939QzSvJHjsDwX+CfgIg8f02wmT9I+AfyZYLl8mTMh53AhcQfjweAjw\n94QP7hcM0JwDvIjwAfIPhAXc/YQPom/Tf6X98uy9O5wMvAp4yYA4Io3mEsKHtjSDtxL3i7/1wNmE\nBd6Ph5Q9pc++Fw3RXAQ8Kue1ficxR8IkVtgi4+QWwuomJVtIquNswjeSkwl94Nrs8flJJjUqqvKw\nRariOcOLSIM5gnAu62sMt1tERERERERERERERERERERERBLk/wGh1P0qDD3LLgAAAABJRU5ErkJg\ngg==\n", - "text": [ - "" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "c6as = sanitise(c6a)\n", - "c6as" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 5, - "text": [ - "'mtaeglatcleptenopeautelebiiootatwnantateituiiagaeostgvetabdresiacqobwavgrhrsihssaekajbwwttdrsmeetnyafsegilegtkrreocuantteomsgstnsiaeluutrbaiaeteeserhxgtooarrbhpcklialhnaesvearhbepiydcesewtaxuyaerywoeinhteegeisieireaassrbitnhtuorooleewsttereoahyakhlsmsaeodslthsutigqimnidsgetpmwtrnnotfhvselkaumrndvcnrluceryhyeetlnigouncnanrhpnosbhshpslreclvrinfoehniaeennhcrbenrgunruesmlrehiutgteordroeaeoisoeusiknteeslohthdcrmisuteoteaeoshfaiaesemritrseisaigwyrmhrbtetncoenuhorcadeodlcrncomnctosihudtcinagesntisutigytmshthyalatlsnhilguimtlbfldyhrfrnetsaosteetaefhlgokhretcakuteihrlrtlsetshlcpeadhthyutaeennhryraeennihrnbhnsnehyutsdtoywmtiatalwhvbepetlxihuscrtadtikhnxmsaesnwluevgnrcpegvnhteruigeuealsdntikeaeomctwrybusiilephkyodhrsyhecaatrmrltrarretstuoetnuesiduaidoesisaeetbllerpntroisiatsiasesomihsieiaunsaitneelacrfnrnngvetteenslhvpepteonedtnaooutgsotancetimiiwoetiuihclsewtcniieotslfbeecohenpoelsdoctceeemiiirttmhbiuovecegaitjuaborcleentatruyinetsidlaeehitwencceohwvohoatwkteroarhcseer'" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "c6bs = sanitise(c6b)\n", - "c6bs" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 6, - "text": [ - "'hwssswxfewhhrfewpdrvttdhxbccleayphalnadhiehaoudrotwnrrvysabjlttbaytmelrkaidopthatlelrtwaamaneksvvzrvllatkcrjquicizgtoqcpnrrkttowandqehtqrvtbaydqealannohulanuzlwextlvjrvivhnohdqmgykaclmswrupdetfioftfelhzpxhaswftwprrsweiseohefpdrvttnvagdvswgoerbetnharvaeevtlltbmgaiatgelinmdawevhatterdhrznbnvoutnefoteveaehlaymhacglzeptvvdimworfisgtuzlwibeqohubtghamqornjnnrumqvjtxeltfovgawdaeevllgrtxibgtibevmpsaateoasevaeyqohameonncfuidoefafattemuimnflznbekofobrliaehhauihnnnwzaeevtlltpaalnanvtzlzuucptaelinanpaahewfthaosetaribnbnvhaevdhyytlmuxb'" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "key_a, score = railfence_break(c6as)\n", - "key_a, score" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 7, - "text": [ - "(3, -2314.997881051078)" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "' '.join(segment(railfence_decipher(c6as, key_a)))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 8, - "text": [ - "'mark the last message told usa lot the scuttling equipment is designed to pump water in and out of the vessel like a submarine dive control but clearly they werent planning to turn a container ship into a sub this ship is a largescale version of something i have seen in the caribbean drug runners use a similar technique to get below radar coverage for inshore runs sinking the vessel so that the deck remains just below the wave tops the fda pirates seem more interested in staying away from shore but getting close enough to track and record electronic communications without detection i am guessing this scuttling system is what they call nautilus in their log but i am still baffled by the references to seahorse the next page of the log looks harder to crack but the cipher clerk tells me it is a hill cipher and that they must have been in a hurry or have been enciphering by hand since they just used a two by two matrix actually we have been pretty lax with our security and i think the next message is end will use avi genere cipher given that we are using secure cables i dont think we have too much to worry about so i will keep the keyword short say three characters more later harry'" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "key_b, score = hill_break(c6bs)\n", - "key_b, score" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 14, - "text": [ - "(matrix([[0, 1],\n", - " [1, 1]]), -666.1299098341699)" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "' '.join(segment(hill_decipher(key_b, c6bs)))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 13, - "text": [ - "'phase six seahorse operated exactly as planned with good forward visibility at the trial depths the crew managed several tasks requiring concentration and dexterity and we plan to run a full test overnight on dummy cables dropped from the ship the software seems to be operating as designed but there are still bugs in the firmware that need ironing out before we deploy the collective is working full time to hunt them down and remove them though we are all getting tired mistakes are easy to make and could be fatal time is no longer on our side though and we are still planning to launch the final phase of the operation in three days timex'" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/2014-challenge7.ipynb b/2014-challenge7.ipynb deleted file mode 100644 index 35d298f..0000000 --- a/2014-challenge7.ipynb +++ /dev/null @@ -1,387 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:3a4749bad5690e746e43cddb887ed31282398e12c90470d01010a2e6a024c527" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import matplotlib.pyplot as plt\n", - "import pandas as pd\n", - "import collections\n", - "import string\n", - "%matplotlib inline\n", - "\n", - "from cipherbreak import *\n", - "\n", - "c7a = open('2014/7a.ciphertext').read()\n", - "c7b = open('2014/7b.ciphertext').read()" - ], - "language": "python", - "metadata": {}, - "outputs": [], - "prompt_number": 1 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "freqs = pd.Series(english_counts)\n", - "freqs.plot(kind='bar')" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 2, - "text": [ - "" - ] - }, - { - "metadata": {}, - "output_type": "display_data", - "png": "iVBORw0KGgoAAAANSUhEUgAAAYYAAAD+CAYAAAA+hqL9AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJztnX+0VeV55z9XKZjo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hhsBy7OFAhMGfk/0bwJ3AZ7EHyaMNyk6rkjengc1i\n4Pwa+6qJ2cNCyDMGIZrFduxJzZdQmsifz2IzrKnYdfCsWza2slHDRWgagxB5MKNxERE4p2F64/dp\nHKoSQgghhBBCCCGEEEIIIYQQQgghhBBCiBHO/wdc3dBPs9bnrQAAAABJRU5ErkJggg==\n", - "text": [ - "" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "freqs_7a = pd.Series(collections.Counter([l.lower() for l in c7a if l in string.ascii_letters]))\n", - "freqs_7a.plot(kind='bar')" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 3, - "text": [ - "" - ] - }, - { - "metadata": {}, - "output_type": "display_data", - "png": "iVBORw0KGgoAAAANSUhEUgAAAXIAAAD+CAYAAAAnIY4eAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGfhJREFUeJztnX2wJFV5xn+XXQWFe929pS7r5xBKAlLqKpoiKsWNQWKM\nEipGIomRawhlRIVNmYRdK5HdVMUgKROixiRAYBfByPoRIqkE2ay340cQJbDL4mYRN94IplhSLusu\nJhqQmz9OD7dn7vT0nDMzp98+9/lVTc10z3n6PV/9Ts/T3TMghBBCCCGEEEIIIYQQQgghhBBCCCGE\nEEIIMVKuAfYDuwvrpoHtwDeBW4FVhfc2AvcBe4EzI9VRCCFEH04DXkpnIr8c+L389SXAZfnrFwI7\ngScBLeBbwBFRaimEEKIvLToT+V5gTf762HwZ3NH4JYVytwCnjrtyQgix3Ak5Yl6Ds1vIn9tJ/VnA\nA4VyDwDPDq+aEEKIQRjW+ljIH/3eF0IIMUZWBmj24yyVB4G1wEP5+u8Czy2Ue06+roPjjz9+Yd++\nfQFhhRBiWbMLWNfrjZAj8s8B5+WvzwNuKqx/C/Bk4DjgBcDXusX79u1jYWGh5+PSSy8tfa9pGqv1\nksZuvaSxWy8LGuAlZUm56oj8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] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "freqs_7b = pd.Series(collections.Counter([l.lower() for l in c7b if l in string.ascii_letters]))\n", - "freqs_7b.plot(kind='bar')" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 4, - "text": [ - "" - ] - }, - { - "metadata": {}, - "output_type": "display_data", - "png": "iVBORw0KGgoAAAANSUhEUgAAAXIAAAD+CAYAAAAnIY4eAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGORJREFUeJzt3X+QJGV9x/H3wikgd+vdVvT4aRaJiFgqiqAppVyQI8RS\noGJMJFFvScVKpCJqKMOBSVhSJblgqVeamMQfcEcElCghYAkBgVEUxFKZ4+A4fulFIHVnyGHuMBEw\nXP54em5nZ2dnunu6Z/rpfb+qpnamZ77zPE9v9zM9n+mdBUmSJEmSJEmSJEmSJEmSpEJdAmwHNnW5\n7xzgWWCibdl5wIPAFuDk0nsnSerreODVzJ/IDwVuAH7M7ER+FNAEngNMAg8Bew2ll5K0iPWbaG8D\nnuiy/BPAn3UsOw24EngG2EqYyI8bsH+SpD7yHDGfBjwK3N2x/KBkecujwME5+yVJSmlJxsc/Dzgf\nWNW2bKzH43dn7pEkKZOsE/nhhPx7Y3L7EOAHwOuAxwjZOW33PTbvCQ4/fPfDDz+cuaOStMhtBI7O\nWzxJ97NWoPuHnc8FDgMepvvR+u6FXHDBBQve14t11lm3OOpi6GNZdfRIOPpl5FcCtwNHAI8AZ3ZO\nym3XNwNXJT+vB87q1XA3W7duzfJw66yzbpHVxdDHUdT1i1bO6HP/iztuX5RclBgfn2DXrtkTfzZs\n2LDn+rJlK9i5c8couiWpRvYeQZszMzMzXe9Yvnw5k5OTmZ+wynXnn7+G8MZkBpgC1ifXZ3j66TUs\ntC6G3U/rrIuhLoY+llV34YUXAlzY7b5eZ5yUJYl7FoexsTEWTpjGWEzrQlJ+YS7p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4Anl7gMZM96ncD/56i\nnZcT3j7tBm4h3TsACPlt60Oob9H7CKTdy4A3J9dvpnfEUYRjCVn0bsLO/f0ej53s81xbi+nSwCb7\n3L+1pHbvJ8Q4Wf9ieXKB5VtT1B7D3A8t02xnC7WXpd0s9iccQd5N+JbTAwmfXdxYcDswd2y/JEx2\nz6SoO4uQ5b8Q+Gfgy6Tb1z9JmLx/AdxOiHHuIEzSvWwEriW8yPwK8I+EF/F39Kn7APAewgvN5wkH\nfs8QXrQeJOORuaT5LiW88Cs+f81gfwW5DHg/4eDwqT6PhXAA1ek9KeouBH51gfu6fYDaVZWOyKWq\n2UI4Iqpq5KTivZ/wzvsYwu/9tuRyyyg71c+oM3Kpyk7p/xDVzL6Ez9J+SLoIR5IkSZIkSZIkSZIk\nSVqk/h/e+2Rlj0saNgAAAABJRU5ErkJggg==\n", - "text": [ - "" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "c7as = sanitise(c7a)\n", - "c7as" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 5, - "text": [ - "'veyjmyjkrzilysyjeydorulcsrcjnmoiddeugurlogfsnwcrlhckhghmwkejxlyktlagflalvtmgkyyomvlmgkyjosfdrzepwaqgnrzeqzinoaqforkcsltjwdussrzarlhcnajneqzabbakeebatjgoiklgcerzebjidlwmgdussnmljwdgftmlhceeazalasksnbtlmukcvtfwilderhrckuksbjqtfwcpwwfsdydrcsdwsbyfdmfeblhcneqkejohguhussjmciqfmjuqoirzosltfwsfapuwwmmlbzatwhyvnmadcstfstrzedvafsdzwelgpcjaraneanrzeqwwylepkscshmjscaslglmfgcjakqsrwrwlhcuurswyqollhcktyjbmsrbkibwcjwapwdyfapwamxapgulvfgnekwtcjsqiuyjeuatfsdgktgfcravcharlepfodtojlsdssrwncvtmjegffmjccvdcukndarwsgkaukokwtfanediiwtfasmfaqmbpwsamekasqaolscmmpjwodqeyjsyyouzellhcqfgltcvajgcydsfapuatfsjsjypagewdgfsnwcraolkyqleklhcveacpjstckcyfcyjrwscpsncveqaglwdrgdchlmqaljotsrceorwonwrylebnefacjwdckiefebxopmnbwrqwamhepstggnqawykajjeyvyagnawrlwdytosltfwrcxepwnawtmlhcuazdeqanrzejssrhaplodlhcxdydoeturlhcfevlscutggnfsskwrcsljqwmjrgwdgliqwnajynleboirzakgrckeamrceobafgwdyesagtpsnqhoqatggnaapfwryfdrwljkuqohyltfwyuwrcjeydlwmprgwfstgvollulvepktyfdgkhmotfwwfglcssqwmzdygkpmoepwdrzeqgrrgfagmnmtgfgrzeweuqlbcvogfggkrcsljqillelkitwalvwmmlbtupftfjosyhytarlepqilvawkillhyltgeerzegjillepuenlmgyhrforuaruhyfyrzilyuqwfsdbsltfwyasnfsrbdyfsvczihsciwdydoaslqgciwtgftfwmgvdjwodlhcgccsnasnwguewtkwaazaplsfgwgfgrzebwenkeyuazdeqanrzepwgggngvolliksggferzeskwgdlzwanjozdekturatksylwebkokwdghlmeaaqtmyerlhcxujdcmnepsgceankfpgmrzemealagmnepfmcftgxiyergyhratgkillhcarzwsranrwrcktqlondawslmfguwajdhyneydorlojgsczepw'" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "c7bs = sanitise(c7b)\n", - "c7bs" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 6, - "text": [ - "'anwaecnndrtwtanireoahsrdntieerdctewayerevaaarpioerobsedescrehlaoitithsdtrinosepeplthtnidtwsduledlhotpeaterhaaredeoaiodtahregerothwhtsureteeinwigiresetpowicooonitseudseechacteofiileonewiotacteodteuneahsedaptryemronmomlexontkemeoyvitsteenhantrertieineotndlhpoplyitewitrsedeevdycfrmnsnaypinmteeneeinahinepritedehveleaorelllvmocnahncepherohjuuvehautathttetoasipowwneedselopgdeslfedterfcaatehjasdtrprleseeretetecneorrsgckamiiwaefutiashaongcthsrenrehtrsthhaceinwtprloghetodaeraloeedeatsomldwedtwefsbelevpdteonoignsavftegsebomcehatietnrsptonthusorecredendcetlwaehesedrncveracuhoihaleinaemeunherdesttstasipedeyleeemtiisiigothntssfolnitretrwhemtkhhswtorcssnererohteencsapeblircnthuleofenrsromrnshmaddaodeatihioroutwevthapeceetovterdleaditewdottttcatkmbhtheicwantnisedwatxankeabovoanmswlprgaispodfogndpedeswrdacttrefhdesyaberretlavod'" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "key_a, score = vigenere_frequency_break(c7as)\n", - "key_a, score" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 7, - "text": [ - "('say', -1726.4679903722085)" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "' '.join(segment(vigenere_decipher(c7as, key_a)))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 8, - "text": [ - "'dear mark things area lot clearer now i flew out to inspect the ship myself last night and took a good look around the reason the ship was not scuttled was that the valves had jammed it looks like the driftwood was pulled into the mechanism and blocked the inlet presumably the crew had already abandoned the vessel which was lucky for us without the ship we would have had no idea that the fda had been operating in these waters seahorse is no longer a mystery the cutaway on the starboard side cleared an area of around five meters square with a distinctive pattern of bolts fastened to reinforced deck plates i saw something like this on a sub rescue mission a couple of years ago when they fitted a local ship with a jury rigged inspection system the deck plates can carry a crane designed to deploy an rova remote operated vehicle designed for undersea operations i was already concerned about the reference to the cables in the last part of the fda log but the next section has me really worried it is encrypted with a more secure modified amsco transposition cipher and tells us what they were really up to what i dont understand is how the whole assembly is powered the sort of computing they must be doing is really intensive and would burn through a battery in days in that time their intercept might not catch anything useful but they can hardly have hijacked a local socket in the middle of the ocean can you get me a chart showing the deepsea cables in the region i dont imagine the us will be a problem but it may need some diplomacy to get the full coverage maps from the omani government if i am right it is in their best interests to playalong we all have alot to lose here'" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "key_b, score = amsco_break(c7bs)\n", - "key_b, score" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 9, - "text": [ - "(((1, 2, 0, 4, 3), (2, 1)), -1902.8377732825452)" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "' '.join(segment(amsco_transposition_decipher(c7bs, key_b[0], fillpattern=key_b[1])))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 10, - "text": [ - "'phase seven we approached the cable junction undercover of night with nautilus at an elevation of three feet towing seahorse to starboard comms interception showed that we remained undetected and seahorse was deployed at operating depth the various layers of armoured protection were removed from the cable and as expected once the steel jacket was removed the other layers provided little resistance the divers entered the water and cut into the core to insert the optical repeaters linking them back to the man in the middle unit which was powered up and fully tested initial tests showed that it was operating as expected and three keys have already been recovered from the omani transmissions with daylight approaching the remaining tests were postponed for the following night and the ship returned to deeper waters where it remained at low deck height the divers were left at seahorse to decompress slowly and will be recovered tomorrow once the final tests have been concluded'" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "transpositions[key_b[0]]" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 12, - "text": [ - "['cable',\n", - " 'facto',\n", - " 'facts',\n", - " 'gabon',\n", - " 'hafts',\n", - " 'hefts',\n", - " 'ibexs',\n", - " 'kabul',\n", - " 'lacys',\n", - " 'ladys',\n", - " 'laius',\n", - " 'lefts',\n", - " 'macon',\n", - " 'macro',\n", - " 'macys',\n", - " 'malts',\n", - " 'melon',\n", - " 'melts',\n", - " 'negro',\n", - " 'oahus',\n", - " 'obeys',\n", - " 'obits',\n", - " 'odets',\n", - " 'pacts',\n", - " 'pants',\n", - " 'pelts',\n", - " 'pints',\n", - " 'piotr',\n", - " 'pious',\n", - " 'plots',\n", - " 'plows',\n", - " 'ploys',\n", - " 'rafts',\n", - " 'rants',\n", - " 'remus',\n", - " 'rents',\n", - " 'riots',\n", - " 'scout',\n", - " 'shout',\n", - " 'snout',\n", - " 'cabbed',\n", - " 'cabbie',\n", - " 'cabbys',\n", - " 'cabral',\n", - " 'dabble',\n", - " 'faeroe',\n", - " 'gabbro',\n", - " 'ibexes',\n", - " 'jaguar',\n", - " 'kaboom',\n", - " 'kaftan',\n", - " 'lacuna',\n", - " 'lagoon',\n", - " 'lefter',\n", - " 'legume',\n", - " 'macaws',\n", - " 'magyar',\n", - " 'malays',\n", - " 'maltas',\n", - " 'mellon',\n", - " 'negevs',\n", - " 'nellys',\n", - " 'nelson',\n", - " 'odious',\n", - " 'paddys',\n", - " 'panzas',\n", - " 'peggys',\n", - " 'pelves',\n", - " 'pennys',\n", - " 'photos',\n", - " 'pinups',\n", - " 'qantas',\n", - " 'rabats',\n", - " 'rallys',\n", - " 'refuse',\n", - " 'refute',\n", - " 'remuss',\n", - " 'renews',\n", - " 'repute',\n", - " 'scouts',\n", - " 'shouts',\n", - " 'snouts',\n", - " 'cabbage',\n", - " 'cabrera',\n", - " 'dabbled',\n", - " 'gadwall',\n", - " 'ladonna',\n", - " 'leftest',\n", - " 'madonna',\n", - " 'malayan',\n", - " 'million',\n", - " 'papacys',\n", - " 'pellets',\n", - " 'penneys',\n", - " 'qantass',\n", - " 'ragtags',\n", - " 'refuses',\n", - " 'refuter',\n", - " 'regrets',\n", - " 'rennets',\n", - " 'renters',\n", - " 'reroute',\n", - " 'sallust',\n", - " 'macassar',\n", - " 'mahatmas',\n", - " 'mahayana',\n", - " 'nanettes',\n", - " 'palatals',\n", - " 'phosphor',\n", - " 'reenters',\n", - " 'phosphors',\n", - " 'sinusitis',\n", - " 'malayalams',\n", - " 'sinusitiss']" - ] - } - ], - "prompt_number": 12 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [] - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/2014-challenge8.ipynb b/2014-challenge8.ipynb deleted file mode 100644 index e30823e..0000000 --- a/2014-challenge8.ipynb +++ /dev/null @@ -1,5186 +0,0 @@ -{ - "metadata": { - "name": "", - "signature": "sha256:8cfa7fab1d8d3830f8cdd550122b0b7f10258d8adb3ff205bd1feeca64418741" - }, - "nbformat": 3, - "nbformat_minor": 0, - "worksheets": [ - { - "cells": [ - { - "cell_type": "code", - "collapsed": false, - "input": [ - "import matplotlib.pyplot as plt\n", - "import pandas as pd\n", - "import collections\n", - "import string\n", - "%matplotlib inline\n", - "\n", - "from cipherbreak import *\n", - "\n", - "c8a = open('2014/8a.ciphertext').read()\n", - "c8b = open('2014/8b.ciphertext').read().strip()" - ], - "language": "python", - "metadata": {}, - "outputs": [], - "prompt_number": 1 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "freqs = pd.Series(english_counts)\n", - "freqs.plot(kind='bar')" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 2, - "text": [ - "" - ] - }, - { - "metadata": {}, - "output_type": "display_data", - "png": "iVBORw0KGgoAAAANSUhEUgAAAYYAAAD+CAYAAAA+hqL9AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJztnX+0VeV55z9XKZjoxcs1FsEYr7U0SrVhQojpSuI6/kBp\nJkGcWsWZCjczk1VljHFNp4NkpgOMq5TQ1anamTQmGi40wWiro5gRBIGdmh94lXgMkSBgggUqJAYR\nTFIGRuaP5z2cfc89P/be95593vPe72etvfa73/0++/2x99nPfp/vPueAEEIIIYQQQgghhBBCCCGE\nEEIIIYQQQgghhBAtZQHwMrAVWAWMAbqB9cAOYB3QVVF+J7AduCaWP9UdYydwbyx/DPCwy98MnB/b\nN9fVsQOYM1wdEkIIkZ0e4MfYzRvsBj4XWA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8raW9niHb9fkK9kT+Y9emrdiDSS1KD09LsRAp1L6+bnPH+2Xs\n2Fuxl/i/3qBdlXRjN9YkfAC7Eb8CbEhQfhQ2vp8H/pHGY3Y6NovbjDmJz5MsanMK5hS+gfVlCXBh\nnfIvurZ9EXgS6CKlYxjVuEhbsQebdj2OefI3qf2NkNIHbBT2BLgHi0W+j/on+C+B72EevAP4A+xi\nqsdKTBt4zNnMwp646vHX2Gzn17EL4Qbgv9Yoe59bvoSFAdLwdcwJPe7a9ilgFXYRVzrV0pidCnwa\nczxHXV6jGHszqbxZdmMfpudoTrvmYg5oFPa9mhKP1bH5OOnHbDnWh/h1UytsWeJDVL+et9apL8v1\neW2D/ZXsw5zjdMw5nEbtm+IqLFS1lPITNliY7+cN6olfC6dgn5+k+sJPgf2ujrMblN2AfUa+h800\nPuTs63Ec+BXm4E/DnOo7dS2Md1y7DmDOeBzw98AzwJ/UqWse0IvN/lKFo0IUn0sUsJjmWuD/Vtnf\nU8f2BPBanf2/jU0lT2DxvEazErA4bklE/AeSefCLgatcegO1QztDZRoW1z+B3VReqFGup8Fxdg9f\nk1LR02D/7mGu7xUsXJXmm/k9NfJ3N7CbykAhudF1U6ueRvVluT7TcDr21PsD7JeSJ2B60Lphrqcn\nlj6O3UyPNbCZh2kgvw78HfAwjT/Tf4U5g38GvouFq76H3fhr8RKwGnNU7wHuxx4S/qCOzeeAOZiz\negB7WDyGOb2dVJ85/JE7dompwH8A/m2DPgkhhsBy7OFAhMGfk/0bwJ3AZ7EHyaMNyk6rkjengc1i\n4Pwa+6qJ2cNCyDMGIZrFduxJzZdQmsifz2IzrKnYdfCsWza2slHDRWgagxB5MKNxERE4p2F64/dp\nHKoSQgghhBBCCCGEEEIIIYQQQgghhBBCiBHO/wdc3dBPs9bnrQAAAABJRU5ErkJggg==\n", - "text": [ - "" - ] - } - ], - "prompt_number": 2 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "freqs_8a = pd.Series(collections.Counter([l.lower() for l in c8a if l in string.ascii_letters]))\n", - "freqs_8a.plot(kind='bar')" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 3, - "text": [ - "" - ] - }, - { - "metadata": {}, - "output_type": "display_data", - "png": "iVBORw0KGgoAAAANSUhEUgAAAWwAAAD+CAYAAAAeRj9FAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHL9JREFUeJztnX2QHEd5xn9nK/5AuuPugpHE54IrIKCAC8IEylAsikQg\nAcUFgYKEoCMJIRBsUiFEshNiiSpAViqBgoQkfPkEmG+MYlEFSNgsGDBOjLVCtpEMwkocKpKxz3Ay\nBmLw5Y+e1e7tzexM9+729PQ+v6qt3ZnpZ9+3u2d7e5+ZnQEhhBBCCCGEEEIIIYQQQgghhBBCCCGE\nEEJUiIuBm4FDwEeBM4FpYD9wK7APmCwtOyGEEADUgO9jBmmATwBbgF3AXyfrtgI7vWcmhBBiCdPA\nEWAKWAHsBTYBh4HVSZk1ybIQQoiS+VPgJHAH8OFk3d0d28e6loUQQpTAucAtwK9iZtifBV7B8gF6\n3nNeQggxcqzI2f5U4BvAXcnylcAzgOMYK+Q4sBYz+17Gueeeu3j06NHBZCqEEKPDQWCme+VpOaLD\nwNOBszHWx0bMjHsv5uAjyfOeNPHRo0dZXFxc9rj00ktT1/d6jLom1LykCTcvacLNK08DPDltTM2b\nYR8EPgTcANwP3Ai8FxgHPgn8MXAMeGnO+yzh2LFjNsWlGXKMiYlpTp5su1w7duwAYHx8ioWFfLcr\n1DbzpQk1L2nCzctVkzdggzmFb1fXunnMbFtEgBmsF5OlWWAuWT9WTkJCiFROH/L7b9++ffuylZOT\nk9RqNas3GnXNMGOYGfX2lgpz+j3ADtL6z2duVdCEmpc04eaVp0l+5e7oXj/sKdRi4seIgBkbG6M9\nw16yBfWfEP4xn8nl43PeQceh0Gg0pLHU+MoL/MSJSRNqXtKEm5erppQBWwghhD2yRIQsESECIyhL\nRAgh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U2YQfsssgesj2Jsl520Z6Vg7Kq7cuJ07gunYT4/Rf3rO4DjSYxzepS7GvMZuQ4zK39qou3FL4Cf\nYr54z8J82d3fU2G4P8npBOZLcgr4NPAl4E09Yr0OmMX8WrKyVXwedGxRx/hlXwD+L2V7rYd2Efiv\nnPd/AuZn0SLGM8qbyYPxClsHkL5KsW+9xwG/mby+mmyboh/Ow/jGi5gP+w0Z5Wo573NscClZU8vZ\nfmzA8Y5gbBebf+LWMtYf66FZz9IDiHn7TFaMvFgu+6YtKzEzxW9jrry5FnO8Yd+A49Q6Xv8CM9Dd\nl6N5HcZjfzDwKeAT9P5MvwMzSP8M+AbGcrkOMyBncRC4CvPl8SDg3zBf3C/poXkD8ErMF8j7MRO4\n+zBfRN8lfab9muS9W6wH/hz4ox5xhIiayzFf2iIO3o7bP/7GgQsxE7yf55Q9L2XdK3M0O4BHZmxL\nO4g5EMqYYQsxTA5jZjch2ULCHxdifpGsx+wD1yaPa8pMalD48rCF8MXz8ouIiDkLcyzrRvLtFiGE\nEEIIIYQQQgghhBBCCCGEEEIIIQLk/wFJCFVD/Yn0OQAAAABJRU5ErkJggg==\n", - "text": [ - "" - ] - } - ], - "prompt_number": 3 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "c8as = sanitise(c8a)\n", - "c8as" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 4, - "text": [ - "'nyvlggsyglchxfeuytqcesqxpziufiggrbjhpayncruyfpsxufiupskyrectmmcncruyregxigrlglbtiblmecebzsvrlpuxpbibjajrljreobajrlufigjehbezywtmgjyxfqxictsgrdgtbjafyoocwtmjblctwwucqmgofrlfmrfrlfwlbtijlwuypmchjqxicrfchumtsmzjbimyvhcuvyrugxjcwpdtpuisrlfdhbaencyqumufeogrhcrjmytqsmsxjmrcsxjrmttiswzvjrfpecjitnidgemdssaitasvjhuyofgxpsxgmvvqfvrxiyxxmymbxfjpufigbeufeuuiiyzfavbaofbxicmsamqfisqwpgrtribbmtskhcwuuimcxufinbitrvpwxsmnbljppytuixgpmlifbgpmtfpeugsodvpkxicsnyrjeswcvokioreoyvnchggkirishiuyrerlfdpjeluasorvpjwzqxfkwgpsnyhsmrfkiblaigpfuiociersflwvpiuusufmoewpliufeuuiemrprwflhdpmuggbjmodsskeugsoygsmwtrlfzecypnyreyftrvbgxblhuusufeuuivqiblsoavjrmdyplcchcrfpeugsonvprsdmpplxiyxdfeolimemwcrufimczfjsgasnkmukiorxicjeylbtitfsxlmobiwcppnmoexigwqjeogenqyscxiyxufizummjvfgrtreucxictpuisqyqnpzumufmoyjfuqplxiqfvrajrlmsglrlfwajjpomxhsitqxiyxxcoomabzsvrmuyreuixgpmnyugxpsxpdfvqmocwtdssjsoeiomyhfxpasncyqumufeqjeomjpsvpurumiynppgxjrmorlfkiblxjkixcrpuoomaufeurlfgvigkicwuqidsvjrcdmqnsrjaeugsoqescioavznxfbytgrhygbbioswdgticvtmafaeoqxbpxisrugrhrlsmyhfxichbrecywfdssmxicvjlxfpgfnxtuidyrdpedixigwnycccxicfscelrlsmyhfaffewcffcrmmslgrhdssgrufiggkirehymoqxufigbemcxtlsuqgscajryqypmrlfzitrlbpvz'" - ] - } - ], - "prompt_number": 4 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "key_a, score = vigenere_frequency_break(c8as)\n", - "key_a, score" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 5, - "text": [ - "('bye', -1461.9840974270046)" - ] - } - ], - "prompt_number": 5 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "' '.join(segment(vigenere_decipher(c8as, key_a)))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 6, - "text": [ - "'mark i cracked what appears to be the final document about the trojan deployment and i think i have an idea about how to deal with it and with the flag day associates the principal weakness of any system like the one they have installed is the need to provide large quantities of power the fda came up with an ingenious solution but it is very vulnerable special forces could take it out for us but that would tell the fda that we have cracked their ciphers so instead i suggest we let them destroy trojan for us we will need cooperation from the omani government an armed fighter jet and the flight control systems from a drone meanwhile we need to ensure two things one that we do not send critical information across the ba balm and abstrait and two that we use an on critical key generation protocol on that channel given the level of commitment the fda have shown in developing this plan i am sure that they will reinstate the powersupply within a few months but with luck they will not guess that we know about it and we will put it out of business for long enough to come up with a plan of our own to exploit it in the meantime we now know that their highest security communications are encrypted using a caden us cipher so we can start hunting through the database for other intercepts we can crack this maybe the breakthrough we have been looking for in the fight against the fda lets not screw it up all the best harry'" - ] - } - ], - "prompt_number": 6 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "len(c8b) / 8" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 7, - "text": [ - "875.0" - ] - } - ], - "prompt_number": 7 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "[c for c in chunks(c8b, 5)]" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 8, - "text": [ - "['00000',\n", - " '00101',\n", - " '00010',\n", - " '00000',\n", - " '00100',\n", - " '10100',\n", - " '01110',\n", - " '10011',\n", - " '10011',\n", - " '00000',\n", - " '00010',\n", - " '10011',\n", - " '00111',\n", - " '10001',\n", - " '01000',\n", - " '01110',\n", - " '01011',\n", - " '00100',\n", - " '10011',\n", - " '00010',\n", - " '10010',\n", - " '00100',\n", - " '10001',\n", - " '10011',\n", - " '00111',\n", - " '10010',\n", - " '00111',\n", - " '10011',\n", - " '10001',\n", - " '00000',\n", - " '00111',\n", - " '01010',\n", - " '11000',\n", - " '01110',\n", - " '10001',\n", - " '01111',\n", - " '00101',\n", - " '10001',\n", - " '00110',\n", - " '00100',\n", - " '01110',\n", - " '00000',\n", - " '00011',\n", - " '01111',\n", - " '01111',\n", - " '01001',\n", - " '01101',\n", - " '00110',\n", - " '01011',\n", - " '10011',\n", - " '00100',\n", - " '10001',\n", - " '01101',\n", - " '00100',\n", - " '00101',\n", - " '00100',\n", - " '01110',\n", - " '00101',\n", - " '01000',\n", - " '01110',\n", - " '10001',\n", - " '10011',\n", - " '10010',\n", - " '00011',\n", - " '00011',\n", - " '01110',\n", - " '00100',\n", - " '00100',\n", - " '10100',\n", - " '01100',\n", - " '10010',\n", - " '00010',\n", - " '10001',\n", - " '10100',\n", - " '00100',\n", - " '10001',\n", - " '01101',\n", - " '00101',\n", - " '00100',\n", - " '10011',\n", - " '01011',\n", - " '00000',\n", - " '00000',\n", - " '00101',\n", - " '10010',\n", - " '10011',\n", - " '10110',\n", - " '01000',\n", - " '00100',\n", - " '01101',\n", - " '10011',\n", - " '10001',\n", - " '10101',\n", - " '01110',\n", - " '01110',\n", - " '01101',\n", - " '00100',\n", - " '10001',\n", - " '00111',\n", - " '10100',\n", - " '00000',\n", - " '00111',\n", - " '10001',\n", - " '00000',\n", - " '10101',\n", - " '00100',\n", - " '10001',\n", - " '00100',\n", - " '00100',\n", - " '10011',\n", - " '10010',\n", - " '10101',\n", - " '10010',\n", - " '01000',\n", - " '00100',\n", - " '01011',\n", - " '00111',\n", - " '01011',\n", - " '01110',\n", - " '10010',\n", - " '10011',\n", - " '00011',\n", - " '01110',\n", - " '00000',\n", - " '01011',\n", - " '01110',\n", - " '11000',\n", - " '00000',\n", - " '00100',\n", - " '10010',\n", - " '01100',\n", - " '01101',\n", - " '01101',\n", - " '00011',\n", - " '01000',\n", - " '00110',\n", - " '01101',\n", - " '01101',\n", - " '10001',\n", - " '00111',\n", - " '01110',\n", - " '00111',\n", - " '00111',\n", - " '10011',\n", - " '10010',\n", - " '01101',\n", - " '00000',\n", - " '01110',\n", - " '01000',\n", - " '01011',\n", - " '01101',\n", - " '00010',\n", - " '01101',\n", - " '10010',\n", - " '10010',\n", - " '01000',\n", - " '00010',\n", - " '10001',\n", - " '00100',\n", - " '00000',\n", - " '01101',\n", - " '01101',\n", - " '00100',\n", - " '00100',\n", - " '01000',\n", - " '01000',\n", - " '01000',\n", - " '00100',\n", - " '10001',\n", - " '10110',\n", - " '10011',\n", - " '00000',\n", - " '01101',\n", - " '00100',\n", - " '10010',\n", - " '10001',\n", - " '10101',\n", - " '01110',\n", - " '00110',\n", - " '01000',\n", - " '00100',\n", - " '01000',\n", - " '11000',\n", - " '10110',\n", - " '10010',\n", - " '10010',\n", - " '00011',\n", - " '00110',\n", - " '01111',\n", - " '10101',\n", - " '01110',\n", - " '01000',\n", - " '00000',\n", - " '01000',\n", - " '10010',\n", - " '00000',\n", - " '01110',\n", - " '00000',\n", - " '00100',\n", - " '01110',\n", - " '00000',\n", - " '00100',\n", - " '00011',\n", - " '10001',\n", - " '01101',\n", - " '01000',\n", - " '10011',\n", - " '10001',\n", - " '01101',\n", - " '10111',\n", - " '00100',\n", - " '01000',\n", - " '00110',\n", - " '10001',\n", - " '01111',\n", - " '10010',\n", - " '10010',\n", - " '00111',\n", - " '00000',\n", - " '00011',\n", - " '00111',\n", - " '00011',\n", - " '10011',\n", - " '01110',\n", - " '01000',\n", - " '01111',\n", - " '00000',\n", - " '00000',\n", - " '10011',\n", - " '00100',\n", - " '10111',\n", - " '00100',\n", - " '01101',\n", - " '01101',\n", - " '00100',\n", - " '10010',\n", - " '00000',\n", - " '00110',\n", - " '10001',\n", - " '01110',\n", - " '00001',\n", - " '10011',\n", - " '01011',\n", - " '00100',\n", - " '10010',\n", - " '10001',\n", - " '01101',\n", - " '10001',\n", - " '01110',\n", - " '01000',\n", - " '10001',\n", - " '11000',\n", - " '01111',\n", - " '00001',\n", - " '00110',\n", - " '00100',\n", - " '00011',\n", - " '00010',\n", - " '01011',\n", - " '01011',\n", - " '01000',\n", - " '10110',\n", - " '00000',\n", - " '01011',\n", - " '00000',\n", - " '01011',\n", - " '00100',\n", - " '00100',\n", - " '01101',\n", - " '01000',\n", - " '00110',\n", - " '10001',\n", - " '10001',\n", - " '01101',\n", - " '10110',\n", - " '11000',\n", - " '10001',\n", - " '01011',\n", - " '01000',\n", - " '01100',\n", - " '01011',\n", - " '01111',\n", - " '10010',\n", - " '10011',\n", - " '01110',\n", - " '01011',\n", - " '00100',\n", - " '00101',\n", - " '10011',\n", - " '10001',\n", - " '00011',\n", - " '01100',\n", - " '10100',\n", - " '00000',\n", - " '10001',\n", - " '01000',\n", - " '00100',\n", - " '00100',\n", - " '00100',\n", - " '01000',\n", - " '01000',\n", - " '00000',\n", - " '01110',\n", - " '01011',\n", - " '01101',\n", - " '00100',\n", - " '10110',\n", - " '10010',\n", - " '00000',\n", - " '01110',\n", - " '00111',\n", - " '10001',\n", - " '10011',\n", - " '01011',\n", - " '10010',\n", - " '10011',\n", - " '01110',\n", - " '00001',\n", - " '00100',\n", - " '10011',\n", - " '01101',\n", - " '10010',\n", - " '01011',\n", - " '10101',\n", - " '00101',\n", - " '01000',\n", - " '10101',\n", - " '00011',\n", - " '01110',\n", - " '10101',\n", - " '10011',\n", - " '01111',\n", - " '01110',\n", - " '00000',\n", - " '00100',\n", - " '00100',\n", - " '01000',\n", - " '10010',\n", - " '00010',\n", - " '01000',\n", - " '01110',\n", - " '00111',\n", - " '01000',\n", - " '01111',\n", - " '10010',\n", - " '00100',\n", - " '10101',\n", - " '00100',\n", - " '00100',\n", - " '00011',\n", - " '10011',\n", - " '00100',\n", - " '10110',\n", - " '00101',\n", - " '00000',\n", - " '10001',\n", - " '01101',\n", - " '00111',\n", - " '00100',\n", - " '00001',\n", - " '01011',\n", - " '00100',\n", - " '00000',\n", - " '01110',\n", - " '10011',\n", - " '01110',\n", - " '00111',\n", - " '10011',\n", - " '10011',\n", - " '10011',\n", - " '00100',\n", - " '01111',\n", - " '01101',\n", - " '00010',\n", - " '01010',\n", - " '00000',\n", - " '01110',\n", - " '01101',\n", - " '00111',\n", - " '10110',\n", - " '00100',\n", - " '10011',\n", - " '01100',\n", - " '10101',\n", - " '11000',\n", - " '01111',\n", - " '10001',\n", - " '10001',\n", - " '00100',\n", - " '01110',\n", - " '01101',\n", - " '01101',\n", - " '00000',\n", - " '10010',\n", - " '00110',\n", - " '00011',\n", - " '00100',\n", - " '00011',\n", - " '01110',\n", - " '00100',\n", - " '00100',\n", - " '00100',\n", - " '01110',\n", - " '00000',\n", - " '00000',\n", - " '01100',\n", - " '10011',\n", - " '00010',\n", - " '01000',\n", - " '00010',\n", - " '10011',\n", - " '10011',\n", - " '01000',\n", - " '00101',\n", - " '01101',\n", - " '00000',\n", - " '00011',\n", - " '10001',\n", - " '00100',\n", - " '10010',\n", - " '10001',\n", - " '10011',\n", - " '10010',\n", - " '00100',\n", - " '10001',\n", - " '01110',\n", - " '10010',\n", - " '00100',\n", - " '10011',\n", - " '10001',\n", - " '00111',\n", - " '00010',\n", - " '01000',\n", - " '00010',\n", - " '10011',\n", - " '01111',\n", - " '10010',\n", - " '00000',\n", - " '00000',\n", - " '00100',\n", - " '00111',\n", - " '01011',\n", - " '00011',\n", - " '00111',\n", - " '10010',\n", - " '00101',\n", - " '10111',\n", - " '10010',\n", - " '01110',\n", - " '00000',\n", - " '01110',\n", - " '10011',\n", - " '00010',\n", - " '10011',\n", - " '00001',\n", - " '00001',\n", - " '10010',\n", - " '01110',\n", - " '00100',\n", - " '01000',\n", - " '10001',\n", - " '01101',\n", - " '10010',\n", - " '00000',\n", - " '00011',\n", - " '01011',\n", - " '11000',\n", - " '10011',\n", - " '10001',\n", - " '10001',\n", - " '10100',\n", - " '01101',\n", - " '10001',\n", - " '00010',\n", - " '00100',\n", - " '01111',\n", - " '10011',\n", - " '10011',\n", - " '00111',\n", - " '10001',\n", - " '00100',\n", - " '10100',\n", - " '00111',\n", - " '01101',\n", - " '01010',\n", - " '10011',\n", - " '00000',\n", - " '00010',\n", - " '00100',\n", - " '00010',\n", - " '00100',\n", - " '00100',\n", - " '01011',\n", - " '10001',\n", - " '10110',\n", - " '01101',\n", - " '01000',\n", - " '10001',\n", - " '00100',\n", - " '00100',\n", - " '00100',\n", - " '00000',\n", - " '00100',\n", - " '10010',\n", - " '00100',\n", - " '00100',\n", - " '00100',\n", - " '01000',\n", - " '00011',\n", - " '01000',\n", - " '10010',\n", - " '01110',\n", - " '00110',\n", - " '00010',\n", - " '00100',\n", - " '01110',\n", - " '01100',\n", - " '01101',\n", - " '10001',\n", - " '10011',\n", - " '00100',\n", - " '01001',\n", - " '00111',\n", - " '00000',\n", - " '00110',\n", - " '00000',\n", - " '00001',\n", - " '10010',\n", - " '00100',\n", - " '01101',\n", - " '01000',\n", - " '10011',\n", - " '01011',\n", - " '10110',\n", - " '10011',\n", - " '10001',\n", - " '01101',\n", - " '00001',\n", - " '01100',\n", - " '01000',\n", - " '00100',\n", - " '01011',\n", - " '10010',\n", - " '00000',\n", - " '10001',\n", - " '00100',\n", - " '10011',\n", - " '00100',\n", - " '10010',\n", - " '10001',\n", - " '01101',\n", - " '00110',\n", - " '10010',\n", - " '01101',\n", - " '00111',\n", - " '00100',\n", - " '00001',\n", - " '01000',\n", - " '01110',\n", - " '10010',\n", - " '00011',\n", - " '01000',\n", - " '00100',\n", - " '01101',\n", - " '00000',\n", - " '00101',\n", - " '01011',\n", - " '00100',\n", - " '01000',\n", - " '10010',\n", - " '00000',\n", - " '00111',\n", - " '01110',\n", - " '00010',\n", - " '01000',\n", - " '00101',\n", - " '00100',\n", - " '10101',\n", - " '01100',\n", - " '00101',\n", - " '00000',\n", - " '10011',\n", - " '00000',\n", - " '01101',\n", - " '00000',\n", - " '10011',\n", - " '10001',\n", - " '01101',\n", - " '01000',\n", - " '00000',\n", - " '00110',\n", - " '01101',\n", - " '00111',\n", - " '00000',\n", - " '10011',\n", - " '01101',\n", - " '01100',\n", - " '01000',\n", - " '00001',\n", - " '01101',\n", - " '01000',\n", - " '10100',\n", - " '00101',\n", - " '00100',\n", - " '01101',\n", - " '10001',\n", - " '10011',\n", - " '01110',\n", - " '10011',\n", - " '10011',\n", - " '10001',\n", - " '01101',\n", - " '11000',\n", - " '01111',\n", - " '00000',\n", - " '01000',\n", - " '00011',\n", - " '11000',\n", - " '01000',\n", - " '00100',\n", - " '00110',\n", - " '00011',\n", - " '01101',\n", - " '01100',\n", - " '00100',\n", - " '10001',\n", - " '00111',\n", - " '00111',\n", - " '01000',\n", - " '01110',\n", - " '10011',\n", - " '10001',\n", - " '00100',\n", - " '10011',\n", - " '00010',\n", - " '00100',\n", - " '10010',\n", - " '10010',\n", - " '00100',\n", - " '01000',\n", - " '01011',\n", - " '00011',\n", - " '10001',\n", - " '00001',\n", - " '00010',\n", - " '00100',\n", - " '01111',\n", - " '10001',\n", - " '01000',\n", - " '00110',\n", - " '00000',\n", - " '00100',\n", - " '10010',\n", - " '01110',\n", - " '00000',\n", - " '00011',\n", - " '01011',\n", - " '10011',\n", - " '00000',\n", - " '00111',\n", - " '01000',\n", - " '00100',\n", - " '10101',\n", - " '00100',\n", - " '00001',\n", - " '10001',\n", - " '00010',\n", - " '00100',\n", - " '01101',\n", - " '01011',\n", - " '00100',\n", - " '10101',\n", - " '00000',\n", - " '10010',\n", - " '00000',\n", - " '00011',\n", - " '01101',\n", - " '01101',\n", - " '10011',\n", - " '00111',\n", - " '01101',\n", - " '00100',\n", - " '01000',\n", - " '10011',\n", - " '00100',\n", - " '01000',\n", - " '01000',\n", - " '10010',\n", - " '00000',\n", - " '00111',\n", - " '10100',\n", - " '00111',\n", - " '00111',\n", - " '10100',\n", - " '00000',\n", - " '01100',\n", - " '01110',\n", - " '01101',\n", - " '00100',\n", - " '00101',\n", - " '11000',\n", - " '00111',\n", - " '01011',\n", - " '01110',\n", - " '01101',\n", - " '10110',\n", - " '00111',\n", - " '00000',\n", - " '00100',\n", - " '00100',\n", - " '00100',\n", - " '00100',\n", - " '01110',\n", - " '10010',\n", - " '01101',\n", - " '00100',\n", - " '00100',\n", - " '11000',\n", - " '00000',\n", - " '01101',\n", - " '00100',\n", - " '01000',\n", - " '10010',\n", - " '00100',\n", - " '10011',\n", - " '01110',\n", - " '00110',\n", - " '11000',\n", - " '01000',\n", - " '10011',\n", - " '00100',\n", - " '10001',\n", - " '01011',\n", - " '01000',\n", - " '00111',\n", - " '10011',\n", - " '00010',\n", - " '01100',\n", - " '01000',\n", - " '01110',\n", - " '01000',\n", - " '10001',\n", - " '00000',\n", - " '10001',\n", - " '00101',\n", - " '00011',\n", - " '01110',\n", - " '00100',\n", - " '10011',\n", - " '01101',\n", - " '01000',\n", - " '00111',\n", - " '10011',\n", - " '01101',\n", - " '00100',\n", - " '00111',\n", - " '01000',\n", - " '01000',\n", - " '01010',\n", - " '00000',\n", - " '01100',\n", - " '10001',\n", - " '00011',\n", - " '01100',\n", - " '01101',\n", - " '00000',\n", - " '00011',\n", - " '00000',\n", - " '01101',\n", - " '00000',\n", - " '01110',\n", - " '00011',\n", - " '10010',\n", - " '00100',\n", - " '10010',\n", - " '00100',\n", - " '01000',\n", - " '11000',\n", - " '00010',\n", - " '01011',\n", - " '10010',\n", - " '01000',\n", - " '00000',\n", - " '01101',\n", - " '10011',\n", - " '00000',\n", - " '01110',\n", - " '01011',\n", - " '10011',\n", - " '00010',\n", - " '01000',\n", - " '11000',\n", - " '01100',\n", - " '01000',\n", - " '00011',\n", - " '00100',\n", - " '01101',\n", - " '10011',\n", - " '10011',\n", - " '00111',\n", - " '01011',\n", - " '10011',\n", - " '01101',\n", - " '00011',\n", - " '10111',\n", - " '10011',\n", - " '10011',\n", - " '10011',\n", - " '01100',\n", - " '00000',\n", - " '10010',\n", - " '00001',\n", - " '01011',\n", - " '00100',\n", - " '00000',\n", - " '00100',\n", - " '00100',\n", - " '10011',\n", - " '01011',\n", - " '01000',\n", - " '10010',\n", - " '01000',\n", - " '10001',\n", - " '10011',\n", - " '10110',\n", - " '10011',\n", - " '10100',\n", - " '10001',\n", - " '01111',\n", - " '00101',\n", - " '00000',\n", - " '01000',\n", - " '01011',\n", - " '10011',\n", - " '00100',\n", - " '00000',\n", - " '01110',\n", - " '00100',\n", - " '00101',\n", - " '00100',\n", - " '01000',\n", - " '10010',\n", - " '01000',\n", - " '01000',\n", - " '01000',\n", - " '11000',\n", - " '01000',\n", - " '10010',\n", - " '01000',\n", - " '01010',\n", - " '10101',\n", - " '10011',\n", - " '10110',\n", - " '01000',\n", - " '10010',\n", - " '01111',\n", - " '10001',\n", - " '00001',\n", - " '10010',\n", - " '01000',\n", - " '01101',\n", - " '00100',\n", - " '01011',\n", - " '01111',\n", - " '00111',\n", - " '10001',\n", - " '01100',\n", - " '01110',\n", - " '00111',\n", - " '01000',\n", - " '00000',\n", - " '00110',\n", - " '01101',\n", - " '01011',\n", - " '10010',\n", - " '01011',\n", - " '10101',\n", - " '01000',\n", - " '10011',\n", - " '01110',\n", - " '00011',\n", - " '00000',\n", - " '01000',\n", - " '10010',\n", - " '00011',\n", - " '01111',\n", - " '01101',\n", - " '11000',\n", - " '00011',\n", - " '00011',\n", - " '00010',\n", - " '00000',\n", - " '00000',\n", - " '01110',\n", - " '10011',\n", - " '00000',\n", - " '00111',\n", - " '00010',\n", - " '00100',\n", - " '00111',\n", - " '10011',\n", - " '10100',\n", - " '00100',\n", - " '01000',\n", - " '10001',\n", - " '10001',\n", - " '00100',\n", - " '00011',\n", - " '00000',\n", - " '00100',\n", - " '00010',\n", - " '10011',\n", - " '01110',\n", - " '10010',\n", - " '01101',\n", - " '10001',\n", - " '00111',\n", - " '10101',\n", - " '01101',\n", - " '00000',\n", - " '01110',\n", - " '00011',\n", - " '01110',\n", - " '01000',\n", - " '01010',\n", - " '01110',\n", - " '00100',\n", - " '10011',\n", - " '00010',\n", - " '01000',\n", - " '01101',\n", - " '00100',\n", - " '01101',\n", - " '00100',\n", - " '10100',\n", - " '10001',\n", - " '10001',\n", - " '01000',\n", - " '10010',\n", - " '00011',\n", - " '00010',\n", - " '01110',\n", - " '10100',\n", - " '10001',\n", - " '00000',\n", - " '00110',\n", - " '01011',\n", - " '10101',\n", - " '01000',\n", - " '01100',\n", - " '01100',\n", - " '10100',\n", - " '01111',\n", - " '01111',\n", - " '00011',\n", - " '01000',\n", - " '10011',\n", - " '00100',\n", - " '00000',\n", - " '01101',\n", - " '00011',\n", - " '01000',\n", - " '10011',\n", - " '01100',\n", - " '00000',\n", - " '00000',\n", - " '01000',\n", - " '00000',\n", - " '01000',\n", - " '00100',\n", - " '01011',\n", - " '00100',\n", - " '01110',\n", - " '01101',\n", - " '01101',\n", - " '10001',\n", - " '00100',\n", - " '00100',\n", - " '00011',\n", - " '00000',\n", - " '01110',\n", - " '00011',\n", - " '00001',\n", - " '01110',\n", - " '01000',\n", - " '10100',\n", - " '01100',\n", - " '00100',\n", - " '01011',\n", - " '10001',\n", - " '01110',\n", - " '10011',\n", - " '01101',\n", - " '10011',\n", - " '10011',\n", - " '10011',\n", - " '00110',\n", - " '01000',\n", - " '10011',\n", - " '01101',\n", - " ...]" - ] - } - ], - "prompt_number": 8 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "[(int(c, 2)) for c in chunks(c8b, 5)]" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 9, - "text": [ - "[0,\n", - " 5,\n", - " 2,\n", - " 0,\n", - " 4,\n", - " 20,\n", - " 14,\n", - " 19,\n", - " 19,\n", - " 0,\n", - " 2,\n", - " 19,\n", - " 7,\n", - " 17,\n", - " 8,\n", - " 14,\n", - " 11,\n", - " 4,\n", - " 19,\n", - " 2,\n", - " 18,\n", - " 4,\n", - " 17,\n", - " 19,\n", - " 7,\n", - " 18,\n", - " 7,\n", - " 19,\n", - " 17,\n", - " 0,\n", - " 7,\n", - " 10,\n", - " 24,\n", - " 14,\n", - " 17,\n", - " 15,\n", - " 5,\n", - " 17,\n", - " 6,\n", - " 4,\n", - " 14,\n", - " 0,\n", - " 3,\n", - " 15,\n", - " 15,\n", - " 9,\n", - " 13,\n", - " 6,\n", - " 11,\n", - " 19,\n", - " 4,\n", - " 17,\n", - " 13,\n", - " 4,\n", - " 5,\n", - " 4,\n", - " 14,\n", - " 5,\n", - " 8,\n", - " 14,\n", - " 17,\n", - " 19,\n", - " 18,\n", - " 3,\n", - " 3,\n", - " 14,\n", - " 4,\n", - " 4,\n", - " 20,\n", - " 12,\n", - " 18,\n", - " 2,\n", - " 17,\n", - " 20,\n", - " 4,\n", - " 17,\n", - " 13,\n", - " 5,\n", - " 4,\n", - " 19,\n", - " 11,\n", - " 0,\n", - " 0,\n", - " 5,\n", - " 18,\n", - " 19,\n", - " 22,\n", - " 8,\n", - " 4,\n", - " 13,\n", - " 19,\n", - " 17,\n", - " 21,\n", - " 14,\n", - " 14,\n", - " 13,\n", - " 4,\n", - " 17,\n", - " 7,\n", - " 20,\n", - " 0,\n", - " 7,\n", - " 17,\n", - " 0,\n", - " 21,\n", - " 4,\n", - " 17,\n", - " 4,\n", - " 4,\n", - " 19,\n", - " 18,\n", - " 21,\n", - " 18,\n", - " 8,\n", - " 4,\n", - " 11,\n", - " 7,\n", - " 11,\n", - " 14,\n", - " 18,\n", - " 19,\n", - " 3,\n", - " 14,\n", - " 0,\n", - " 11,\n", - " 14,\n", - " 24,\n", - " 0,\n", - " 4,\n", - " 18,\n", - " 12,\n", - " 13,\n", - " 13,\n", - " 3,\n", - " 8,\n", - " 6,\n", - " 13,\n", - " 13,\n", - " 17,\n", - " 7,\n", - " 14,\n", - " 7,\n", - " 7,\n", - " 19,\n", - " 18,\n", - " 13,\n", - " 0,\n", - " 14,\n", - " 8,\n", - " 11,\n", - " 13,\n", - " 2,\n", - " 13,\n", - " 18,\n", - " 18,\n", - " 8,\n", - " 2,\n", - " 17,\n", - " 4,\n", - " 0,\n", - " 13,\n", - " 13,\n", - " 4,\n", - " 4,\n", - " 8,\n", - " 8,\n", - " 8,\n", - " 4,\n", - " 17,\n", - " 22,\n", - " 19,\n", - " 0,\n", - " 13,\n", - " 4,\n", - " 18,\n", - " 17,\n", - " 21,\n", - " 14,\n", - " 6,\n", - " 8,\n", - " 4,\n", - " 8,\n", - " 24,\n", - " 22,\n", - " 18,\n", - " 18,\n", - " 3,\n", - " 6,\n", - " 15,\n", - " 21,\n", - " 14,\n", - " 8,\n", - " 0,\n", - " 8,\n", - " 18,\n", - " 0,\n", - " 14,\n", - " 0,\n", - " 4,\n", - " 14,\n", - " 0,\n", - " 4,\n", - " 3,\n", - " 17,\n", - " 13,\n", - " 8,\n", - " 19,\n", - " 17,\n", - " 13,\n", - " 23,\n", - " 4,\n", - " 8,\n", - " 6,\n", - " 17,\n", - " 15,\n", - " 18,\n", - " 18,\n", - " 7,\n", - " 0,\n", - " 3,\n", - " 7,\n", - " 3,\n", - " 19,\n", - " 14,\n", - " 8,\n", - " 15,\n", - " 0,\n", - " 0,\n", - " 19,\n", - " 4,\n", - " 23,\n", - " 4,\n", - " 13,\n", - " 13,\n", - " 4,\n", - " 18,\n", - " 0,\n", - " 6,\n", - " 17,\n", - " 14,\n", - " 1,\n", - " 19,\n", - " 11,\n", - " 4,\n", - " 18,\n", - " 17,\n", - " 13,\n", - " 17,\n", - " 14,\n", - " 8,\n", - " 17,\n", - " 24,\n", - " 15,\n", - " 1,\n", - " 6,\n", - " 4,\n", - " 3,\n", - " 2,\n", - " 11,\n", - " 11,\n", - " 8,\n", - " 22,\n", - " 0,\n", - " 11,\n", - " 0,\n", - " 11,\n", - " 4,\n", - " 4,\n", - " 13,\n", - " 8,\n", - " 6,\n", - " 17,\n", - " 17,\n", - " 13,\n", - " 22,\n", - " 24,\n", - " 17,\n", - " 11,\n", - " 8,\n", - " 12,\n", - " 11,\n", - " 15,\n", - " 18,\n", - " 19,\n", - " 14,\n", - " 11,\n", - " 4,\n", - " 5,\n", - " 19,\n", - " 17,\n", - " 3,\n", - " 12,\n", - " 20,\n", - " 0,\n", - " 17,\n", - " 8,\n", - " 4,\n", - " 4,\n", - " 4,\n", - " 8,\n", - " 8,\n", - " 0,\n", - " 14,\n", - " 11,\n", - " 13,\n", - " 4,\n", - " 22,\n", - " 18,\n", - " 0,\n", - " 14,\n", - " 7,\n", - " 17,\n", - " 19,\n", - " 11,\n", - " 18,\n", - " 19,\n", - " 14,\n", - " 1,\n", - " 4,\n", - " 19,\n", - " 13,\n", - " 18,\n", - " 11,\n", - " 21,\n", - " 5,\n", - " 8,\n", - " 21,\n", - " 3,\n", - " 14,\n", - " 21,\n", - " 19,\n", - " 15,\n", - " 14,\n", - " 0,\n", - " 4,\n", - " 4,\n", - " 8,\n", - " 18,\n", - " 2,\n", - " 8,\n", - " 14,\n", - " 7,\n", - " 8,\n", - " 15,\n", - " 18,\n", - " 4,\n", - " 21,\n", - " 4,\n", - " 4,\n", - " 3,\n", - " 19,\n", - " 4,\n", - " 22,\n", - " 5,\n", - " 0,\n", - " 17,\n", - " 13,\n", - " 7,\n", - " 4,\n", - " 1,\n", - " 11,\n", - " 4,\n", - " 0,\n", - " 14,\n", - " 19,\n", - " 14,\n", - " 7,\n", - " 19,\n", - " 19,\n", - " 19,\n", - " 4,\n", - " 15,\n", - " 13,\n", - " 2,\n", - " 10,\n", - " 0,\n", - " 14,\n", - " 13,\n", - " 7,\n", - " 22,\n", - " 4,\n", - " 19,\n", - " 12,\n", - " 21,\n", - " 24,\n", - " 15,\n", - " 17,\n", - " 17,\n", - " 4,\n", - " 14,\n", - " 13,\n", - " 13,\n", - " 0,\n", - " 18,\n", - " 6,\n", - " 3,\n", - " 4,\n", - " 3,\n", - " 14,\n", - " 4,\n", - " 4,\n", - " 4,\n", - " 14,\n", - " 0,\n", - " 0,\n", - " 12,\n", - " 19,\n", - " 2,\n", - " 8,\n", - " 2,\n", - " 19,\n", - " 19,\n", - " 8,\n", - " 5,\n", - " 13,\n", - " 0,\n", - " 3,\n", - " 17,\n", - " 4,\n", - " 18,\n", - " 17,\n", - " 19,\n", - " 18,\n", - " 4,\n", - " 17,\n", - " 14,\n", - " 18,\n", - " 4,\n", - " 19,\n", - " 17,\n", - " 7,\n", - " 2,\n", - " 8,\n", - " 2,\n", - " 19,\n", - " 15,\n", - " 18,\n", - " 0,\n", - " 0,\n", - " 4,\n", - " 7,\n", - " 11,\n", - " 3,\n", - " 7,\n", - " 18,\n", - " 5,\n", - " 23,\n", - " 18,\n", - " 14,\n", - " 0,\n", - " 14,\n", - " 19,\n", - " 2,\n", - " 19,\n", - " 1,\n", - " 1,\n", - " 18,\n", - " 14,\n", - " 4,\n", - " 8,\n", - " 17,\n", - " 13,\n", - " 18,\n", - " 0,\n", - " 3,\n", - " 11,\n", - " 24,\n", - " 19,\n", - " 17,\n", - " 17,\n", - " 20,\n", - " 13,\n", - " 17,\n", - " 2,\n", - " 4,\n", - " 15,\n", - " 19,\n", - " 19,\n", - " 7,\n", - " 17,\n", - " 4,\n", - " 20,\n", - " 7,\n", - " 13,\n", - " 10,\n", - " 19,\n", - " 0,\n", - " 2,\n", - " 4,\n", - " 2,\n", - " 4,\n", - " 4,\n", - " 11,\n", - " 17,\n", - " 22,\n", - " 13,\n", - " 8,\n", - " 17,\n", - " 4,\n", - " 4,\n", - " 4,\n", - " 0,\n", - " 4,\n", - " 18,\n", - " 4,\n", - " 4,\n", - " 4,\n", - " 8,\n", - " 3,\n", - " 8,\n", - " 18,\n", - " 14,\n", - " 6,\n", - " 2,\n", - " 4,\n", - " 14,\n", - " 12,\n", - " 13,\n", - " 17,\n", - " 19,\n", - " 4,\n", - " 9,\n", - " 7,\n", - " 0,\n", - " 6,\n", - " 0,\n", - " 1,\n", - " 18,\n", - " 4,\n", - " 13,\n", - " 8,\n", - " 19,\n", - " 11,\n", - " 22,\n", - " 19,\n", - " 17,\n", - " 13,\n", - " 1,\n", - " 12,\n", - " 8,\n", - " 4,\n", - " 11,\n", - " 18,\n", - " 0,\n", - " 17,\n", - " 4,\n", - " 19,\n", - " 4,\n", - " 18,\n", - " 17,\n", - " 13,\n", - " 6,\n", - " 18,\n", - " 13,\n", - " 7,\n", - " 4,\n", - " 1,\n", - " 8,\n", - " 14,\n", - " 18,\n", - " 3,\n", - " 8,\n", - " 4,\n", - " 13,\n", - " 0,\n", - " 5,\n", - " 11,\n", - " 4,\n", - " 8,\n", - " 18,\n", - " 0,\n", - " 7,\n", - " 14,\n", - " 2,\n", - " 8,\n", - " 5,\n", - " 4,\n", - " 21,\n", - " 12,\n", - " 5,\n", - " 0,\n", - " 19,\n", - " 0,\n", - " 13,\n", - " 0,\n", - " 19,\n", - " 17,\n", - " 13,\n", - " 8,\n", - " 0,\n", - " 6,\n", - " 13,\n", - " 7,\n", - " 0,\n", - " 19,\n", - " 13,\n", - " 12,\n", - " 8,\n", - " 1,\n", - " 13,\n", - " 8,\n", - " 20,\n", - " 5,\n", - " 4,\n", - " 13,\n", - " 17,\n", - " 19,\n", - " 14,\n", - " 19,\n", - " 19,\n", - " 17,\n", - " 13,\n", - " 24,\n", - " 15,\n", - " 0,\n", - " 8,\n", - " 3,\n", - " 24,\n", - " 8,\n", - " 4,\n", - " 6,\n", - " 3,\n", - " 13,\n", - " 12,\n", - " 4,\n", - " 17,\n", - " 7,\n", - " 7,\n", - " 8,\n", - " 14,\n", - " 19,\n", - " 17,\n", - " 4,\n", - " 19,\n", - " 2,\n", - " 4,\n", - " 18,\n", - " 18,\n", - " 4,\n", - " 8,\n", - " 11,\n", - " 3,\n", - " 17,\n", - " 1,\n", - " 2,\n", - " 4,\n", - " 15,\n", - " 17,\n", - " 8,\n", - " 6,\n", - " 0,\n", - " 4,\n", - " 18,\n", - " 14,\n", - " 0,\n", - " 3,\n", - " 11,\n", - " 19,\n", - " 0,\n", - " 7,\n", - " 8,\n", - " 4,\n", - " 21,\n", - " 4,\n", - " 1,\n", - " 17,\n", - " 2,\n", - " 4,\n", - " 13,\n", - " 11,\n", - " 4,\n", - " 21,\n", - " 0,\n", - " 18,\n", - " 0,\n", - " 3,\n", - " 13,\n", - " 13,\n", - " 19,\n", - " 7,\n", - " 13,\n", - " 4,\n", - " 8,\n", - " 19,\n", - " 4,\n", - " 8,\n", - " 8,\n", - " 18,\n", - " 0,\n", - " 7,\n", - " 20,\n", - " 7,\n", - " 7,\n", - " 20,\n", - " 0,\n", - " 12,\n", - " 14,\n", - " 13,\n", - " 4,\n", - " 5,\n", - " 24,\n", - " 7,\n", - " 11,\n", - " 14,\n", - " 13,\n", - " 22,\n", - " 7,\n", - " 0,\n", - " 4,\n", - " 4,\n", - " 4,\n", - " 4,\n", - " 14,\n", - " 18,\n", - " 13,\n", - " 4,\n", - " 4,\n", - " 24,\n", - " 0,\n", - " 13,\n", - " 4,\n", - " 8,\n", - " 18,\n", - " 4,\n", - " 19,\n", - " 14,\n", - " 6,\n", - " 24,\n", - " 8,\n", - " 19,\n", - " 4,\n", - " 17,\n", - " 11,\n", - " 8,\n", - " 7,\n", - " 19,\n", - " 2,\n", - " 12,\n", - " 8,\n", - " 14,\n", - " 8,\n", - " 17,\n", - " 0,\n", - " 17,\n", - " 5,\n", - " 3,\n", - " 14,\n", - " 4,\n", - " 19,\n", - " 13,\n", - " 8,\n", - " 7,\n", - " 19,\n", - " 13,\n", - " 4,\n", - " 7,\n", - " 8,\n", - " 8,\n", - " 10,\n", - " 0,\n", - " 12,\n", - " 17,\n", - " 3,\n", - " 12,\n", - " 13,\n", - " 0,\n", - " 3,\n", - " 0,\n", - " 13,\n", - " 0,\n", - " 14,\n", - " 3,\n", - " 18,\n", - " 4,\n", - " 18,\n", - " 4,\n", - " 8,\n", - " 24,\n", - " 2,\n", - " 11,\n", - " 18,\n", - " 8,\n", - " 0,\n", - " 13,\n", - " 19,\n", - " 0,\n", - " 14,\n", - " 11,\n", - " 19,\n", - " 2,\n", - " 8,\n", - " 24,\n", - " 12,\n", - " 8,\n", - " 3,\n", - " 4,\n", - " 13,\n", - " 19,\n", - " 19,\n", - " 7,\n", - " 11,\n", - " 19,\n", - " 13,\n", - " 3,\n", - " 23,\n", - " 19,\n", - " 19,\n", - " 19,\n", - " 12,\n", - " 0,\n", - " 18,\n", - " 1,\n", - " 11,\n", - " 4,\n", - " 0,\n", - " 4,\n", - " 4,\n", - " 19,\n", - " 11,\n", - " 8,\n", - " 18,\n", - " 8,\n", - " 17,\n", - " 19,\n", - " 22,\n", - " 19,\n", - " 20,\n", - " 17,\n", - " 15,\n", - " 5,\n", - " 0,\n", - " 8,\n", - " 11,\n", - " 19,\n", - " 4,\n", - " 0,\n", - " 14,\n", - " 4,\n", - " 5,\n", - " 4,\n", - " 8,\n", - " 18,\n", - " 8,\n", - " 8,\n", - " 8,\n", - " 24,\n", - " 8,\n", - " 18,\n", - " 8,\n", - " 10,\n", - " 21,\n", - " 19,\n", - " 22,\n", - " 8,\n", - " 18,\n", - " 15,\n", - " 17,\n", - " 1,\n", - " 18,\n", - " 8,\n", - " 13,\n", - " 4,\n", - " 11,\n", - " 15,\n", - " 7,\n", - " 17,\n", - " 12,\n", - " 14,\n", - " 7,\n", - " 8,\n", - " 0,\n", - " 6,\n", - " 13,\n", - " 11,\n", - " 18,\n", - " 11,\n", - " 21,\n", - " 8,\n", - " 19,\n", - " 14,\n", - " 3,\n", - " 0,\n", - " 8,\n", - " 18,\n", - " 3,\n", - " 15,\n", - " 13,\n", - " 24,\n", - " 3,\n", - " 3,\n", - " 2,\n", - " 0,\n", - " 0,\n", - " 14,\n", - " 19,\n", - " 0,\n", - " 7,\n", - " 2,\n", - " 4,\n", - " 7,\n", - " 19,\n", - " 20,\n", - " 4,\n", - " 8,\n", - " 17,\n", - " 17,\n", - " 4,\n", - " 3,\n", - " 0,\n", - " 4,\n", - " 2,\n", - " 19,\n", - " 14,\n", - " 18,\n", - " 13,\n", - " 17,\n", - " 7,\n", - " 21,\n", - " 13,\n", - " 0,\n", - " 14,\n", - " 3,\n", - " 14,\n", - " 8,\n", - " 10,\n", - " 14,\n", - " 4,\n", - " 19,\n", - " 2,\n", - " 8,\n", - " 13,\n", - " 4,\n", - " 13,\n", - " 4,\n", - " 20,\n", - " 17,\n", - " 17,\n", - " 8,\n", - " 18,\n", - " 3,\n", - " 2,\n", - " 14,\n", - " 20,\n", - " 17,\n", - " 0,\n", - " 6,\n", - " 11,\n", - " 21,\n", - " 8,\n", - " 12,\n", - " 12,\n", - " 20,\n", - " 15,\n", - " 15,\n", - " 3,\n", - " 8,\n", - " 19,\n", - " 4,\n", - " 0,\n", - " 13,\n", - " 3,\n", - " 8,\n", - " 19,\n", - " 12,\n", - " 0,\n", - " 0,\n", - " 8,\n", - " 0,\n", - " 8,\n", - " 4,\n", - " 11,\n", - " 4,\n", - " 14,\n", - " 13,\n", - " 13,\n", - " 17,\n", - " 4,\n", - " 4,\n", - " 3,\n", - " 0,\n", - " 14,\n", - " 3,\n", - " 1,\n", - " 14,\n", - " 8,\n", - " 20,\n", - " 12,\n", - " 4,\n", - " 11,\n", - " 17,\n", - " 14,\n", - " 19,\n", - " 13,\n", - " 19,\n", - " 19,\n", - " 19,\n", - " 6,\n", - " 8,\n", - " 19,\n", - " 13,\n", - " ...]" - ] - } - ], - "prompt_number": 9 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "max([(int(c, 2)) for c in chunks(c8b, 5)])" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 10, - "text": [ - "24" - ] - } - ], - "prompt_number": 10 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "max([chr(int(c, 2) + ord('a')) for c in chunks(c8b, 5)])" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 11, - "text": [ - "'y'" - ] - } - ], - "prompt_number": 11 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "def cadenus_letter(n, doubled='v'):\n", - " letter = chr(n + ord('a'))\n", - " if letter > doubled:\n", - " letter = chr(n + ord('a') + 1)\n", - " return letter" - ], - "language": "python", - "metadata": {}, - "outputs": [], - "prompt_number": 12 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "c8bl = ''.join([cadenus_letter(int(c, 2), doubled='z') for c in chunks(c8b, 5)])\n", - "c8bl" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 13, - "text": [ - "'afcaeuottacthrioletcserthshtrahkyorpfrgeoadppjnglternefeofiortsddoeeumscruernfetlaafstwientrvoonerhuahravereetsvsielhlostdoaloyaesmnndignnrhohhtsnaoilncnssicreanneeiiierwtanesrvogieiywssdgpvoiaisaoaeoaedrnitrnxeigrpsshadhdtoipaatexennesagrobtlesrnroirypbgedclliwalaleenigrrnwyrlimlpstoleftrdmuarieeeiiaolnewsaohrtlstobetnslvfivdovtpoaeeisciohipseveedtewfarnhebleaotohtttepnckaonhwetmvyprreonnasgdedoeeeoaamtcicttifnadresrtserosetrhcictpsaaehldhsfxsoaotctbbsoeirnsadlytrrunrceptthreuhnktaceceelrwnireeeaeseeeidisogceomnrtejhagabsenitlwtrnbmielsaretesrngsnhebiosdienafleisahocifevmfatanatrniagnhatnmibniufenrtottrnypaidyiegdnmerhhiotretcesseildrbceprigaesoadltahievebrcenlevasadnnthneiteiisahuhhuamonefyhlonwhaeeeeosneeyaneisetogyiterlihtcmioirarfdoetnihtnehiikamrdmnadanaodseseiyclsiantaoltciymidentthltndxtttmasbleaeetlisirtwturpfailteaoefeisiiiyisikvtwisprbsinelphrmohiagnlslvitodaisdpnyddcaaotahcehtueirredaectosnrhvnaodoikoetcineneurrisdcouraglvimmuppditeanditmaaiaieleonnreedaodboiumelrotntttgitnrlrienniklysogstcifypipvidvssmnceiasiitsnneatitomrhbnhnidprlrepoynalsnvsdosanesitfaenltgodatteeaisicrootmsmfhauenirsghynweintegodiileedtarnosrcaaendtcuttfdrbehtmfitoordruiaoyaanoeeldoinhusgiteaoriecevemntratmtfpeucutahamtnewonicdeemrpaolitoafesoosspfnlneeootachllirssxsofpdftfrnpraeeaylonahautntcntcbawloneftoatecvowdlwvnneedtiioigtegmtaheeatefaaeprrcrosheerrpalediengidrreouhvesuroytnsosinuiuiofprda'" - ] - } - ], - "prompt_number": 13 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "min(c8bl), max(c8bl)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 14, - "text": [ - "('a', 'y')" - ] - } - ], - "prompt_number": 14 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "len(c8bl), len(c8bl) / 25" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 15, - "text": [ - "(1400, 56.0)" - ] - } - ], - "prompt_number": 15 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "freqs_8b = pd.Series(collections.Counter([l.lower() for l in c8bl if l in string.ascii_letters]))\n", - "freqs_8b.plot(kind='bar')" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 16, - "text": [ - "" - ] - }, - { - "metadata": {}, - "output_type": "display_data", - "png": "iVBORw0KGgoAAAANSUhEUgAAAXIAAAD+CAYAAAAnIY4eAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHLVJREFUeJztnX+0HGV5xz8XYkBJLjdXMRB+LSIYwkEuAhGPUlYKMbYK\ntFZ+tFautLaVCoRDWxPaQvCcImi1qahtFZMbFNCoFKGVEAh3FJGAVm4MxECIRBMqQQmYYBUTs/3j\nfffu7N79MfPuzM68c7+fc+bszsz7ned9Zmefmf3O7AwIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBC\nJMpSYBuwLjRtLvAw8AjwXeDk0LxFwEZgAzCvR30UQgjRhlOBE6gv5AHwNvv+7cCofT8HGANeBpSA\nJ4G9etFJIYSYzHQqtPcDzzdM+ymwv30/ADxt358N3ArsAjZjCvncRHophBCiJVMcNAuBbwP/jNkR\nvMlOnwWsCbXbChzcVe+EEEJ0xMX6+DxwKXAYcDnGR29FxaVTQgghouNyRD4XOMO+/ypwo33/NHBo\nqN0h1GyXcY488sjKpk2bHMIKIcSkZi0w1GyGyxH5k8Bp9v3pwBP2/R3A+cBU4AjgKMzVLXVs2rSJ\nSqXSdLj66qtbzms3SCeddJND50Mf09IBx7cqyp2OyG+1RftVwBbgKuAvgE8D+wC/suMA64EV9nU3\ncDExrZXNmzfHaS6ddNJNMp0Pfc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Hs2QL5mfF7Zg94PO0vyK+ulFPwRwtbcH4ZYcRbWV/HHgQs/fr\nA96N+ZA7cRPG177N6s7BHM104gbML4xXYz6cPwL+oU37T9rh3zEWSVxuxuw8brf9fCdwC2Yja7aD\nrK7PvYH3YXYYL9lpUbzgXtFYzAYxG/9DpNvPCzE7jimY/0NUua2D7lTc1ucyTE7h7ayd9VflJJp/\nH9Z1iPu2CMtuxtOYndWZmGK+L+2L1i0YG+c6aketYCyu5zrECn/2e2G+S3H88WeBZ2ycAyK0X435\nvjyIOZo/yS6jE7uBX2F2vvtido572ipq7LF93IbZsc4AvgrcC/xtlAXk6TC+jPHdVgK/adGm1EZf\nAX4cIc6xmJ9PFeA+ov0CAOPfVk9CfYv2RyBhjgF+175fTXuLIwlOxnjRFcyX+3tt2pY6LGtzMl3q\nmlKH+ZtTivs4xsaJ+4/lUovpmyNoT6T+pGWU7axVvDhx47Af5gjyB5i7nB6EOXexKuE4UJ/bbkyx\n2xVBdzHGy3818BXgy0T7rv8Lpnj/GvgOxsZ5EFOk27EWuAOzk3kV8B+Ynfi7O+guA96L2dHciDnw\n24XZaW0k5pG5EGIiyzA7fuEfH6G7f0FOBy7BHBy+1KEtmAOoRt4bQXcNcHiLec1OoDYlT0fkQuSN\nDZgjorxaTiJ5LsH88j4R87nfb4f7suxUJ7L2yIXIM/M7NxEFY1/MubTvE83CEUIIIYQQQgghhBBC\nCCGEEEIIIYQQYpLy/29rz2xVUOLbAAAAAElFTkSuQmCC\n", - "text": [ - "" - ] - } - ], - "prompt_number": 16 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "freqs = pd.Series(english_counts)\n", - "freqs.plot(kind='bar')" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 17, - "text": [ - "" - ] - }, - { - "metadata": {}, - "output_type": "display_data", - "png": "iVBORw0KGgoAAAANSUhEUgAAAYYAAAD+CAYAAAA+hqL9AAAABHNCSVQICAgIfAhkiAA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7wHuxx4S/qCOzeeAOZiz\negB7WDyGOb2dVJ85/JE7dompwH8A/m2DPgkhhsBy7OFAhMGfk/0bwJ3AZ7EHyaMNyk6rkjengc1i\n4Pwa+6qJ2cNCyDMGIZrFduxJzZdQmsifz2IzrKnYdfCsWza2slHDRWgagxB5MKNxERE4p2F64/dp\nHKoSQgghhBBCCCGEEEIIIYQQQgghhBBCiBHO/wdc3dBPs9bnrQAAAABJRU5ErkJggg==\n", - "text": [ - "" - ] - } - ], - "prompt_number": 17 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "rows = chunks(c8bl, len(c8bl) // 25)\n", - "rows" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 18, - "text": [ - "['afcaeuottacthrioletcserthshtrahkyorpfrgeoadppjnglternefe',\n", - " 'ofiortsddoeeumscruernfetlaafstwientrvoonerhuahravereetsv',\n", - " 'sielhlostdoaloyaesmnndignnrhohhtsnaoilncnssicreanneeiiie',\n", - " 'rwtanesrvogieiywssdgpvoiaisaoaeoaedrnitrnxeigrpsshadhdto',\n", - " 'ipaatexennesagrobtlesrnroirypbgedclliwalaleenigrrnwyrlim',\n", - " 'lpstoleftrdmuarieeeiiaolnewsaohrtlstobetnslvfivdovtpoaee',\n", - " 'isciohipseveedtewfarnhebleaotohtttepnckaonhwetmvyprreonn',\n", - " 'asgdedoeeeoaamtcicttifnadresrtserosetrhcictpsaaehldhsfxs',\n", - " 'oaotctbbsoeirnsadlytrrunrceptthreuhnktaceceelrwnireeeaes',\n", - " 'eeeidisogceomnrtejhagabsenitlwtrnbmielsaretesrngsnhebios',\n", - " 'dienafleisahocifevmfatanatrniagnhatnmibniufenrtottrnypai',\n", - " 'dyiegdnmerhhiotretcesseildrbceprigaesoadltahievebrcenlev',\n", - " 'asadnnthneiteiisahuhhuamonefyhlonwhaeeeeosneeyaneisetogy',\n", - " 'iterlihtcmioirarfdoetnihtnehiikamrdmnadanaodseseiyclsian',\n", - " 'taoltciymidentthltndxtttmasbleaeetlisirtwturpfailteaoefe',\n", - " 'isiiiyisikvtwisprbsinelphrmohiagnlslvitodaisdpnyddcaaota',\n", - " 'hcehtueirredaectosnrhvnaodoikoetcineneurrisdcouraglvimmu',\n", - " 'ppditeanditmaaiaieleonnreedaodboiumelrotntttgitnrlrienni',\n", - " 'klysogstcifypipvidvssmnceiasiitsnneatitomrhbnhnidprlrepo',\n", - " 'ynalsnvsdosanesitfaenltgodatteeaisicrootmsmfhauenirsghyn',\n", - " 'weintegodiileedtarnosrcaaendtcuttfdrbehtmfitoordruiaoyaa',\n", - " 'noeeldoinhusgiteaoriecevemntratmtfpeucutahamtnewonicdeem',\n", - " 'rpaolitoafesoosspfnlneeootachllirssxsofpdftfrnpraeeaylon',\n", - " 'ahautntcntcbawloneftoatecvowdlwvnneedtiioigtegmtaheeatef',\n", - " 'aaeprrcrosheerrpalediengidrreouhvesuroytnsosinuiuiofprda']" - ] - } - ], - "prompt_number": 18 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "chunks(''.join([l if l in 'phase' else '.' for l in c8bl]), 56)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 19, - "text": [ - "['a..ae....a..h....e..se..hsh..ah....p...e.a.pp.....e..e.e',\n", - " '......s...ee..s...e...e..aa.s...e.......e.h.ah.a.e.ee.s.',\n", - " 's.e.h..s...a...aes.........h.hh.s.a......ss...ea..ee...e',\n", - " '...a.es.....e...ss..p...a.sa.ae.ae........e...pssha.h...',\n", - " '.paa.e.e..esa......es.......p..e......a.a.ee............',\n", - " '.ps...e......a..eee..a...e.sa.h...s...e..s.........p.aee',\n", - " '.s...h.pse.ee..e..a..he..ea...h...ep...a..h.e....p..e...',\n", - " 'as..e..eee.aa..........a..es..se..se..h....psaaeh..hs..s',\n", - " '.a......s.e...sa..........ep..h.e.h...a.e.ee......eeeaes',\n", - " 'eee...s...e.....e.ha.a.se...........e.sa.e.es...s.he...s',\n", - " '..e.a..e.sah....e...a.a.a....a..ha.........e.........pa.',\n", - " '...e....e.hh....e..esse......ep...aes.a...ah.e.e...e..e.',\n", - " 'asa....h.e..e..sah.hh.a...e..h....haeeee.s.ee.a.e.se....',\n", - " '..e...h.......a....e...h..eh...a.....a.a.a..sese....s.a.',\n", - " '.a.........e...h.........as..eaee...s.......p.a...ea.e.e',\n", - " '.s.....s......sp..s..e.ph...h.a...s......a.s.p.....aa..a',\n", - " 'h.eh..e...e.ae...s..h..a......e....e.e....s.....a.......',\n", - " 'pp...ea.....aa.a.e.e....ee.a.......e................e...',\n", - " '...s..s.....p.p....ss...e.as...s..ea......h..h...p...ep.',\n", - " '..a.s..s..sa.es...ae......a..eea.s.......s..ha.e...s.h..',\n", - " '.e...e......ee..a...s..aae...........eh............a..aa',\n", - " '..ee.....h.s...ea...e.e.e....a....pe....aha...e......ee.',\n", - " '.pa.....a.es..ssp....ee...a.h....ss.s..p......p.aeea....',\n", - " 'aha.........a....e...a.e..........ee........e...aheea.e.',\n", - " 'aaep.....shee..pa.e..e......e..h.es......s.s........p..a']" - ] - } - ], - "prompt_number": 19 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "columns = [''.join(c) for c in zip(*rows)]\n", - "columns" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 20, - "text": [ - "['aosriliaoeddaitihpkywnraa',\n", - " 'ffiwppssaeiystascplneopha',\n", - " 'cietascgoeeiaeoiedyaieaae',\n", - " 'aolaatidtinedrlihislneoup',\n", - " 'erhntooecdagnltittostlltr',\n", - " 'utleelhdtifdnicyuegnedinr',\n", - " 'ososxeiobslnthiieasvgottc',\n", - " 'tdsrefpeboemhtysintsoiocr',\n", - " 'tdtvntsesgiencmirdcddnano',\n", - " 'aodonreeocsremikriioihfts',\n", - " 'ceogedvoeeahiidvetfsiuech',\n", - " 'teaismeaiohhtoetdmyalssbe',\n", - " 'huleauearmoieinwaapnegoae',\n", - " 'rmoigadmnncoirtieaieeiowr',\n", - " 'isyyrrttsritiatscipsdtslr',\n", - " 'ocawoiecatfrsrhptavitesop',\n", - " 'lresbewideeeaflroiitaapna',\n", - " 'eusstefcljvthdtbsedfrofel',\n", - " 'temdleatyhmcuonsnlvanrnfe',\n", - " 'crngeirttafehedireseoiltd',\n", - " 'snnpsinirgashtxnhosnsenoi',\n", - " 'efdvrahfratsuntevnmlrceae',\n", - " 'reionoenubaeaitlnnntceetn',\n", - " 'ttgirlbansnimhtparcgavoeg',\n", - " 'hlnaonldrealotmhoeeoaeoci',\n", - " 'saniieercntdnnardeidemtvd',\n", - " 'harsrwaeeirreesmodaannaor',\n", - " 'tfhaysosptnbfhboiastdtcwr',\n", - " 'rsoopatrtlicyilhkoittrhde',\n", - " 'athaboottwaehieiodiecallo',\n", - " 'hwheghhshtgplkaaebteutlwu',\n", - " 'kitoerterrnroaegtosatmivh',\n", - " 'yesadttrenhinmencinittrnv',\n", - " 'onnecltoubagwrtliunsffsne',\n", - " 'rtadlseshmtahdlsnmeidpses',\n", - " 'prorltpenineamileeacrexeu',\n", - " 'fviniontkemsensvnltrbusdr',\n", - " 'roliwbcrtlioeaiierioecoto',\n", - " 'gontaekhasbaedrtuotohufiy',\n", - " 'encrltaccandeatortotttpit',\n", - " 'oennanoierilonwdrnmmmadon',\n", - " 'arsxlsncceutsataitrsfhfis',\n", - " 'dhseelhtetfanouisthmiatgo',\n", - " 'puiievwpeeehedrsdtbftmfts',\n", - " 'pacgnfeslsniespdcgnhotrei',\n", - " 'jhrriitarrreyefpoihaonngn',\n", - " 'nrepgvmawntvasanutnurepmu',\n", - " 'gaasrdvengoeneiyrniedwrti',\n", - " 'lvnsroyhistbeildardnroaau',\n", - " 'tenhnvplrntriytdglpiunehi',\n", - " 'ereawtrdehrcsceclrrriieeo',\n", - " 'reedyprheeneelaavilsacaef',\n", - " 'neihroesebyntsoaiergodyap',\n", - " 'etidlaofaiploieomnehyeltr',\n", - " 'fsitienxeoaegaftmnpyaeoed',\n", - " 'eveomensssivyneauionamnfa']" - ] - } - ], - "prompt_number": 20 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "letter_positions = {letter: [(r, c) for r, row in enumerate(rows) for c, char in enumerate(row) if char == letter] \n", - " for letter in deduplicate('phaseseven')}\n", - "letter_positions" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 21, - "text": [ - "{'a': [(0, 0),\n", - " (0, 3),\n", - " (0, 9),\n", - " (0, 29),\n", - " (0, 41),\n", - " (1, 25),\n", - " (1, 26),\n", - " (1, 44),\n", - " (1, 47),\n", - " (2, 11),\n", - " (2, 15),\n", - " (2, 34),\n", - " (2, 47),\n", - " (3, 3),\n", - " (3, 24),\n", - " (3, 27),\n", - " (3, 29),\n", - " (3, 32),\n", - " (3, 50),\n", - " (4, 2),\n", - " (4, 3),\n", - " (4, 12),\n", - " (4, 38),\n", - " (4, 40),\n", - " (5, 13),\n", - " (5, 21),\n", - " (5, 28),\n", - " (5, 53),\n", - " (6, 18),\n", - " (6, 26),\n", - " (6, 39),\n", - " (7, 0),\n", - " (7, 11),\n", - " (7, 12),\n", - " (7, 23),\n", - " (7, 45),\n", - " (7, 46),\n", - " (8, 1),\n", - " (8, 15),\n", - " (8, 38),\n", - " (8, 53),\n", - " (9, 19),\n", - " (9, 21),\n", - " (9, 39),\n", - " (10, 4),\n", - " (10, 10),\n", - " (10, 20),\n", - " (10, 22),\n", - " (10, 24),\n", - " (10, 29),\n", - " (10, 33),\n", - " (10, 54),\n", - " (11, 34),\n", - " (11, 38),\n", - " (11, 42),\n", - " (12, 0),\n", - " (12, 2),\n", - " (12, 16),\n", - " (12, 22),\n", - " (12, 35),\n", - " (12, 46),\n", - " (13, 14),\n", - " (13, 31),\n", - " (13, 37),\n", - " (13, 39),\n", - " (13, 41),\n", - " (13, 54),\n", - " (14, 1),\n", - " (14, 25),\n", - " (14, 30),\n", - " (14, 46),\n", - " (14, 51),\n", - " (15, 30),\n", - " (15, 41),\n", - " (15, 51),\n", - " (15, 52),\n", - " (15, 55),\n", - " (16, 12),\n", - " (16, 23),\n", - " (16, 48),\n", - " (17, 6),\n", - " (17, 12),\n", - " (17, 13),\n", - " (17, 15),\n", - " (17, 27),\n", - " (18, 26),\n", - " (18, 35),\n", - " (19, 2),\n", - " (19, 11),\n", - " (19, 18),\n", - " (19, 26),\n", - " (19, 31),\n", - " (19, 45),\n", - " (20, 16),\n", - " (20, 23),\n", - " (20, 24),\n", - " (20, 51),\n", - " (20, 54),\n", - " (20, 55),\n", - " (21, 16),\n", - " (21, 29),\n", - " (21, 40),\n", - " (21, 42),\n", - " (22, 2),\n", - " (22, 8),\n", - " (22, 26),\n", - " (22, 48),\n", - " (22, 51),\n", - " (23, 0),\n", - " (23, 2),\n", - " (23, 12),\n", - " (23, 21),\n", - " (23, 48),\n", - " (23, 52),\n", - " (24, 0),\n", - " (24, 1),\n", - " (24, 16),\n", - " (24, 55)],\n", - " 'n': [(0, 46),\n", - " (0, 52),\n", - " (1, 20),\n", - " (1, 33),\n", - " (1, 39),\n", - " (2, 19),\n", - " (2, 20),\n", - " (2, 24),\n", - " (2, 25),\n", - " (2, 33),\n", - " (2, 38),\n", - " (2, 40),\n", - " (2, 48),\n", - " (2, 49),\n", - " (3, 4),\n", - " (3, 36),\n", - " (3, 40),\n", - " (4, 8),\n", - " (4, 9),\n", - " (4, 22),\n", - " (4, 44),\n", - " (4, 49),\n", - " (5, 24),\n", - " (5, 40),\n", - " (6, 20),\n", - " (6, 36),\n", - " (6, 41),\n", - " (6, 54),\n", - " (6, 55),\n", - " (7, 22),\n", - " (8, 13),\n", - " (8, 23),\n", - " (8, 35),\n", - " (8, 47),\n", - " (9, 13),\n", - " (9, 25),\n", - " (9, 32),\n", - " (9, 46),\n", - " (9, 49),\n", - " (10, 3),\n", - " (10, 23),\n", - " (10, 27),\n", - " (10, 31),\n", - " (10, 35),\n", - " (10, 39),\n", - " (10, 44),\n", - " (10, 51),\n", - " (11, 6),\n", - " (11, 52),\n", - " (12, 4),\n", - " (12, 5),\n", - " (12, 8),\n", - " (12, 25),\n", - " (12, 32),\n", - " (12, 42),\n", - " (12, 47),\n", - " (13, 21),\n", - " (13, 25),\n", - " (13, 36),\n", - " (13, 40),\n", - " (13, 55),\n", - " (14, 12),\n", - " (14, 18),\n", - " (15, 20),\n", - " (15, 32),\n", - " (15, 46),\n", - " (16, 18),\n", - " (16, 22),\n", - " (16, 34),\n", - " (16, 36),\n", - " (17, 7),\n", - " (17, 21),\n", - " (17, 22),\n", - " (17, 40),\n", - " (17, 47),\n", - " (17, 53),\n", - " (17, 54),\n", - " (18, 22),\n", - " (18, 32),\n", - " (18, 33),\n", - " (18, 44),\n", - " (18, 46),\n", - " (19, 1),\n", - " (19, 5),\n", - " (19, 12),\n", - " (19, 20),\n", - " (19, 48),\n", - " (19, 55),\n", - " (20, 3),\n", - " (20, 18),\n", - " (20, 26),\n", - " (21, 0),\n", - " (21, 8),\n", - " (21, 26),\n", - " (21, 45),\n", - " (21, 49),\n", - " (22, 18),\n", - " (22, 20),\n", - " (22, 45),\n", - " (22, 55),\n", - " (23, 5),\n", - " (23, 8),\n", - " (23, 16),\n", - " (23, 32),\n", - " (23, 33),\n", - " (24, 22),\n", - " (24, 40),\n", - " (24, 45)],\n", - " 's': [(0, 20),\n", - " (0, 25),\n", - " (1, 6),\n", - " (1, 14),\n", - " (1, 28),\n", - " (1, 54),\n", - " (2, 0),\n", - " (2, 7),\n", - " (2, 17),\n", - " (2, 32),\n", - " (2, 41),\n", - " (2, 42),\n", - " (3, 6),\n", - " (3, 16),\n", - " (3, 17),\n", - " (3, 26),\n", - " (3, 47),\n", - " (3, 48),\n", - " (4, 11),\n", - " (4, 20),\n", - " (5, 2),\n", - " (5, 27),\n", - " (5, 34),\n", - " (5, 41),\n", - " (6, 1),\n", - " (6, 8),\n", - " (7, 1),\n", - " (7, 27),\n", - " (7, 30),\n", - " (7, 34),\n", - " (7, 44),\n", - " (7, 52),\n", - " (7, 55),\n", - " (8, 8),\n", - " (8, 14),\n", - " (8, 55),\n", - " (9, 6),\n", - " (9, 23),\n", - " (9, 38),\n", - " (9, 44),\n", - " (9, 48),\n", - " (9, 55),\n", - " (10, 9),\n", - " (11, 20),\n", - " (11, 21),\n", - " (11, 36),\n", - " (12, 1),\n", - " (12, 15),\n", - " (12, 41),\n", - " (12, 50),\n", - " (13, 44),\n", - " (13, 46),\n", - " (13, 52),\n", - " (14, 26),\n", - " (14, 36),\n", - " (15, 1),\n", - " (15, 7),\n", - " (15, 14),\n", - " (15, 18),\n", - " (15, 34),\n", - " (15, 43),\n", - " (16, 17),\n", - " (16, 42),\n", - " (18, 3),\n", - " (18, 6),\n", - " (18, 19),\n", - " (18, 20),\n", - " (18, 27),\n", - " (18, 31),\n", - " (19, 4),\n", - " (19, 7),\n", - " (19, 10),\n", - " (19, 14),\n", - " (19, 33),\n", - " (19, 41),\n", - " (19, 51),\n", - " (20, 20),\n", - " (21, 11),\n", - " (22, 11),\n", - " (22, 14),\n", - " (22, 15),\n", - " (22, 33),\n", - " (22, 34),\n", - " (22, 36),\n", - " (24, 9),\n", - " (24, 34),\n", - " (24, 41),\n", - " (24, 43)],\n", - " 'p': [(0, 35),\n", - " (0, 43),\n", - " (0, 44),\n", - " (3, 20),\n", - " (3, 46),\n", - " (4, 1),\n", - " (4, 28),\n", - " (5, 1),\n", - " (5, 51),\n", - " (6, 7),\n", - " (6, 35),\n", - " (6, 49),\n", - " (7, 43),\n", - " (8, 27),\n", - " (10, 53),\n", - " (11, 30),\n", - " (14, 44),\n", - " (15, 15),\n", - " (15, 23),\n", - " (15, 45),\n", - " (17, 0),\n", - " (17, 1),\n", - " (18, 12),\n", - " (18, 14),\n", - " (18, 49),\n", - " (18, 54),\n", - " (21, 34),\n", - " (22, 1),\n", - " (22, 16),\n", - " (22, 39),\n", - " (22, 46),\n", - " (24, 3),\n", - " (24, 15),\n", - " (24, 52)],\n", - " 'v': [(1, 36),\n", - " (1, 48),\n", - " (1, 55),\n", - " (3, 8),\n", - " (3, 21),\n", - " (5, 43),\n", - " (5, 46),\n", - " (5, 49),\n", - " (6, 10),\n", - " (6, 47),\n", - " (10, 17),\n", - " (11, 46),\n", - " (11, 55),\n", - " (15, 10),\n", - " (15, 36),\n", - " (16, 21),\n", - " (16, 51),\n", - " (18, 15),\n", - " (18, 18),\n", - " (19, 6),\n", - " (21, 23),\n", - " (23, 25),\n", - " (23, 31),\n", - " (24, 32)],\n", - " 'h': [(0, 12),\n", - " (0, 24),\n", - " (0, 26),\n", - " (0, 30),\n", - " (1, 42),\n", - " (1, 45),\n", - " (2, 4),\n", - " (2, 27),\n", - " (2, 29),\n", - " (2, 30),\n", - " (3, 49),\n", - " (3, 52),\n", - " (5, 30),\n", - " (6, 5),\n", - " (6, 21),\n", - " (6, 30),\n", - " (6, 42),\n", - " (7, 38),\n", - " (7, 48),\n", - " (7, 51),\n", - " (8, 30),\n", - " (8, 34),\n", - " (9, 18),\n", - " (9, 50),\n", - " (10, 11),\n", - " (10, 32),\n", - " (11, 10),\n", - " (11, 11),\n", - " (11, 43),\n", - " (12, 7),\n", - " (12, 17),\n", - " (12, 19),\n", - " (12, 20),\n", - " (12, 29),\n", - " (12, 34),\n", - " (13, 6),\n", - " (13, 23),\n", - " (13, 27),\n", - " (14, 15),\n", - " (15, 24),\n", - " (15, 28),\n", - " (16, 0),\n", - " (16, 3),\n", - " (16, 20),\n", - " (18, 42),\n", - " (18, 45),\n", - " (19, 44),\n", - " (19, 53),\n", - " (20, 38),\n", - " (21, 9),\n", - " (21, 41),\n", - " (22, 28),\n", - " (23, 1),\n", - " (23, 49),\n", - " (24, 10),\n", - " (24, 31)],\n", - " 'e': [(0, 4),\n", - " (0, 17),\n", - " (0, 21),\n", - " (0, 39),\n", - " (0, 50),\n", - " (0, 53),\n", - " (0, 55),\n", - " (1, 10),\n", - " (1, 11),\n", - " (1, 18),\n", - " (1, 22),\n", - " (1, 32),\n", - " (1, 40),\n", - " (1, 49),\n", - " (1, 51),\n", - " (1, 52),\n", - " (2, 2),\n", - " (2, 16),\n", - " (2, 46),\n", - " (2, 50),\n", - " (2, 51),\n", - " (2, 55),\n", - " (3, 5),\n", - " (3, 12),\n", - " (3, 30),\n", - " (3, 33),\n", - " (3, 42),\n", - " (4, 5),\n", - " (4, 7),\n", - " (4, 10),\n", - " (4, 19),\n", - " (4, 31),\n", - " (4, 42),\n", - " (4, 43),\n", - " (5, 6),\n", - " (5, 16),\n", - " (5, 17),\n", - " (5, 18),\n", - " (5, 25),\n", - " (5, 38),\n", - " (5, 54),\n", - " (5, 55),\n", - " (6, 9),\n", - " (6, 11),\n", - " (6, 12),\n", - " (6, 15),\n", - " (6, 22),\n", - " (6, 25),\n", - " (6, 34),\n", - " (6, 44),\n", - " (6, 52),\n", - " (7, 4),\n", - " (7, 7),\n", - " (7, 8),\n", - " (7, 9),\n", - " (7, 26),\n", - " (7, 31),\n", - " (7, 35),\n", - " (7, 47),\n", - " (8, 10),\n", - " (8, 26),\n", - " (8, 32),\n", - " (8, 40),\n", - " (8, 42),\n", - " (8, 43),\n", - " (8, 50),\n", - " (8, 51),\n", - " (8, 52),\n", - " (8, 54),\n", - " (9, 0),\n", - " (9, 1),\n", - " (9, 2),\n", - " (9, 10),\n", - " (9, 16),\n", - " (9, 24),\n", - " (9, 36),\n", - " (9, 41),\n", - " (9, 43),\n", - " (9, 51),\n", - " (10, 2),\n", - " (10, 7),\n", - " (10, 16),\n", - " (10, 43),\n", - " (11, 3),\n", - " (11, 8),\n", - " (11, 16),\n", - " (11, 19),\n", - " (11, 22),\n", - " (11, 29),\n", - " (11, 35),\n", - " (11, 45),\n", - " (11, 47),\n", - " (11, 51),\n", - " (11, 54),\n", - " (12, 9),\n", - " (12, 12),\n", - " (12, 26),\n", - " (12, 36),\n", - " (12, 37),\n", - " (12, 38),\n", - " (12, 39),\n", - " (12, 43),\n", - " (12, 44),\n", - " (12, 48),\n", - " (12, 51),\n", - " (13, 2),\n", - " (13, 19),\n", - " (13, 26),\n", - " (13, 45),\n", - " (13, 47),\n", - " (14, 11),\n", - " (14, 29),\n", - " (14, 31),\n", - " (14, 32),\n", - " (14, 50),\n", - " (14, 53),\n", - " (14, 55),\n", - " (15, 21),\n", - " (16, 2),\n", - " (16, 6),\n", - " (16, 10),\n", - " (16, 13),\n", - " (16, 30),\n", - " (16, 35),\n", - " (16, 37),\n", - " (17, 5),\n", - " (17, 17),\n", - " (17, 19),\n", - " (17, 24),\n", - " (17, 25),\n", - " (17, 35),\n", - " (17, 52),\n", - " (18, 24),\n", - " (18, 34),\n", - " (18, 53),\n", - " (19, 13),\n", - " (19, 19),\n", - " (19, 29),\n", - " (19, 30),\n", - " (19, 47),\n", - " (20, 1),\n", - " (20, 5),\n", - " (20, 12),\n", - " (20, 13),\n", - " (20, 25),\n", - " (20, 37),\n", - " (21, 2),\n", - " (21, 3),\n", - " (21, 15),\n", - " (21, 20),\n", - " (21, 22),\n", - " (21, 24),\n", - " (21, 35),\n", - " (21, 46),\n", - " (21, 53),\n", - " (21, 54),\n", - " (22, 10),\n", - " (22, 21),\n", - " (22, 22),\n", - " (22, 49),\n", - " (22, 50),\n", - " (23, 17),\n", - " (23, 23),\n", - " (23, 34),\n", - " (23, 35),\n", - " (23, 44),\n", - " (23, 50),\n", - " (23, 51),\n", - " (23, 54),\n", - " (24, 2),\n", - " (24, 11),\n", - " (24, 12),\n", - " (24, 18),\n", - " (24, 21),\n", - " (24, 28),\n", - " (24, 33)]}" - ] - } - ], - "prompt_number": 21 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "keycolumn = make_cadenus_keycolumn(reverse=True)\n", - "inverse_keycolumn = {v: l for l, v in keycolumn.items()}\n", - "inverse_keycolumn" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 22, - "text": [ - "{0: 'a',\n", - " 1: 'z',\n", - " 2: 'y',\n", - " 3: 'x',\n", - " 4: 'w',\n", - " 5: 'u',\n", - " 6: 't',\n", - " 7: 's',\n", - " 8: 'r',\n", - " 9: 'q',\n", - " 10: 'p',\n", - " 11: 'o',\n", - " 12: 'n',\n", - " 13: 'm',\n", - " 14: 'l',\n", - " 15: 'k',\n", - " 16: 'j',\n", - " 17: 'i',\n", - " 18: 'h',\n", - " 19: 'g',\n", - " 20: 'f',\n", - " 21: 'e',\n", - " 22: 'd',\n", - " 23: 'c',\n", - " 24: 'b'}" - ] - } - ], - "prompt_number": 22 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "def valid_partial_solution(solution, inverse_keycolumn):\n", - " row_indices = [p[0] for p in sorted(solution, key=lambda x: x[1])]\n", - " row_letters = [inverse_keycolumn[i] for i in row_indices]\n", - " letter_pairs = ngrams(row_letters, 2)\n", - " return all(p[0] <= p[1] for p in letter_pairs)" - ], - "language": "python", - "metadata": {}, - "outputs": [], - "prompt_number": 23 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "solutions = [[p] for p in letter_positions['p']]\n", - "for letter in 'ha': #'haseseven':\n", - " new_solutions = []\n", - " for solution in solutions:\n", - " used_columns = [p[1] for p in solution]\n", - " for position in letter_positions[letter]:\n", - " if position[1] not in used_columns:\n", - " if valid_partial_solution(solution + [position], inverse_keycolumn):\n", - " new_solutions += [solution + [position]]\n", - " solutions = new_solutions\n", - "len(solutions)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 24, - "text": [ - "43005" - ] - } - ], - "prompt_number": 24 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "valid_partial_solution(solutions[1], inverse_keycolumn)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 25, - "text": [ - "True" - ] - } - ], - "prompt_number": 25 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "display = []\n", - "for p in solutions[1]:\n", - " this_column = columns[p[1]]\n", - " rotated_column = this_column[p[0]:] + this_column[:p[0]]\n", - " display += [rotated_column]\n", - "display_rows = [''.join(r) for r in zip(*display)]\n", - "display_rows" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 26, - "text": [ - "['pha',\n", - " 'ruo',\n", - " 'oll',\n", - " 'rea',\n", - " 'laa',\n", - " 'tut',\n", - " 'pei',\n", - " 'ead',\n", - " 'nrt',\n", - " 'imi',\n", - " 'non',\n", - " 'eie',\n", - " 'aed',\n", - " 'mir',\n", - " 'inl',\n", - " 'lwi',\n", - " 'eah',\n", - " 'eai',\n", - " 'aps',\n", - " 'cnl',\n", - " 'ren',\n", - " 'ege',\n", - " 'xoo',\n", - " 'eau',\n", - " 'uep']" - ] - } - ], - "prompt_number": 26 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "def display_solution(solution, columns):\n", - " display = []\n", - " for p in solution:\n", - " this_column = columns[p[1]]\n", - " rotated_column = this_column[p[0]:] + this_column[:p[0]]\n", - " display += [rotated_column]\n", - " return [''.join(r) for r in zip(*display)]" - ], - "language": "python", - "metadata": {}, - "outputs": [], - "prompt_number": 27 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "display_solution(solutions[0], columns)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 28, - "text": [ - "['pha',\n", - " 'ruo',\n", - " 'ols',\n", - " 'rer',\n", - " 'lai',\n", - " 'tul',\n", - " 'pei',\n", - " 'eaa',\n", - " 'nro',\n", - " 'ime',\n", - " 'nod',\n", - " 'eid',\n", - " 'aea',\n", - " 'mii',\n", - " 'int',\n", - " 'lwi',\n", - " 'eah',\n", - " 'eap',\n", - " 'apk',\n", - " 'cny',\n", - " 'rew',\n", - " 'egn',\n", - " 'xor',\n", - " 'eaa',\n", - " 'uea']" - ] - } - ], - "prompt_number": 28 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "sum(Ptrigrams(r) for r in display_rows)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 29, - "text": [ - "-109.09171451522874" - ] - } - ], - "prompt_number": 29 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "def score_solution(solution, columns):\n", - " display = []\n", - " for p in solution:\n", - " this_column = columns[p[1]]\n", - " rotated_column = this_column[p[0]:] + this_column[:p[0]]\n", - " display += [rotated_column]\n", - " display_rows = [''.join(r) for r in zip(*display)]\n", - " return sum(Ptrigrams(r) for r in display_rows)" - ], - "language": "python", - "metadata": {}, - "outputs": [], - "prompt_number": 30 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "[(s, display_solution(s, columns), score_solution(s, columns)) for s in solutions[:10]]" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 31, - "text": [ - "[([(0, 35), (0, 12), (0, 0)],\n", - " ['pha',\n", - " 'ruo',\n", - " 'ols',\n", - " 'rer',\n", - " 'lai',\n", - " 'tul',\n", - " 'pei',\n", - " 'eaa',\n", - " 'nro',\n", - " 'ime',\n", - " 'nod',\n", - " 'eid',\n", - " 'aea',\n", - " 'mii',\n", - " 'int',\n", - " 'lwi',\n", - " 'eah',\n", - " 'eap',\n", - " 'apk',\n", - " 'cny',\n", - " 'rew',\n", - " 'egn',\n", - " 'xor',\n", - " 'eaa',\n", - " 'uea'],\n", - " -112.23213925765266),\n", - " ([(0, 35), (0, 12), (0, 3)],\n", - " ['pha',\n", - " 'ruo',\n", - " 'oll',\n", - " 'rea',\n", - " 'laa',\n", - " 'tut',\n", - " 'pei',\n", - " 'ead',\n", - " 'nrt',\n", - " 'imi',\n", - " 'non',\n", - " 'eie',\n", - " 'aed',\n", - " 'mir',\n", - " 'inl',\n", - " 'lwi',\n", - " 'eah',\n", - " 'eai',\n", - " 'aps',\n", - " 'cnl',\n", - " 'ren',\n", - " 'ege',\n", - " 'xoo',\n", - " 'eau',\n", - " 'uep'],\n", - " -109.09171451522874),\n", - " ([(0, 35), (0, 12), (0, 9)],\n", - " ['pha',\n", - " 'ruo',\n", - " 'old',\n", - " 'reo',\n", - " 'lan',\n", - " 'tur',\n", - " 'pee',\n", - " 'eae',\n", - " 'nro',\n", - " 'imc',\n", - " 'nos',\n", - " 'eir',\n", - " 'aee',\n", - " 'mim',\n", - " 'ini',\n", - " 'lwk',\n", - " 'ear',\n", - " 'eai',\n", - " 'api',\n", - " 'cno',\n", - " 'rei',\n", - " 'egh',\n", - " 'xof',\n", - " 'eat',\n", - " 'ues'],\n", - " -105.51902198106185),\n", - " ([(0, 35), (0, 12), (0, 29)],\n", - " ['pha',\n", - " 'rut',\n", - " 'olh',\n", - " 'rea',\n", - " 'lab',\n", - " 'tuo',\n", - " 'peo',\n", - " 'eat',\n", - " 'nrt',\n", - " 'imw',\n", - " 'noa',\n", - " 'eie',\n", - " 'aeh',\n", - " 'mii',\n", - " 'ine',\n", - " 'lwi',\n", - " 'eao',\n", - " 'ead',\n", - " 'api',\n", - " 'cne',\n", - " 'rec',\n", - " 'ega',\n", - " 'xol',\n", - " 'eal',\n", - " 'ueo'],\n", - " -106.91642615054437),\n", - " ([(0, 35), (0, 12), (0, 41)],\n", - " ['pha',\n", - " 'rur',\n", - " 'ols',\n", - " 'rex',\n", - " 'lal',\n", - " 'tus',\n", - " 'pen',\n", - " 'eac',\n", - " 'nrc',\n", - " 'ime',\n", - " 'nou',\n", - " 'eit',\n", - " 'aes',\n", - " 'mia',\n", - " 'int',\n", - " 'lwa',\n", - " 'eai',\n", - " 'eat',\n", - " 'apr',\n", - " 'cns',\n", - " 'ref',\n", - " 'egh',\n", - " 'xof',\n", - " 'eai',\n", - " 'ues'],\n", - " -100.92420426683796),\n", - " ([(0, 35), (0, 12), (1, 44)],\n", - " ['pha',\n", - " 'ruc',\n", - " 'olg',\n", - " 'ren',\n", - " 'laf',\n", - " 'tue',\n", - " 'pes',\n", - " 'eal',\n", - " 'nrs',\n", - " 'imn',\n", - " 'noi',\n", - " 'eie',\n", - " 'aes',\n", - " 'mip',\n", - " 'ind',\n", - " 'lwc',\n", - " 'eag',\n", - " 'ean',\n", - " 'aph',\n", - " 'cno',\n", - " 'ret',\n", - " 'egr',\n", - " 'xoe',\n", - " 'eai',\n", - " 'uep'],\n", - " -108.53207489276411),\n", - " ([(0, 35), (0, 12), (1, 47)],\n", - " ['pha',\n", - " 'rua',\n", - " 'ols',\n", - " 'rer',\n", - " 'lad',\n", - " 'tuv',\n", - " 'pee',\n", - " 'ean',\n", - " 'nrg',\n", - " 'imo',\n", - " 'noe',\n", - " 'ein',\n", - " 'aee',\n", - " 'mii',\n", - " 'iny',\n", - " 'lwr',\n", - " 'ean',\n", - " 'eai',\n", - " 'ape',\n", - " 'cnd',\n", - " 'rew',\n", - " 'egr',\n", - " 'xot',\n", - " 'eai',\n", - " 'ueg'],\n", - " -109.50900823047225),\n", - " ([(0, 35), (0, 12), (2, 47)],\n", - " ['pha',\n", - " 'rus',\n", - " 'olr',\n", - " 'red',\n", - " 'lav',\n", - " 'tue',\n", - " 'pen',\n", - " 'eag',\n", - " 'nro',\n", - " 'ime',\n", - " 'non',\n", - " 'eie',\n", - " 'aei',\n", - " 'miy',\n", - " 'inr',\n", - " 'lwn',\n", - " 'eai',\n", - " 'eae',\n", - " 'apd',\n", - " 'cnw',\n", - " 'rer',\n", - " 'egt',\n", - " 'xoi',\n", - " 'eag',\n", - " 'uea'],\n", - " -114.40196859359595),\n", - " ([(0, 35), (0, 12), (3, 50)],\n", - " ['pha',\n", - " 'ruw',\n", - " 'olt',\n", - " 'rer',\n", - " 'lad',\n", - " 'tue',\n", - " 'peh',\n", - " 'ear',\n", - " 'nrc',\n", - " 'ims',\n", - " 'noc',\n", - " 'eie',\n", - " 'aec',\n", - " 'mil',\n", - " 'inr',\n", - " 'lwr',\n", - " 'ear',\n", - " 'eai',\n", - " 'api',\n", - " 'cne',\n", - " 'ree',\n", - " 'ego',\n", - " 'xoe',\n", - " 'ear',\n", - " 'uee'],\n", - " -106.68850150792129),\n", - " ([(0, 35), (0, 12), (4, 38)],\n", - " ['pha',\n", - " 'rue',\n", - " 'olk',\n", - " 'reh',\n", - " 'laa',\n", - " 'tus',\n", - " 'peb',\n", - " 'eaa',\n", - " 'nre',\n", - " 'imd',\n", - " 'nor',\n", - " 'eit',\n", - " 'aeu',\n", - " 'mio',\n", - " 'int',\n", - " 'lwo',\n", - " 'eah',\n", - " 'eau',\n", - " 'apf',\n", - " 'cni',\n", - " 'rey',\n", - " 'egg',\n", - " 'xoo',\n", - " 'ean',\n", - " 'uet'],\n", - " -108.49770543928673)]" - ] - } - ], - "prompt_number": 31 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "sorted(solutions[:10], key=lambda s: score_solution(s, columns), reverse=True)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 32, - "text": [ - "[[(0, 35), (0, 12), (0, 41)],\n", - " [(0, 35), (0, 12), (0, 9)],\n", - " [(0, 35), (0, 12), (3, 50)],\n", - " [(0, 35), (0, 12), (0, 29)],\n", - " [(0, 35), (0, 12), (4, 38)],\n", - " [(0, 35), (0, 12), (1, 44)],\n", - " [(0, 35), (0, 12), (0, 3)],\n", - " [(0, 35), (0, 12), (1, 47)],\n", - " [(0, 35), (0, 12), (0, 0)],\n", - " [(0, 35), (0, 12), (2, 47)]]" - ] - } - ], - "prompt_number": 32 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "solutions = sorted(solutions, key=lambda s: score_solution(s, columns), reverse=True)[:10000]" - ], - "language": "python", - "metadata": {}, - "outputs": [], - "prompt_number": 33 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "for letter in 'seseven': #'haseeight':\n", - " new_solutions = []\n", - " for solution in solutions:\n", - " used_columns = [p[1] for p in solution]\n", - " for position in letter_positions[letter]:\n", - " if position[1] not in used_columns:\n", - " if valid_partial_solution(solution + [position], inverse_keycolumn):\n", - " new_solutions += [solution + [position]]\n", - " solutions = sorted(new_solutions, key=lambda s: score_solution(s, columns), reverse=True)[:10000]\n", - "len(solutions)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 34, - "text": [ - "10000" - ] - } - ], - "prompt_number": 34 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "display_solution(solutions[0], columns)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 35, - "text": [ - "['phaseseven',\n", - " 'ninmelcalh',\n", - " 'andodrinho',\n", - " 'lmedyierts',\n", - " 'reaapstnen',\n", - " 'entaryafts',\n", - " 'sconhysefe',\n", - " 'birnerctan',\n", - " 'entaergeno',\n", - " 'wioontomoi',\n", - " 'ittretedus',\n", - " 'dttheselin',\n", - " 'ertalriesn',\n", - " 'enpraiaatp',\n", - " 'evisateths',\n", - " 'aytrvioymi',\n", - " 'feewiaihin',\n", - " 'lsnaltemai',\n", - " 'racessdctr',\n", - " 'odreacyugg',\n", - " 'itliciaooa',\n", - " 'ittrapinds',\n", - " 'trareseshh',\n", - " 'aecefdanst',\n", - " 'ancertalex']" - ] - } - ], - "prompt_number": 35 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "hinted_keywords = [w for w in keywords if w[0] =='f' if len(transpositions_of(w)) == 7]\n", - "len(hinted_keywords)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 36, - "text": [ - "849" - ] - } - ], - "prompt_number": 36 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "hinted_keywords[:10]" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 37, - "text": [ - "['fabrics',\n", - " 'facings',\n", - " 'faction',\n", - " 'factors',\n", - " 'factory',\n", - " 'faculty',\n", - " 'fadeout',\n", - " 'failure',\n", - " 'fainest',\n", - " 'fainted']" - ] - } - ], - "prompt_number": 37 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "first_chunk = c8bl[:175]\n", - "len(first_chunk)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 38, - "text": [ - "175" - ] - } - ], - "prompt_number": 38 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "[cadenus_decipher(first_chunk, w, keycolumn)[:20] for w in hinted_keywords]" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 39, - "text": [ - "['gatlrlnjtonethnirreh',\n", - " 'raorejnptreanhriaeso',\n", - " 'raohoanptraesrriasul',\n", - " 'raohhanptraemrriasln',\n", - " 'raorhaeptrnemsrianln',\n", - " 'raonlneptrnissriaaoc',\n", - " 'garhrarjtartsnnifphn',\n", - " 'raoaalapteesnfriunnr',\n", - " 'raonanhpterfrariutpn',\n", - " 'garehhrjteaaraniessp',\n", - " 'raonhalpterafnriutsp',\n", - " 'fainrleptorniseirtno',\n", - " 'raoaanhptemfrariunpn',\n", - " 'raloannptirsrhrioalt',\n", - " 'falmireptinonseiosrn',\n", - " 'ralhaanptiafmrriospn',\n", - " 'faeilenptnoisreirroo',\n", - " 'raeoeanptneafhrirusp',\n", - " 'earotktntvrugheivarj',\n", - " 'gaeorhojtarernnisaep',\n", - " 'gaeorhnjtarerhnisaep',\n", - " 'raeooaeptareesrisaun',\n", - " 'garnahrjtvenranivrep',\n", - " 'raalaenptmifsrrinopo',\n", - " 'faoeoepptnneareihrus',\n", - " 'falhonpptnaerreirsut',\n", - " 'fanroanpthiesreiaoul',\n", - " 'fanhonpptraerreinsut',\n", - " 'rahnaanptaofmrrisepn',\n", - " 'fahrrinptaitoreisohh',\n", - " 'rarrjaaptnensfrineon',\n", - " 'gaaohrmjtsrrnnninapn',\n", - " 'gaaarhrjtsenraninnnp',\n", - " 'gasrlhrjtntnraniehrp',\n", - " 'fasanomptnensneieean',\n", - " 'raalrempftinsnrpiono',\n", - " 'raaorejpftneanrpihes',\n", - " 'ghrrlanjratnthnpfhri',\n", - " 'gharnarjreaetvnpnfai',\n", - " 'frtroenppwthsredoheo',\n", - " 'frahoepppeaearednsus',\n", - " 'raeaoalpfnsntirprlhi',\n", - " 'raaiahnpfmotarrpnhis',\n", - " 'froiianppnoosredhhrl',\n", - " 'rahrinnpfaeeorrpsere',\n", - " 'rahaaiupfaeselrpsnlr',\n", - " 'raaerejpfsreanrpnpes',\n", - " 'graeohnjetarrhneisap',\n", - " 'fitahanpoimesrerenln',\n", - " 'grtaaahjeosntrnernei',\n", - " 'rotaaanpeosetrrurnni',\n", - " 'roieaaopeeanfnrureep',\n", - " 'rrejahnpernfarrepops',\n", - " 'rrejarepernfnsrepopn',\n", - " 'fopalrnpertntheuiirh',\n", - " 'frpnhrlperoapneeiesd',\n", - " 'foperehpernpaaeuirds',\n", - " 'fopalaapersnteeuinri',\n", - " 'rrjalaepensnfrreonrp',\n", - " 'fopaarnpersmpreuinnd',\n", - " 'roatalhpeeifnarunepr',\n", - " 'gtfiehrjuterranrrrep',\n", - " 'rrainanpeneofhreerep',\n", - " 'filhranpoiapmrerosdn',\n", - " 'rrrajaapevtnnfrevioe',\n", - " 'roeaaanpeatefhrusinp',\n", - " 'rreinanpeaeofhresrep',\n", - " 'ronealnperrfnhrutppr',\n", - " 'fioraenpohpmsreredno',\n", - " 'fonprlnperrpnheutidr',\n", - " 'finlrenporipsrertodo',\n", - " 'rrlatajpenfisnrerpen',\n", - " 'rooaeaepenfntaruhpri',\n", - " 'fiairnhpomopraernhdn',\n", - " 'pfomrteddsnnwstcnsno',\n", - " 'rrninalpeheofnrearep',\n", - " 'fonrraeperipmseunodn',\n", - " 'fonrnrhperirpaeunotd',\n", - " 'pfnsoaiddsoseetccrne',\n", - " 'grnatahjeetonrnesire',\n", - " 'grnarhrjeetnranesinp',\n", - " 'ronarampeetnfnrusinp',\n", - " 'roaaeaepeifresrueppn',\n", - " 'finnnorpoesnsperscan',\n", - " 'rosaanmpeoftnnrurpia',\n", - " 'flapannpitrsrheoiilt',\n", - " 'raaeoaopntaefnreieup',\n", - " 'faaeorppntaevreeieuv',\n", - " 'eaattktnntrogheeivrj',\n", - " 'gaanthnjeteorhnniarp',\n", - " 'rlaealnpitnfnhroirpr',\n", - " 'faanorppeteevreniauv',\n", - " 'raaejanpetanfhrnisop',\n", - " 'gaarehrjntvaraneivep',\n", - " 'raaeuaopetalfnrnisip',\n", - " 'faaooeppetnearenihus',\n", - " 'gaanehrjnthrraneiaep',\n", - " 'raannalpethofnrniaep',\n", - " 'eaahtktnntaogheeisrj',\n", - " 'ftaaormpwtshnneoinen',\n", - " 'ftashanpwtnemreoieln',\n", - " 'ftashnapwtnenmeoiela',\n", - " 'faasoeppetnearenieus',\n", - " 'faaeoeppetsearenious',\n", - " 'farnorppepeevrendauv',\n", - " 'farnonrpepeehiendaua',\n", - " 'farnoeppepeearendsus',\n", - " 'gfrirhrjteearanrernp',\n", - " 'raoieaopneeafnreurep',\n", - " 'paoprhndeeeiartnufos',\n", - " 'paoprredeeeinstnufon',\n", - " 'faoeirnpeeaeihenusro',\n", - " 'raolhaepeenafrrnursp',\n", - " 'gaaahhrjestarannlisp',\n", - " 'rlrahalpittafnrohisp',\n", - " 'gaviehrjnvearaneorep',\n", - " 'raaoorapesneatrnlhuf',\n", - " 'flaoinrpisnorpeolhrt',\n", - " 'ptrlfondwtndhhtohrce',\n", - " 'pthafnhdwemdratolncn',\n", - " 'ftrhnaipwtartoeohsni',\n", - " 'rlaaniapissrefrolntr',\n", - " 'rlralaepitsnfrrohnrp',\n", - " 'rlraraepitsnfrrohnnp',\n", - " 'fthsranpwenpmreoledn',\n", - " 'fthnraepweapmseolidn',\n", - " 'plasinpdisnoretolert',\n", - " 'rlnaniepinfresroaptr',\n", - " 'faauirlpeslopnennird',\n", - " 'raaeuaepesalfrrnnsip',\n", - " 'flnnrrepinrtpseoatwd',\n", - " 'faaeuirpesalopennsir',\n", - " 'ptnocemdwnhesntoaeto',\n", - " 'raannaepesrofrrnnnep',\n", - " 'flanrrapisripmeonnod',\n", - " 'ftamrropwsnnpseonsnd',\n", - " 'plarinpdisnoretonnrt',\n", - " 'plnninpdineoretoasrt',\n", - " 'pleinpndisorertoortf',\n", - " 'ftehnrapwseapmeoolid',\n", - " 'fvaaoeppvteeareoinus',\n", - " 'raaeoaopstnefnrlirup',\n", - " 'fvaeoeppvtneareoirus',\n", - " 'grianhrjtesrranhrnnp',\n", - " 'fhpaarepertmnseliinn',\n", - " 'raotaanpseiefhrluenp',\n", - " 'rronhaepterafrrhunsp',\n", - " 'rrlealnptirfnhrhoppr',\n", - " 'fvaeoeppvereareonpus',\n", - " 'frlprlnptirpnhehoidr',\n", - " 'rvarajapvnetnfroeeio',\n", - " 'raaoahapseetafrlnuis',\n", - " 'frwrohnptopharehades',\n", - " 'rroeanhpthrfrarheppn',\n", - " 'ranelanpsrrifhrltpop',\n", - " 'rroeaanpthrsfrrhepnp',\n", - " 'gaoanhrjsnteranlhirp',\n", - " 'rrlajanptntnfhrhriop',\n", - " 'grlaehrjtntsranhriop',\n", - " 'eaotatknsnothgelhrir',\n", - " 'rrltornptnieahrhreuf',\n", - " 'rhliatnpenefhhrlrrpa',\n", - " 'faoionppsneerrelhrut',\n", - " 'raornaepsnaotnrlhfei',\n", - " 'faoeonppsnrerrelhput',\n", - " 'faoropnpsnperrelhdui',\n", - " 'raoaianpsnfotrrlhphi',\n", - " 'rhaanaspemfrtnrlnpni',\n", - " 'rrljasaptnntnfrhroie',\n", - " 'fhaprhnpemrparelnids',\n", - " 'frlposrptnrenpehriue',\n", - " 'paouinpdsnloretlhirt',\n", - " 'frliatnptnotwhehrhio',\n", - " 'frlwaohptnothaehraie',\n", - " 'rrliahaptnotafrhrhis',\n", - " 'fhawahnpemotarelnais',\n", - " 'raoeooapsnnertrlhrua',\n", - " 'paoiinpdsnooretlhhrt',\n", - " 'frliataptnoswtehrhno',\n", - " 'rrlnauaptnhtlfrhraii',\n", - " 'fhahirnpemaoprelnsrd',\n", - " 'fharaorpemnsapelnnne',\n", - " 'fhasrorpemnpanelnede',\n", - " 'fhatrmrpeswpnnelnods',\n", - " 'paalinpdssioretlnort',\n", - " 'rraoealptshrfnrhnepp',\n", - " 'fhnoeaepenarmselaepn',\n", - " 'paaoremdessnfntennnd',\n", - " 'paslinpdsnioretleort',\n", - " 'fhnirmrpeeopnnelsrds',\n", - " 'frnrailptentoiehsnir',\n", - " 'roajraapntnenfrhioee',\n", - " 'faailrepmtoinseniron',\n", - " 'foaeoeppntnearehirus',\n", - " 'glanohnjntrrrhnritap',\n", - " 'rlanoonpntrrehrritau',\n", - " 'goaeehrjntaaranhisep',\n", - " 'roaeuaapntalferhisip',\n", - " 'roaeeoapntaaefrhiseu',\n", - " 'flanrlepntrtiseritwo',\n", - " 'rlanhoopntraerrritsu',\n", - " 'faaapnrpmtsroneninie',\n", - " 'flaeonppntserreriout',\n", - " 'glhrranjnreathnrpefi',\n", - " 'flrrpnhpnperoaerdeie',\n", - " 'flrwrohpnpothaerdahe',\n", - " 'rlaninnpnfreohrrptre',\n", - " 'forosimpspaoenenderu',\n", - " 'farnrlepmpriisendnoo',\n", - " 'goratahjnetonrnheire',\n", - " 'raoraenpmeatsrrnufio',\n", - " 'rlrejanpnernfhrrepop',\n", - " 'gorhraejneratanhepfi',\n", - " 'glrhranjnerathnrepfi',\n", - " 'rloanenpnefrrhrruptp',\n", - " 'rlrjahapnentafrreois',\n", - " 'paoprhndmeeiartnufos',\n", - " 'rorejaepneanfrrhesop',\n", - " 'flonprnpnerrpherutid',\n", - " 'rloneaepnehafrrruaep',\n", - " 'foapianpnsrotrehlihi',\n", - " 'foapirnpnsroprehlihd',\n", - " 'flrliinpntioeherhorr',\n", - " 'flrohatpnthatwerhesi',\n", - " 'rlrohaepnthafrrrhesp',\n", - " 'rahnhaepmerafrrnlnsp',\n", - " 'rlrhnaepntaofrrrhsep',\n", - " 'rlrsoaepntnhfrrrheep',\n", - " 'raaoraepmsenfrrnnunp',\n", - " 'raonnrapsroretrnaene',\n", - " 'raiuaanpselfmrrnripn',\n", - " 'faieoeppseaearenreus',\n", - " 'faraoeppspeearendnus',\n", - " 'falaninpsitrorenoitr',\n", - " 'fatnrirpswrtopenonhh',\n", - " 'paerhomdstneantnvnle',\n", - " 'gantahrjseierannaenp',\n", - " 'raetlalpsniifnrnreop',\n", - " 'raetlanpsniifrrnreop',\n", - " 'faoirhapsaenemenernl',\n", - " 'raoeaanpshrfmrrneppn',\n", - " 'ranalalpsrfntirntpri',\n", - " 'fanpaoepsrrserentilu',\n", - " 'fanuirlpsrlopnentird',\n", - " 'faatonrpsmierienneun',\n", - " 'pallinpdsnioretnrort',\n", - " 'paltropdsnwthetnrohe',\n", - " 'galnaohjsnrtrrnnrtia',\n", - " 'paaoinedsmhorftnnern',\n", - " 'fnonisrpnssonpeancre',\n", - " 'ranotaapsreiefrnnuen',\n", - " 'famriaopsnnothensnri',\n", - " 'famriropsnnopsensnrd',\n", - " 'pnnsiopdnsoohetacrre',\n", - " 'ratalrnptositnrirnoh',\n", - " 'ealktvanttgovseihjro',\n", - " 'gaoharajtrrnelniapee',\n", - " 'gaorahfjtrenrtniaeep',\n", - " 'raooathptreeuariaunr',\n", - " 'raorrhtptrntanrianhs',\n", - " 'faoatolpteeuaeeiunre',\n", - " 'failnraptoirtleironh',\n", - " 'raonhanpterafrriutsp',\n", - " 'rarojaaptennsfriehol',\n", - " 'raolnanptenrfhriurtp',\n", - " 'failthoptonheneirral',\n", - " 'faionoiptosarneirnis',\n", - " 'faorrasptenilceiunoe',\n", - " 'fatlvnnptwivnseioooa',\n", - " 'gaaavlajtenvcfnineoe',\n", - " 'ralnahnptirfasrionps',\n", - " 'falmireptinonseiosrn',\n", - " 'gaahhlajtearnfninspr',\n", - " 'ranoafrpteeedariaunc',\n", - " 'ranrnnapteehofriaeae',\n", - " 'ranonfcptrrtdhritsnc',\n", - " 'raeooasptarelcrisaue',\n", - " 'raeoeroptarsehrisaoe',\n", - " 'raoenuvptnnohurihrec',\n", - " 'raoeluvptnnihurihroc',\n", - " 'galavlajtnmvcfnirnoe',\n", - " 'raahnanptmaofrrinsep',\n", - " 'ganorctjthrehwniaaeo',\n", - " 'fanroanpthiesreiaoul',\n", - " 'ganhhnajtrarrfninspt',\n", - " 'ranhaoyptrafherinspe',\n", - " 'fahattmptacwuneiseor',\n", - " 'gahehfhjtarrtonisepo',\n", - " 'gahehlajtarrnfnisepr',\n", - " 'fanlnifptnisoteiaocr',\n", - " 'faamriaptsnnoceinsnr',\n", - " 'raalnripftnhtorpirah',\n", - " 'ghanrtajrtheonnpiaer',\n", - " 'raahnylpftaoenrpisen',\n", - " 'raarnyopftnoenrpinen',\n", - " 'gharaaajrtnsmfnpinnn',\n", - " 'raaraoypftnsserpinnn',\n", - " 'ghtanaojromntnnprnai',\n", - " 'ghrosefjraoyttnpfgdt',\n", - " 'ghrraocjraamdhnpflns',\n", - " 'oykrtcsgegaiatfnjfel',\n", - " 'ekhrtulngraiheejpfec',\n", - " 'rarstolpfpyuherpdere',\n", - " 'fryltolppeiuaeednore',\n", - " 'ghaatoojrnfsdrnpepys',\n", - " 'gharooojrnerdrnpeeas',\n", - " 'raaoithpfeeeuarpnurr',\n", - " 'raafontpfesrturpnrsn',\n", - " 'frlanirppisroaedoltr',\n", - " 'friintnppooruhedhrtr',\n", - " 'raeirolpfaeeherpsree',\n", - " 'frawkrrppmogvnednajv',\n", - " 'ghonavhjrnrtuonphtir',\n", - " 'frloiroppnnaeaedrhae',\n", - " 'raankrspfmaghtrpnije',\n", - " 'frosanappsnenmedneea',\n", - " 'rahrinopfaeeoorpsere',\n", - " 'frsyoteppnesugedennr',\n", - " 'raeniaepfsrotarpothi',\n", - " 'granoahjethrsrneiaal',\n", - " 'fiihrhepoeaeeaerrsel',\n", - " 'roeseooperytonrupevg',\n", - " 'roeaathperfeuaruppnr',\n", - " 'grtaooujehsrdhnernas',\n", - " 'roaaeoopeferonrupnpg',\n", - " 'rraaesopefnrmhrepepn',\n", - " 'rraeesspefarmnrepspn',\n", - " 'roaliyfpefneetruprrn',\n", - " 'roaaionpefmeohrupnrg',\n", - " 'fopalrrpersneheuinre',\n", - " 'frainsopeneomaeeeren',\n", - " 'roaaranpeefvterunpvi',\n", - " 'filanvspoieevyeronao',\n", - " 'fileoonpoindoherorsg',\n", - " 'roatsecpenrrteruevht',\n", - " 'roahalrpeeafnprunspr',\n", - " 'foahroopeeaidoeunsos',\n", - " 'roahlaipeeanthrunsri',\n", - " 'roeaasapeatemirusinn',\n", - " 'finaltnportiuhertior',\n", - " 'finalthportiuaertior',\n", - " 'roeaaswpeatemfrusinn',\n", - " 'etravehnuvtuhrervirk',\n", - " 'greavlrjeatutanesirh',\n", - " 'rrejaorpeanfnpresoph',\n", - " 'rresserpeamnfpresntd',\n", - " 'fonsetopermgooeutnhd',\n", - " 'fiotdeopohuotnererot',\n", - " 'fintdkfporuogtertroj',\n", - " 'roeaavtpeaeturrusnir',\n", - " 'rolaaatpenftmrrurpin',\n", - " 'grohtaajenrotnnehpri',\n", - " 'rooataepenfisnruhpel',\n", - " 'fiargfipompjteerndnr',\n", - " 'fiargvapompjvierndno',\n", - " 'rolahsepenfaytrurpsd',\n", - " 'rolasaapenfnterurpei',\n", - " 'rolasrhpenfnterurpeh',\n", - " 'filrsroponpntserrdeh',\n", - " 'filinrnponorpherrhtd',\n", - " 'rolesatpennntarurrei',\n", - " 'ronoaafperrtetrunain',\n", - " 'fonrraeperipmseunodn',\n", - " 'fonrnrhperirpaeunotd',\n", - " 'fonrharperiateeunosi',\n", - " 'ronnstrperhcaprunaei',\n", - " 'rosaorfpenfgtsruepfh',\n", - " 'fonarropeetneaeusine',\n", - " 'finarrhpoetneeersine',\n", - " 'ronantipeetsuirusicr',\n", - " 'gaattirjntotoaneirsr',\n", - " 'raajvaepetnostrniool',\n", - " 'flaplerpitrntveoiirt',\n", - " 'faareoopntvaeaeeiveu',\n", - " 'raaveftpntoutsreiolo',\n", - " 'rlatroopithionroiatg',\n", - " 'faavetopetoluaenioor',\n", - " 'raannalpethofnrniaep',\n", - " 'raannanpetrofhrninep',\n", - " 'faanrofpetrieteninou',\n", - " 'rlahoelpitartnroisat',\n", - " 'faahgtepetajugenisnr',\n", - " 'gaahehfjntarrtneisep',\n", - " 'rlahnanpitarfrroistp',\n", - " 'rlahiyepitahearoisin',\n", - " 'rlahiylpitahenroisin',\n", - " 'rlariyopitnhenroinin',\n", - " 'faahntopetatuaenisnr',\n", - " 'ftahnrspwtattleoisnh',\n", - " 'rlarsetpitnntaroinet',\n", - " 'flaarimpitsnoneoinnr',\n", - " 'gaannhajeterrfnnisnp',\n", - " 'raartsopnfpsmhrepdyn',\n", - " 'farrntopepatuaendlnr',\n", - " 'farnonrpepeehiendaua',\n", - " 'farnroopephieoendaou',\n", - " 'raahinopefaeoornpsre',\n", - " 'raaaotfpefieitrnpeue',\n", - " 'flrnriepipenoneodsnr',\n", - " 'rlannaapifenmtropsan',\n", - " 'faoiesopneeamaeeuren',\n", - " 'flienoopionhdoeorras',\n", - " 'flinhoopioradoeortss',\n", - " 'fliseerpiolstveorlst',\n", - " 'fliteoopiohsoneorasg',\n", - " 'fliteonpiohsoheorasg',\n", - " 'plilhrvdionaeutorrse',\n", - " 'favhhtopevekuaenosgr',\n", - " 'plavdrvdisveeutologe',\n", - " 'flrvtoopitvcdoeohoas',\n", - " 'flrseorpitledaeohlds',\n", - " 'flrseorpitledaeohlds',\n", - " 'plavervdisoeeutolode',\n", - " 'rlaoanipisnfrerolhpt',\n", - " 'flrliefpitnorteohrrp',\n", - " 'pthafnhdwemdratolncn',\n", - " 'planervdishgeutolahe',\n", - " 'ftrhnaipwtartoeohsni',\n", - " 'rlrsalrpitnfnprohepr',\n", - " 'faatctopesieuaennehr',\n", - " 'ftnronfpwnphsteoadec',\n", - " 'flnierhpinoreaeoarpe',\n", - " 'paaeuivdesaloutnnsir',\n", - " 'raalofrpesnsdprnnrnc',\n", - " 'flaadoopismedoeonngs',\n", - " 'flamrrnpisnipreonsod',\n", - " 'ftamrropwsnnpseonsnd',\n", - " 'ftardkapwsnogmeonnoj',\n", - " 'ftnndkopwnsogneoacoj',\n", - " 'rletaropishtiorooait',\n", - " 'flemrropisnipoeoosod',\n", - " 'grianeajtesrgfnhrnnh',\n", - " 'rajtvsvpsnivcurloeoe',\n", - " 'frpjoonptrndohehiosg',\n", - " 'prpraordteissvthfoln',\n", - " 'prinhovdtoraeuthrnsu',\n", - " 'rrlranoptiatarrhofii',\n", - " 'palrnrvdsithtutlowah',\n", - " 'raianhrpsofraprlhpts',\n", - " 'rrorarrpthatvnrhefiv',\n", - " 'fveeaoopvareeaeospnu',\n", - " 'ranhaovpsrateurltsiu',\n", - " 'fhafyoipeeseneelernh',\n", - " 'rrhfaiuptetiehrhlrhr',\n", - " 'rrvdapoptvoceorhooef',\n", - " 'prvgovgdtvheuftholur',\n", - " 'frvgsaeptvhrcaeholhe',\n", - " 'rhahirepesaiptrllsed',\n", - " 'rrlajaoptntnfnrhriop',\n", - " 'faoaponpsntrerelhiiu',\n", - " 'grlthaojtnortnnhrrpi',\n", - " 'rrliaatptneflnrhrrpe',\n", - " 'rhliatnpenefhhrlrrpa',\n", - " 'rrlaaotptnftsrrhrpin',\n", - " 'gaoherfjsnrrptnlhped',\n", - " 'frlrlhlptnpireehrdop',\n", - " 'raoaahepsnfeehrlhpns',\n", - " 'fharwanpemposhelndal',\n", - " 'raoanaipsnfrtorlhpti',\n", - " 'rhaanhrpemfraprlnpns',\n", - " 'faormropespnnneendsn',\n", - " 'rrlahhfptnfaesrhrpsl',\n", - " 'rrlasaoptnfntsrhrpei',\n", - " 'fharshepempnraelndep',\n", - " 'fhaphsrpemdrmnelntpn',\n", - " 'fhaproipemrpneelnidh',\n", - " 'prlrlfadtntidlthrwoc',\n", - " 'frliatfptnotwtehrhio',\n", - " 'frlirdfptnopetehrhdg',\n", - " 'frlitrnptnowphehrhod',\n", - " 'frlwvyaptnovdcehraoo',\n", - " 'rrlnauaptnhtlfrhraii',\n", - " 'rhansaapemrnftrlnnep',\n", - " 'frlhorgptnaephehrsud',\n", - " 'fhahscepemayaaelnsdl',\n", - " 'rhasathpemntaorlneii',\n", - " 'rhnhaarperafmprlnspn',\n", - " 'rraoataptsrtnnrhnair',\n", - " 'fratornptswhprehnoed',\n", - " 'faaneoopssrreaelntpu',\n", - " 'fraoraiptshntoehneni',\n", - " 'fhaanaspesmrerelnnne',\n", - " 'fhaarrhpesmnprelnnnd',\n", - " 'frnplaopterissehsiol',\n", - " 'frnrhfopteiesoehsolr',\n", - " 'frnratrpteisnhehsolr',\n", - " 'raaohaapmtracnrniase',\n", - " 'gaaoradjmtrnsenniann',\n", - " 'goaeorojntareanhisae',\n", - " 'foaeeoopntaaeaehiseu',\n", - " 'foaeuaipntaleoehisin',\n", - " 'raasoalpmtoefnrnirup',\n", - " 'glasntajntoewfnrirto',\n", - " 'raasaeopmtoatornircv',\n", - " 'gohieaajnreanfnhpree',\n", - " 'rlaiuarpnfelearrprin',\n", - " 'gohraocjnramdhnhpfns',\n", - " 'glhraosjnramdtnrpfns',\n", - " 'gohassujnrfyrhnhppeh',\n", - " 'rlarshtpnfpyerrrpdel',\n", - " 'gohytuvjnreohunhpndc',\n", - " 'roakfrfpnfgttsrhpjuh',\n", - " 'flrkrolpnpgeaeerdjee',\n", - " 'gohyahfjnrenetnhpnes',\n", - " 'rlakserpnfgrtvrrpjht',\n", - " 'faronvlpmpotvcendgno',\n", - " 'roaoooipsfosrnrnpgns',\n", - " 'flrraropnpaaeaerdlce',\n", - " 'rlaninrpnfreoarrptre',\n", - " 'rlanrnopnfratdrrptln',\n", - " 'rlansorpnfroeprrptru',\n", - " 'farosiopmphoooenderr',\n", - " 'farlahepmposraendsnp',\n", - " 'flrnriypnphioeerdaoh',\n", - " 'flrhnropnpateaerdsne',\n", - " 'farrshdpmpnneeendnel',\n", - " 'fliihrhpnoeaeeerrrse',\n", - " 'floposfpnerdyteruise',\n", - " 'pafnrofdmdrtettncnwu',\n", - " 'plinurvdnohleutrraie',\n", - " 'rlosnerpneoetprrurtv',\n", - " 'faisafopmooasoenrrcr',\n", - " 'flrohirpnthaoperhesr',\n", - " 'plrohivdnthaoutrhesr',\n", - " 'fahnhtipmeraioenlnse',\n", - " 'fahnhirpmeraopenlnsr',\n", - " 'flrhrorpntaieperhsou',\n", - " 'plrsoivdntnhoutrheer',\n", - " 'fahsnirpmenropenlenr',\n", - " 'fahnsirpmeaoopenlirr',\n", - " 'foniniapsnesolenarcr',\n", - " 'fanpalfpmnrtitenaiio',\n", - " 'paairovdmsoneutnnrnu',\n", - " 'paafroadmsdneetnncnu',\n", - " 'flaitirpnsohopernhar',\n", - " 'raonnrapsroretrnaene',\n", - " 'faesltopsryiuaenpeor',\n", - " 'faraltopspeiuaendnor',\n", - " 'fnponsopnresmseaiucn',\n", - " 'fneisaapnuontmealrei',\n", - " 'fatiatnpswemneenornr',\n", - " 'gaaetctjsntiasnnevel',\n", - " 'faoirirpshenotenernr',\n", - " 'faneoogpsrreafentpue',\n", - " 'ranalrapsrfnpcrntprd',\n", - " 'faoooynpshadereneesn',\n", - " 'pallrhpdsnitirtnrohi',\n", - " 'faodoynpssederenngsn',\n", - " 'rnaovirpnmsviprannoe',\n", - " 'faorrrapssnipmennnod',\n", - " 'faorrrmpssnipnennnod',\n", - " 'ranaaajpsrfetnrnnpni',\n", - " 'panfgrddsrdjtetnncnh',\n", - " 'famriaopsnnothensnri',\n", - " 'fnnilrfpnsoipteacrod',\n", - " 'fnstokmpnocdgnearasj',\n", - " 'gaohsaojtrrlerniapln',\n", - " 'raonnafptrsnctriacae',\n", - " 'raonhvopterauoriutsr',\n", - " 'garortajtenpufniehrr',\n", - " 'raolnanptenrfhriurtp',\n", - " 'raauafrptelntvrinieo',\n", - " 'gaaeelsjtntttmnievth',\n", - " 'falaverptinveeeioeod',\n", - " 'ralnahnptirfasrionps',\n", - " 'gaanrrfjtnhepdnieaer',\n", - " 'raanohfptereadrinnus',\n", - " 'faeiltoptnoiureirror',\n", - " 'raeonftptartdsrissnc',\n", - " 'gaeororjtareaanisaee',\n", - " 'ranhusfptrahndritsct',\n", - " 'ranhusfptrahndritsct',\n", - " 'ranhusiptrahnhritsct',\n", - " 'raaaskaptmfngnrinpej',\n", - " 'raaieflptmostnrinhoo',\n", - " 'ranhaoyptrafherinspe',\n", - " 'fahattmptacwuneiseor',\n", - " 'faratsnptncwmseineon',\n", - " 'ranaotfptsfgntricpfr',\n", - " 'faroparptnerseeinuin',\n", - " 'rahiknoptahgrorisijt',\n", - " 'rahionoptahorerisigt',\n", - " 'raalreyptsinterinonv',\n", - " 'raaaotfpftmgntrpinfr',\n", - " 'ghaheotjrtaroanpiseg',\n", - " 'ghrosefjraoyttnpfgdt',\n", - " 'ghrysorjraeyrnnpfnds',\n", - " 'fryltolppeiuaeednore',\n", - " 'friintnppooruhedhrtr',\n", - " 'frnaplkpprsrngedtnir',\n", - " 'ghorreajrnaeatnphfes',\n", - " 'raliyrdpfnoevorprhnv',\n", - " 'ghlnavtjrnrturnprtir',\n", - " 'frloknippnngsoedrhjc',\n", - " 'frarilrppmnoiaednnro',\n", - " 'frahiltppmaoiuednsro',\n", - " 'frarilsppmnoimednnro',\n", - " 'frarilsppmnoimednnro',\n", - " 'frsninsppnsoamedtcri',\n", - " 'ranhrhrpfratehrpnshl',\n", - " 'frhonrrppaerieedsuno',\n", - " 'frhrkaippangmoedsnjn',\n", - " 'grtvealjeovattnerosi',\n", - " 'rrejahtpernfaurepops',\n", - " 'poprhredeeiaeatufose',\n", - " 'pipaaoedoesmeatrfnnu',\n", - " 'rraoltrpeneeapreeusi',\n", - " 'foaigsrpeeofyaeunrtd',\n", - " 'pftterrddwulevtcoroe',\n", - " 'foafrripeesanoeunrln',\n", - " 'foahroopeeaidoeunsos',\n", - " 'roeaasapeatemirusinn',\n", - " 'finaltnportiuhertior',\n", - " 'greavlsjeatutmnesirh',\n", - " 'roeotcspeadsemrussyt',\n", - " 'fonsetopermgooeutnhd',\n", - " 'rrevkdopeaugtrresrjo',\n", - " 'grohtsojenroyonehprd',\n", - " 'frlrrolpenppeeeerdru',\n", - " 'filrthsponphenerrdal',\n", - " 'roaasarpemfntnrunpei',\n", - " 'filinrnponorpherrhtd',\n", - " 'fonrharperiateeunosi',\n", - " 'fomrstopeninuseusoer',\n", - " 'pirnfoldonsdhetrncce',\n", - " 'ronaenopeefrrorusppt',\n", - " 'raajafapetnftnrniopr',\n", - " 'raajaafpetnfstrniopl',\n", - " 'raanntapetroosrniner',\n", - " 'rlahtrupitaothroisrh',\n", - " 'faahgtepetajugenisnr',\n", - " 'rlahnanpitarfrroistp',\n", - " 'gaahgovjetahounnislg',\n", - " 'gaahgotjetahoannislg',\n", - " 'rlaraeypitnsteroinnv',\n", - " 'flaarimpitsnoneoinnr',\n", - " 'ftashaopwtnemgeoieln',\n", - " 'raaejaspnfrnemreppon',\n", - " 'raaretrpefphuarnpdkr',\n", - " 'farnrorpeprieaendnou',\n", - " 'farnrltpephiiuendaoo',\n", - " 'flrnirrpipeoneeodsrn',\n", - " 'flienorpionrdaeorrns',\n", - " 'farrinipneveooeeevre',\n", - " 'flinhoopioradoeortss',\n", - " 'plapprrdiserevtolfie',\n", - " 'flahagrpisatheeolsil',\n", - " 'flrhifapitaosneohsrr',\n", - " 'flrsrlipitnpnoeohedr',\n", - " 'gaaorocjesrnoannnans',\n", - " 'flarpropispdeoeonrte',\n", - " 'rlariyspisnheyronnin',\n", - " 'rleerucpistpheroovdc',\n", - " 'flenrrypisaipeeooiod',\n", - " 'fapjrrrpsrnehaelioee',\n", - " 'frlrahoptitnenehowes',\n", - " 'raaloofpseidrtrlnosa',\n", - " 'fhtfhcopewteeoelorsi',\n", - " 'frlfhnhptitearehorsi',\n", - " 'palfacfdsiteedtlorei',\n", - " 'frhfodsptesoemehlrgg',\n", - " 'prhttaedtewuisthlorh',\n", - " 'rrhfaiuptetiehrhlrhr',\n", - " 'rrvitaaptvhicnrhoiee',\n", - " 'prviroadtvhienthoiou',\n", - " 'frvgnhaptvhoeneholes',\n", - " 'fhvnecrpevssanelocsl',\n", - " 'phvnstidevslaotlocli',\n", - " 'paahnuadesarrmtelsii',\n", - " 'gaohaatjsnrtmvnlhpin',\n", - " 'grlhtrojtnroprnhrprd',\n", - " 'grlhtutjtnrirrnhrpei',\n", - " 'rrlailvptnfeivrhrpro',\n", - " 'faorphrpsnpreeelhdil',\n", - " 'faoropnpsnperrelhdui',\n", - " 'faormropespnnneendsn',\n", - " 'rhaansrpemfrnprlnpne',\n", - " 'fharnsapemprneelndne',\n", - " 'rhaahanpemfatrrlnpsi',\n", - " 'fharhhapemparnelndsp',\n", - " 'frlrsaiptnpneoehrdee',\n", - " 'rhaashlpemfnenrlnpes',\n", - " 'rrlfksdptnpgmorhrejn',\n", - " 'frlprosptnrpsmehridn',\n", - " 'prlpisodtneonethrfre',\n", - " 'frlpvdnptnrvotehrioo',\n", - " 'rrliahiptnotahrhrhis',\n", - " 'frlwvyaptnovdcehraoo',\n", - " 'rhansaapemrnftrlnnep',\n", - " 'pharesidemnfnotlnnde',\n", - " 'rrlhofoptnaepdrhrsue',\n", - " 'fhahiptpemaoduelnsrt',\n", - " 'grlsattjtnntahnhreii',\n", - " 'grlsattjtnntahnhreii',\n", - " 'frneofoptrgetdehnhur',\n", - " 'fhnhraiperapmoelnsdn',\n", - " 'pratiahdtswosithnohl',\n", - " 'fratornptswhprehnoed',\n", - " 'rraoealptshrfnrhnepp',\n", - " 'rhaaniupesmrerrlnnnr',\n", - " 'fhaanaspesmrerelnnne',\n", - " 'roajanfpntnsrtrhiolt',\n", - " 'goanlfojntentanhirro',\n", - " 'glanohnjntrrrhnritap',\n", - " 'rlanoonpntrrehrritau',\n", - " 'flaorevpnthtnveriewe',\n", - " 'faaoranpmthtlneniewe',\n", - " 'rlanuvrpntrluarritir',\n", - " 'rlahaaopntafmhrrispn',\n", - " 'gohrystjnraeyunhpfnd',\n", - " 'glhryssjnraeymnrpfnd',\n", - " 'elkatoenngfirgerjpes',\n", - " 'gohyfuvjnreshunhpnrc',\n", - " 'faronnapmpohteendgan',\n", - " 'forynhepsperatendnns',\n", - " 'flrrpnhpnperoaerdeie',\n", - " 'roaeinepnfaeonrhpsre',\n", - " 'rlannyrpnfhoehrrpaen',\n", - " 'fornohfpspsgltendcfc',\n", - " 'glroanejnerthgnreaia',\n", - " 'gothrsrjnurayenhrpfd',\n", - " 'ploprhrdneeiaetrufos',\n", - " 'faopohspmerdomenuiso',\n", - " 'failftrpmoisuaenrorr',\n", - " 'faieerlpmolsanenrosl',\n", - " 'fainuorpmorldaenrnis',\n", - " 'foisrropsooaeoenrrte',\n", - " 'plisaafdnooaedtrrrcn',\n", - " 'fahinyopmeordrenlrno',\n", - " 'fahnhirpmeraopenlnsr',\n", - " 'foairoypssondeennrns',\n", - " 'roamrsfpssnnytrnnsnd',\n", - " 'faerylipsaheioenseno',\n", - " 'faaihnypsmoendennrla',\n", - " 'faaoiropsmhonoennern',\n", - " 'raarnaspsmnofyrnnnep',\n", - " 'ranaaajpsrfetnrnnpni',\n", - " 'pnnftsndnsdwmttaccon',\n", - " 'pnnhtsndnslamttaccin',\n", - " 'fnstorypnoceheearaue',\n", - " 'gaorasgjtrenmhniaeen',\n", - " 'raonhvopterauoriutsr',\n", - " 'garnuecjtehhtanieacv',\n", - " 'faeiltoptnoiureirror',\n", - " 'gaeororjtareaanisaee',\n", - " 'ranhusfptrahndritsct',\n", - " 'faloceeptnsaaseirnle',\n", - " 'raheltaptatiuiristor',\n", - " 'rahelfrptatidnristoc',\n", - " 'raaalonpftmiohrpinog',\n", - " 'raahnylpftaoenrpisen',\n", - " 'raahnoapftaoomrpiseg',\n", - " 'raaoisrpfeeemnrpnurn',\n", - " 'friintrppooruvedhrtr',\n", - " 'frahiltppmaoiuednsro',\n", - " 'frahiltppmaoiuednsro',\n", - " 'frarilsppmnoimednnro',\n", - " 'frsninsppnsoamedtcri',\n", - " 'frhonrrppaerieedsuno',\n", - " 'fiirohrpoeneaeerrnus',\n", - " 'roaliyrpefneevruprrn',\n", - " 'foadyhepeloeraeueonp',\n", - " 'foeaasepeatemgeusinn',\n", - " 'foeaastpeatemceusinn',\n", - " 'rreavespeatuhmresirk',\n", - " 'fonprlsperrpnmeutidr',\n", - " 'filrtovponphsverrdan',\n", - " 'gaantcrjetevasnniaul',\n", - " 'rlanvrapitruanroitrl',\n", - " 'raarvylpntvueireivrn',\n", - " 'raanntapetroosrniner',\n", - " 'gaahoaujetagernnisfe',\n", - " 'rlahiylpitahenroisin',\n", - " 'ftashnapwtnenmeoiela',\n", - " 'rlaneynpitatehroiivn',\n", - " 'raaejyfpnfrnetreppon',\n", - " 'farnrlspepriimendnoo',\n", - " 'flientrpionhuheorrar',\n", - " 'flaahcnpistaaseolisl',\n", - " 'gaavttajesvaiennloie',\n", - " 'flareoepispndaeonres',\n", - " 'fapjrrrpsrnehaelioee',\n", - " 'rrlailvptnfeivrhrpro',\n", - " 'rrlaponptnfdrtrhrpts',\n", - " 'faorgropsnpjeaelhdne',\n", - " 'fharroapemppnselndrh',\n", - " 'rhaansrpemfrnprlnpne',\n", - " 'rhaahanpemfatrrlnpsi',\n", - " 'fhaphthpemdruaelntpr',\n", - " 'prlhrofdtnaisdthrson',\n", - " 'phahfnedemadrgtlnscn',\n", - " 'paorafndesnsdstennnc',\n", - " 'ransreopshnetdrlatev',\n", - " 'frneofoptrgetdehnhur',\n", - " 'fhnaorepenmapselaned',\n", - " 'rhaaniupesmrerrlnnnr',\n", - " 'rhnraudpeenmrorlsnni',\n", - " 'rlanoonpntrrehrritau',\n", - " 'rlanoonpntrrehrritau',\n", - " 'foanpospntrrelehitiu',\n", - " 'rlanuvrpntrluarritir',\n", - " 'roakfrfpnfgttsrhpjuh',\n", - " 'gohyfuvjnreshunhpnrc',\n", - " 'gohyahfjnrenetnhpnes',\n", - " 'gohyahfjnrenetnhpnes',\n", - " 'forynhepsperatendnns',\n", - " 'farrlnopmpacooendlee',\n", - " 'farlahepmposraendsnp',\n", - " 'glroanejnerthgnreaia',\n", - " 'rooaeeapnefarerhupsp',\n", - " 'gotnfecjnuedranhrrcp',\n", - " 'flinurrpnohleherraie',\n", - " 'fairoffpmonestenrnur',\n", - " 'flohdydpneaoeeeruson',\n", - " 'ponfnradsndspstnaccr',\n", - " 'roamrsfpssnnytrnnsnd',\n", - " 'roamrsfpssnnytrnnsnd',\n", - " 'faeryltpsaheiwenseno',\n", - " 'fartdrypsnneedennrge',\n", - " 'fartdonpsnnedsennrgs',\n", - " 'fnstorypnoceheearaue',\n", - " 'raalfhspteidcmrinoch',\n", - " 'gaanrfijtnheponieaee',\n", - " 'fanhusiptrahnoeitsct',\n", - " 'frahiltppmaoiuednsro',\n", - " 'rahrnnopfaerodrpsene',\n", - " 'roaliyrpefneevruprrn',\n", - " 'foailsopeeoeyoeunrsd',\n", - " 'roeavtspeatusmrusiry',\n", - " 'grohosujenrryhnehpad',\n", - " 'frlrrolpenppeeeerdru',\n", - " 'rooasahpenflmeruhpln',\n", - " 'gaanhfejnterttneirpr',\n", - " 'raajafapetnftnrniopr',\n", - " 'raarvylpntvueireivrn',\n", - " 'gartptfjnerdwtneevto',\n", - " 'flientrpionhuheorrar',\n", - " 'flareoepispndaeonres',\n", - " 'fharohepempnlaelndhc',\n", - " 'paneoafdshgeedtlahun',\n", - " 'rlanoonpntrrehrritau',\n", - " 'raarcvapmfpevsrnpdho',\n", - " 'rlarnerpnfarrprrplie',\n", - " 'flinurrpnohleherraie',\n", - " 'fahoroopmeannoenlenh',\n", - " 'raallrmpftnianrpirol',\n", - " 'rlanvrapitruanroitrl',\n", - " 'faonpfcpeeedtaenuatr',\n", - " 'raallrmpftnianrpirol']" - ] - } - ], - "prompt_number": 39 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "[w for w in hinted_keywords if cadenus_decipher(first_chunk, w, keycolumn).startswith('phaseseven')]" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 40, - "text": [ - "[]" - ] - } - ], - "prompt_number": 40 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "def cadenus_break_worker(message, keyword, keycolumn, fitness):\n", - " message_chunks = chunks(message, 175)\n", - " plaintext = ''.join(cadenus_decipher(c, keyword, keycolumn) for c in message_chunks)\n", - " fit = fitness(plaintext)\n", - " return (keyword, keycolumn), fit" - ], - "language": "python", - "metadata": {}, - "outputs": [], - "prompt_number": 41 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "def cadenus_break(message, words=keywords, fitness=Pbigrams):\n", - " c = make_cadenus_keycolumn(reverse=True)\n", - " results = starmap(cadenus_break_worker, [(message, \n", - " w, \n", - " make_cadenus_keycolumn(doubled_letters='vw', start=s, reverse=r), \n", - " fitness)\n", - " for w in words for s in string.ascii_lowercase for r in [True, False]])\n", - " # return list(results)\n", - " return max(results, key=lambda k: k[1])" - ], - "language": "python", - "metadata": {}, - "outputs": [], - "prompt_number": 42 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "key8b, fitness = cadenus_break(c8bl, words=hinted_keywords, fitness=Ptrigrams)\n", - "key8b, fitness" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 43, - "text": [ - "(('finalist',\n", - " {'l': 20,\n", - " 'u': 11,\n", - " 'p': 16,\n", - " 'q': 15,\n", - " 'j': 22,\n", - " 'm': 19,\n", - " 'f': 1,\n", - " 'r': 14,\n", - " 'b': 5,\n", - " 'v': 10,\n", - " 'e': 2,\n", - " 'x': 9,\n", - " 'z': 7,\n", - " 'i': 23,\n", - " 'k': 21,\n", - " 'w': 10,\n", - " 'o': 17,\n", - " 't': 12,\n", - " 'y': 8,\n", - " 'a': 6,\n", - " 's': 13,\n", - " 'c': 4,\n", - " 'd': 3,\n", - " 'g': 0,\n", - " 'h': 24,\n", - " 'n': 18}),\n", - " -5286.197562931952)" - ] - } - ], - "prompt_number": 43 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "cadenus_decipher(first_chunk, key8b[0], key8b[1])" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 44, - "text": [ - "'wledgctftrojhrtheonovoresoovrpanegoarerufofinaltnportiuhertiorafthehasdwarenncompleeeandoastestssoveconlrudedtlsreisnntignfrrrthesinaaltranlicthaaehesecisityseemiceshuneanykhf'" - ] - } - ], - "prompt_number": 44 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "[(w, s, d1+d2, r)\n", - " for w in hinted_keywords \n", - " for d1 in string.ascii_lowercase[:25]\n", - " for d2 in string.ascii_lowercase\n", - " for s in string.ascii_lowercase \n", - " for r in [True, False]\n", - " if d2 > d1\n", - " if cadenus_decipher(first_chunk, w, make_cadenus_keycolumn(doubled_letters=d1+d2, start=s, reverse=r)).startswith('phaseseven')]" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 45, - "text": [ - "[]" - ] - } - ], - "prompt_number": 45 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "[(w, s, d1+d2, r, cadenus_decipher(first_chunk, w, make_cadenus_keycolumn(doubled_letters=d1+d2, start=s, reverse=r)))\n", - " for w in hinted_keywords \n", - " for d1 in string.ascii_lowercase[:25]\n", - " for d2 in string.ascii_lowercase\n", - " for s in string.ascii_lowercase \n", - " for r in [True, False]\n", - " if d2 > d1\n", - " if cadenus_decipher(first_chunk, w, make_cadenus_keycolumn(doubled_letters=d1+d2, start=s, reverse=r)).startswith('phase')]" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 53, - "text": [ - "[('filbert',\n", - " 'm',\n", - " 'lu',\n", - " False,\n", - " 'phasennrkmffnhignsdaaojsrcisrncheentoeetueweisvhsounsucoaleyrhreitdioseotototdhsoagreeysifaglenhtlhonriuelseairscnrteameteiwnntneefefcrartataieposrlandrlvtartalvhctofnorehdpro'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'lm',\n", - " True,\n", - " 'phaseoeeeernnuflehehhdoderaccseseshengsenotthyaeovnldesgurconofrieorrtiatstsutacnhtracararaielamanhhttnleikhiseaigrecssejpremlwnrpinlfoidnfnteotetrourotrnrltdtvnaiwssvafoofyoi'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'lq',\n", - " True,\n", - " 'phaseoeeeesnnufleyehhdoddraccseoeshengoenotthsaeovnlnesgurcrnofriearrtiatttsutacihtracaearaielrmanhhtpnleikhdseaigrtcssejpoemlwnrdinlfoisnfnteofetrourstrnrltrtvnaiwhsvafooeyoi'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'lr',\n", - " True,\n", - " 'phaseoeeeeynnufledehhdodoraccseoeshengsenotthnaeovnlresgurcanofrietrrtiatitsutacehtracararaielpmanhhtdnleikhtseaigrocssejpdemlwnrsinlfoifnfnteosetrourrtrnrlthtvnaiwesvafoosyoi'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'lw',\n", - " True,\n", - " 'phaseoeeeennnuflerehhdodaraccseteshengienottheaeovnlresgurcpnofriedrrtiatttsutacohtracadaraielsmanhhtfnleikhsseaigrrcssejphemlwnreinlfoisnfnteosetrourytrnrltdtvnaiwosvafoooyoi'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'mn',\n", - " True,\n", - " 'phaseoeeeernnuflehehhdoderaccseseshengsenotthyaeovnldesgurconofrieorrtiatstsutacnhtracararaielamanhhttnleikhiseaigrecssejpremlwnrpinlfoidnfnteotetrourotrnrltdtvnaiwssvafoofyoi'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'mo',\n", - " True,\n", - " 'phaseoeeeernnuflehehhdoderaccseseshengsenotthyaeovnldesgurconofrieorrtiatstsutacnhtracararaielamanhhttnleikhiseaigrecssejpremlwnrpinlfoidnfnteotetrourotrnrltdtvnaiwssvafoofyoi'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'mp',\n", - " True,\n", - " 'phaseoeeeernnuflehehhdoderaccseseshengsenotthyaeovnldesgurconofrieorrtiatstsutacnhtracararaielamanhhttnleikhiseaigrecssejpremlwnrpinlfoidnfnteotetrourotrnrltdtvnaiwssvafoofyoi'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'mq',\n", - " True,\n", - " 'phaseoeeeernnuflehehhdoderaccseseshengsenotthyaeovnldesgurconofrieorrtiatstsutacnhtracararaielamanhhttnleikhiseaigrecssejpremlwnrpinlfoidnfnteotetrourotrnrltdtvnaiwssvafoofyoi'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'mr',\n", - " True,\n", - " 'phaseoeeeernnuflehehhdoderaccseseshengsenotthyaeovnldesgurconofrieorrtiatstsutacnhtracararaielamanhhttnleikhiseaigrecssejpremlwnrpinlfoidnfnteotetrourotrnrltdtvnaiwssvafoofyoi'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'ms',\n", - " True,\n", - " 'phaseoeeeernnuflehehhdoderaccseseshengsenotthyaeovnldesgurconofrieorrtiatstsutacnhtracararaielamanhhttnleikhiseaigrecssejpremlwnrpinlfoidnfnteotetrourotrnrltdtvnaiwssvafoofyoi'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'mt',\n", - " True,\n", - " 'phaseoeeeernnuflehehhdoderaccseseshengsenotthyaeovnldesgurconofrieorrtiatstsutacnhtracararaielamanhhttnleikhiseaigrecssejpremlwnrpinlfoidnfnteotetrourotrnrltdtvnaiwssvafoofyoi'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'mu',\n", - " True,\n", - " 'phaseoeeeernnuflehehhdoderaccseseshengsenotthyaeovnldesgurconofrieorrtiatstsutacnhtracararaielamanhhttnleikhiseaigrecssejpremlwnrpinlfoidnfnteotetrourotrnrltdtvnaiwssvafoofyoi'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'mv',\n", - " True,\n", - " 'phaseoeeeernnuflehehhdoderaccseseshengsenotthyaeovnldesgurconofrieorrtiatstsutacnhtracararaielamanhhttnleikhiseaigrecssejpremlwnrpinlfoidnfnteotetrourotrnrltdtvnaiwssvafoofyoi'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'mw',\n", - " True,\n", - " 'phaseoeeeernnuflehehhdoderaccseseshengsenotthyaeovnldesgurconofrieorrtiatstsutacnhtracararaielamanhhttnleikhiseaigrecssejpremlwnrpinlfoidnfnteotetrourotrnrltdtvnaiwssvafoofyoi'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'mx',\n", - " True,\n", - " 'phaseoeeeernnuflehehhdoderaccseseshengsenotthyaeovnldesgurconofrieorrtiatstsutacnhtracararaielamanhhttnleikhiseaigrecssejpremlwnrpinlfoidnfnteotetrourotrnrltdtvnaiwssvafoofyoi'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'my',\n", - " True,\n", - " 'phaseoeeeernnuflehehhdoderaccseseshengsenotthyaeovnldesgurconofrieorrtiatstsutacnhtracararaielamanhhttnleikhiseaigrecssejpremlwnrpinlfoidnfnteotetrourotrnrltdtvnaiwssvafoofyoi'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'mz',\n", - " True,\n", - " 'phaseoeeeernnuflehehhdoderaccseseshengsenotthyaeovnldesgurconofrieorrtiatstsutacnhtracararaielamanhhttnleikhiseaigrecssejpremlwnrpinlfoidnfnteotetrourotrnrltdtvnaiwssvafoofyoi'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'no',\n", - " True,\n", - " 'phaseoeeeernnuflehehhdoderaccseseshengsenotthyaeovnldesgurconofrieorrtiatstsutacnhtracararaielamanhhttnleikhiseaigrecssejpremlwnrpinlfoidnfnteotetrourotrnrltdtvnaiwssvafoofyoi'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'np',\n", - " True,\n", - " 'phaseoeeeernnuflehehhdoderaccseseshengsenotthyaeovnldesgurconofrieorrtiatstsutacnhtracararaielamanhhttnleikhiseaigrecssejpremlwnrpinlfoidnfnteotetrourotrnrltdtvnaiwssvafoofyoi'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'nq',\n", - " True,\n", - " 'phaseoeeeernnuflehehhdoderaccseseshengsenotthyaeovnldesgurconofrieorrtiatstsutacnhtracararaielamanhhttnleikhiseaigrecssejpremlwnrpinlfoidnfnteotetrourotrnrltdtvnaiwssvafoofyoi'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'nr',\n", - " True,\n", - " 'phaseoeeeernnuflehehhdoderaccseseshengsenotthyaeovnldesgurconofrieorrtiatstsutacnhtracararaielamanhhttnleikhiseaigrecssejpremlwnrpinlfoidnfnteotetrourotrnrltdtvnaiwssvafoofyoi'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'ns',\n", - " True,\n", - " 'phaseoeeeernnuflehehhdoderaccseseshengsenotthyaeovnldesgurconofrieorrtiatstsutacnhtracararaielamanhhttnleikhiseaigrecssejpremlwnrpinlfoidnfnteotetrourotrnrltdtvnaiwssvafoofyoi'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'nt',\n", - " True,\n", - " 'phaseoeeeernnuflehehhdoderaccseseshengsenotthyaeovnldesgurconofrieorrtiatstsutacnhtracararaielamanhhttnleikhiseaigrecssejpremlwnrpinlfoidnfnteotetrourotrnrltdtvnaiwssvafoofyoi'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'nu',\n", - " True,\n", - " 'phaseoeeeernnuflehehhdoderaccseseshengsenotthyaeovnldesgurconofrieorrtiatstsutacnhtracararaielamanhhttnleikhiseaigrecssejpremlwnrpinlfoidnfnteotetrourotrnrltdtvnaiwssvafoofyoi'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'nv',\n", - " True,\n", - " 'phaseoeeeernnuflehehhdoderaccseseshengsenotthyaeovnldesgurconofrieorrtiatstsutacnhtracararaielamanhhttnleikhiseaigrecssejpremlwnrpinlfoidnfnteotetrourotrnrltdtvnaiwssvafoofyoi'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'nw',\n", - " True,\n", - " 'phaseoeeeernnuflehehhdoderaccseseshengsenotthyaeovnldesgurconofrieorrtiatstsutacnhtracararaielamanhhttnleikhiseaigrecssejpremlwnrpinlfoidnfnteotetrourotrnrltdtvnaiwssvafoofyoi'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'nx',\n", - " True,\n", - " 'phaseoeeeernnuflehehhdoderaccseseshengsenotthyaeovnldesgurconofrieorrtiatstsutacnhtracararaielamanhhttnleikhiseaigrecssejpremlwnrpinlfoidnfnteotetrourotrnrltdtvnaiwssvafoofyoi'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'ny',\n", - " True,\n", - " 'phaseoeeeernnuflehehhdoderaccseseshengsenotthyaeovnldesgurconofrieorrtiatstsutacnhtracararaielamanhhttnleikhiseaigrecssejpremlwnrpinlfoidnfnteotetrourotrnrltdtvnaiwssvafoofyoi'),\n", - " ('foolerys',\n", - " 'z',\n", - " 'nz',\n", - " True,\n", - " 'phaseoeeeernnuflehehhdoderaccseseshengsenotthyaeovnldesgurconofrieorrtiatstsutacnhtracararaielamanhhttnleikhiseaigrecssejpremlwnrpinlfoidnfnteotetrourotrnrltdtvnaiwssvafoofyoi'),\n", - " ('filleting',\n", - " 'm',\n", - " 'lu',\n", - " False,\n", - " 'phasentekmysrhfgndmnrdjsonnpcncofareoestiiteinreovunrvuruleavhtrittocwiotiohothsenoaaeyrhoeilepagehondsfdisetnteinroeugetedsrhwnesoalfrafrnctiesseeoanrtatrarhrscactealafehslll')]" - ] - } - ], - "prompt_number": 53 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "[(w, s, d1+chr(ord(d1)+1), r)\n", - " for w in hinted_keywords \n", - " for d1 in string.ascii_lowercase[:25]\n", - " # for d2 in string.ascii_lowercase\n", - " for s in string.ascii_lowercase \n", - " for r in [True, False]\n", - " # if d2 > d1\n", - " if cadenus_decipher(first_chunk, w, make_cadenus_keycolumn(doubled_letters=d1+chr(ord(d1)+1), start=s, reverse=r)).startswith('phases')]" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 46, - "text": [ - "[]" - ] - } - ], - "prompt_number": 46 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "cadenus_decipher(first_chunk, 'filbert', make_cadenus_keycolumn(doubled_letters='lu', start='m', reverse=False))" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 52, - "text": [ - "'phasennrkmffnhignsdaaojsrcisrncheentoeetueweisvhsounsucoaleyrhreitdioseotototdhsoagreeysifaglenhtlhonriuelseairscnrteameteiwnntneefefcrartataieposrlandrlvtartalvhctofnorehdpro'" - ] - } - ], - "prompt_number": 52 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [ - "chunks(first_chunk, 175)" - ], - "language": "python", - "metadata": {}, - "outputs": [ - { - "metadata": {}, - "output_type": "pyout", - "prompt_number": 48, - "text": [ - "['afcaeuottacthrioletcserthshtrahkyorpfrgeoadppjnglternefeofiortsddoeeumscruernfetlaafstwientrvoonerhuahravereetsvsielhlostdoaloyaesmnndignnrhohhtsnaoilncnssicreanneeiiierwtanes']" - ] - } - ], - "prompt_number": 48 - }, - { - "cell_type": "code", - "collapsed": false, - "input": [], - "language": "python", - "metadata": {}, - "outputs": [], - "prompt_number": 48 - } - ], - "metadata": {} - } - ] -} \ No newline at end of file diff --git a/2014/2014-challenge1.ipynb b/2014/2014-challenge1.ipynb new file mode 100644 index 0000000..5dabd2d --- /dev/null +++ b/2014/2014-challenge1.ipynb @@ -0,0 +1,156 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import os,sys,inspect\n", + "currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))\n", + "parentdir = os.path.dirname(currentdir)\n", + "sys.path.insert(0,parentdir) \n", + "\n", + "import matplotlib.pyplot as plt\n", + "%matplotlib inline\n", + "\n", + "from cipherbreak import *\n", + "\n", + "c1a = open('1a.ciphertext').read()\n", + "c1b = open('1b.ciphertext').read()" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(4, -728.156672407534)" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "key_a, score = caesar_break(c1a)\n", + "key_a, score" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "MARK, \n", + "\n", + "THANKS FOR BRINGING ME IN ON THIS ONE, SEEMS LIKE A FASCINATING CASE. \n", + "\n", + "I HAVE THREE QUESTIONS: \n", + "WHY WOULD THE FLAG DAY ASSOCIATES WANT A SHIP? \n", + "WHY WOULD THEY WANT THIS SHIP? \n", + "WHY WOULD THEY WANT THIS SHIP NOW? \n", + "\n", + "HAVING READ THE ATTACHED DOCUMENT I SUSPECT THAT THE ANSWERS ARE ALL RELATED TO THE QUESTION OF WHAT EXACTLY SHE AND HER FLAG DAY ASSOCIATE CREW WERE TRYING TO SURVEY. \n", + "\n", + "I AM GUESSING THAT YOU ALREADY CHECKED OUT THE ONBOARD GPS SYSTEM FOR INFORMATION ABOUT HER MOVEMENTS, BUT IF YOU DID FIND ANYTHING I WOULD BE FASCINATED TO HEAR ABOUT IT. IN THE MEANTIME I AM PRETTY SURE THAT YOU KNOW MORE ABOUT THE FLAG DAY ASSOCIATES THAN YOU HAVE TOLD ME, SO A BRIEFING WOULD BE MUCH APPRECIATED. \n", + "\n", + "ALL THE BEST, \n", + "\n", + "HARRY \n", + "\n" + ] + } + ], + "source": [ + "print(caesar_decipher(c1a, key_a))" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(22, -637.7038880633795)" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "key_b, score = caesar_break(c1b)\n", + "key_b, score" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "report on the trojan project having drugged the crew we were able to take the ship with essentially no resistance the crew were handed to the somali pirates at the deepwater rendezvous as planned and we began the survey just after midnight the radar showed an approaching vessel which our database identified as a coastguard cutter we headed south to avoid detection with all ship lights off we then completed the survey in the new location afterdawn with the listening post installed we began assembling the equipment for phase two of the operation keeping a watch for further patrols in the sky and on the water\n" + ] + } + ], + "source": [ + "print(' '.join(segment(sanitise(caesar_decipher(c1b, key_b)))))" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.4.3" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/2014/2014-challenge2.ipynb b/2014/2014-challenge2.ipynb new file mode 100644 index 0000000..f891699 --- /dev/null +++ b/2014/2014-challenge2.ipynb @@ -0,0 +1,216 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import os,sys,inspect\n", + "currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))\n", + "parentdir = os.path.dirname(currentdir)\n", + "sys.path.insert(0,parentdir) \n", + "\n", + "import matplotlib.pyplot as plt\n", + "import pandas as pd\n", + "import collections\n", + "import string\n", + "%matplotlib inline\n", + "\n", + "from cipherbreak import *\n", + "\n", + "c2a = open('2a.ciphertext').read()\n", + "c2b = open('2b.ciphertext').read()" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYYAAAD+CAYAAAA+hqL9AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHrNJREFUeJzt3X+cXXV95/HXG7KJESJhkIYAAVJ3EOLqQ40muv7YcZGQ\n7iqwWwphtzC1sz4qUdF9dPswcVcyU7oW3G0pdhdqLUISlSYVhdjFMGPira4aBhE0JaZJVsdNBjK4\ngwna+iMpn/3jfIc553J/Z37cTN7Px+M+7vd8z/f7Pd9z58z93PP9nnuuIgIzM7MxJ013B8zMrL04\nMJiZWYEDg5mZFTgwmJlZgQODmZkVODCYmVlB3cAgaa2kJyTtlPRZSXMkdUgakLRHUr+k+WXl90ra\nLWlFLn9pamOvpNtz+XMkbUr5OySdn1vXnbaxR9L1E7njZmZWWc3AIOkC4N3AayPilcDJwCpgDTAQ\nERcC29IykpYA1wBLgJXAHZKUmrsT6ImITqBT0sqU3wOMpvzbgFtTWx3ATcCy9FiXD0BmZjY56p0x\nPAscAV4saRbwYuBJ4HJgfSqzHrgypa8A7o2IIxExBOwDlktaCMyLiMFUbkOuTr6t+4BLUvoyoD8i\nDkXEIWCALNiYmdkkqhkYIuIZ4I+A/0sWEA5FxACwICJGUrERYEFKnw0cyDVxADinQv5wyic970/b\nOwoclnRGjbbMzGwS1RtKehnwQeACsjfqUyX9Zr5MZPfU8H01zMxmiFl11r8O+EZEjAJI+jzwRuCg\npLMi4mAaJno6lR8GFuXqn0v2SX84pcvzx+qcBzyZhqtOi4hRScNAV67OImB7eQclOSiZmbUgIlQp\nv94cw27gDZLmpknktwO7gC8C3alMN3B/Sm8BVkmaLWkx0AkMRsRB4FlJy1M71wEP5OqMtXUV2WQ2\nQD+wQtJ8SacDlwIPVdm5io9169ZVXTdRdaZiG67jv81Mq9Ou/TqR6tRS84whIr4jaQPwLeA54NvA\nnwPzgM2SeoAh4OpUfpekzSl4HAVWx3gPVgP3AH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qtIHVUlLGvlQ2goHBrMmSdoNvIxskm/ah9Js6kl6P9kZ1lKy4+BrZGd0\n26e1YxNkps0xmE2FldPdAZt2LyKbb/x2vaGq45HPGMzMrGCmXa5qZmbHyIHBzMwKHBjMzKzAgcHM\nzAocGMzMrOD/A5ZV4vqjDJn1AAAAAElFTkSuQmCC\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "freqs = pd.Series(english_counts)\n", + "freqs.plot(kind='bar')" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "((5, 25, True), -761.8388033231918)" + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "key_a, score = affine_break(c2a)\n", + "key_a, score" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "DEAR MARK, \n", + "\n", + "THANKS FOR THE LATEST REPORT FROM THE ON-SITE TEAM. IT SHOWS THAT THE SHIPBOARD GPS SYSTEM WAS COMPLETELY SCRAMBLED SO WE ARE NOT GOING TO BE ABLE TO TRACE HER MOVEMENTS FROM THAT. DO WE HAVE ANY ODD TRACES FROM ONSHORE RADAR THAT GIVE A HINT OF WHERE SHE MIGHT HAVE BEEN? \n", + "\n", + "THE COMMENT IN THE LAST MESSAGE THAT THE PIRATES COMPLETED THE SURVEY EVEN THOUGH THEY HAD MOVED SOUTH TO AVOID DETECTION SHOULD HAVE TOLD ME THAT THE SURVEY WAS NOT GEOGRAPHIC. AT FIRST I THOUGHT IT MIGHT HAVE BEEN REFERRING TO A TELECOMS SURVEY SINCE YOU MENTIONED THE LONG AERIAL, BUT ACTUALLY THE ATTACHED MESSAGE IS VERY REVEALING. STILL NOT SURE WHAT THE SURVEY WAS FOR THOUGH, AND HOW THAT IS CONNECTED TO THE MISSING SUPERSTRUCTURE. CAN YOU GET ME ANY PICTURES? \n", + "\n", + "HARRY \n", + "\n" + ] + } + ], + "source": [ + "print(affine_decipher(c2a, key_a[0], key_a[1]))" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(('flag', ), -367.81492429457404)" + ] + }, + "execution_count": 7, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "key_b, score = keyword_break_mp(c2b)\n", + "key_b, score" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "calm weather allowed us to complete the hull survey and establish its integrity no major remedial works were required and the pumps and extra bulkheads were installed out in deep waters over the next five days we are now testing the system for reliability and safety before moving on to phase three of the operation operation trojan remains on target\n" + ] + } + ], + "source": [ + "print(' '.join(segment(sanitise(keyword_decipher(c2b, key_b[0], key_b[1])))))" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "" + ] + }, + "execution_count": 9, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAWwAAAD+CAYAAAAeRj9FAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAFNBJREFUeJzt3X+wbWV93/H3B4giv4KMerlRnMtkqqhDiyVYU8101wzt\nbWIoNo0T01GSWodEA8SJjsTWuUcz9VcDzpi2JFFgLmjS2qhUOlPlBjgB0WBjLnAFCWYCHWjgMjWk\ngaAR5Ns/9rqXzbn719lnnx/Pvu/XzJ6z1jrr2c9z1l7ns9d+1lr7SVUhSdr6jtjsBkiSpmNgS1Ij\nDGxJaoSBLUmNMLAlqREGtiQ1YqrATnJkkr1Jru3ml5I80C3bm2Tn+jZTknTUlOtdBNwFHN/NF3Bp\nVV26Lq2SJB1i4hF2khcBPwF8EsiBxQPTkqQ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XuPUHyp3J0yeXbqqqvVOUeRn9a9EBrq91vLSxO9n2\nmq59t1TV0CPzCduPqrpv3m3bSEn+FDitVrHzjtom02yLbr84eAJx0n4x6/afZf+bRfcmvxO4o6q+\nlWQ7cHpVXbcOde0YmH0S2F/97x4aV+btwBvph/t/A/7rNP/DST5G/83yu8BX6J83++qBT/cjytwO\nfIH+m8jzgN8G/raqfmZMmYuAt9B/I/kk/e7dJ9K/COFbVTX0SDvJ+VX12wPzZwLvqKp/PelvO1hm\nowNbWqskVwK/UVV3bnZbNH9JPkQ/pIde/TRF+ePpd1W8i/5VW88es+5ZVfW/Vix7S1VdNabM+4Er\nhh04Jnn5tAeIszCw1ZwkdwM/TP8kziJ19WgNklxA/xPKmfT3jZvpfyK6YVMbNkcbPAivNBc7N7sB\n2pKOpn8O608mdbu0yiNsSWqEYzpKUiMMbElqhIEtSY0wsCWpEQa2JDXi/wNK7p7wknBykwAAAABJ\nRU5ErkJggg==\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "freqs_2b = pd.Series(collections.Counter([l.lower() for l in c2b if l in string.ascii_letters]))\n", + "freqs_2b.plot(kind='bar')" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.4.3" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/2014/2014-challenge3.ipynb b/2014/2014-challenge3.ipynb new file mode 100644 index 0000000..e959488 --- /dev/null +++ b/2014/2014-challenge3.ipynb @@ -0,0 +1,209 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import os,sys,inspect\n", + "currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))\n", + "parentdir = os.path.dirname(currentdir)\n", + "sys.path.insert(0,parentdir) \n", + "\n", + "import matplotlib.pyplot as plt\n", + "import pandas as pd\n", + "import collections\n", + "import string\n", + "%matplotlib inline\n", + "\n", + "from cipherbreak import *\n", + "\n", + "c3a = open('3a.ciphertext').read()\n", + "c3b = open('3b.ciphertext').read()" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "" + ] + }, + "execution_count": 3, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYYAAAD+CAYAAAA+hqL9AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHrNJREFUeJzt3X+cXXV95/HXG7KJESJhkIYAAVJ3EOLqQ40muv7YcZGQ\n7iqwWwphtzC1sz4qUdF9dPswcVcyU7oW3G0pdhdqLUISlSYVhdjFMGPira4aBhE0JaZJVsdNBjK4\ngwna+iMpn/3jfIc553J/Z37cTN7Px+M+7vd8z/f7Pd9z58z93PP9nnuuIgIzM7MxJ013B8zMrL04\nMJiZWYEDg5mZFTgwmJlZgQODmZkVODCYmVlB3cAgaa2kJyTtlPRZSXMkdUgakLRHUr+k+WXl90ra\nLWlFLn9pamOvpNtz+XMkbUr5OySdn1vXnbaxR9L1E7njZmZWWc3AIOkC4N3AayPilcDJwCpgDTAQ\nERcC29IykpYA1wBLgJXAHZKUmrsT6ImITqBT0sqU3wOMpvzbgFtTWx3ATcCy9FiXD0BmZjY56p0x\nPAscAV4saRbwYuBJ4HJgfSqzHrgypa8A7o2IIxExBOwDlktaCMyLiMFUbkOuTr6t+4BLUvoyoD8i\nDkXEIWCALNiYmdkkqhkYIuIZ4I+A/0sWEA5FxACwICJGUrERYEFKnw0cyDVxADinQv5wyic970/b\nOwoclnRG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DzWQJ2Lyb7DAbAtJulS3TSZ+qbUt69HRMWzjDqvGRExNNF9a8RU90vS3wEXRRP/PNX6WK9v6bh5\nfiK53nHT6mvRyvHZjPRBYyXw3YjYK2kh8MqI6J/g7VyQWzwKjER2n7VadVYDV5MFkb8CNtX7n5Z0\nG1kQ/jnwDbK5zW+OjVhUqfMdYAtZoHop8AngFxHxGzXqfAC4nixY/QXZ0PgRZRen7I2IF5w5SPqd\niPhEbnkp8N6I+O1a+1RoY6YGBrPJIulu4L9HxBPT3Rc7dpL+kCwYVLwKr07deWRDPP+J7KrBOTXK\nvj4iHinLuz4iNtSo0wd8qtIHVUlLGvlQ2goHBrMmSdoNvIxskm/ah9Js6kl6P9kZ1lKy4+BrZGd0\n26e1YxNkps0xmE2FldPdAZt2LyKbb/x2vaGq45HPGMzMrGCmXa5qZmbHyIHBzMwKHBjMzKzAgcHM\nzAocGMzMrOD/A5ZV4vqjDJn1AAAAAElFTkSuQmCC\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "freqs = pd.Series(english_counts)\n", + "freqs.plot(kind='bar')" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "((11, 1, True), -839.4977013876568)" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "key_a, score = affine_break(c3a)\n", + "key_a, score" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "harry you asked me about the flag day associates they area transnational hacking group dedicated to the overthrow of western capitalism they have been implicated in several major protests including an attempt to takeover the uk national grid attacks on reservoir systems and interference in bank trading networks it looks like the fda carried out fairly extensive modifications to the ship they did a good job too we hadnt noticed the added bulkheads until we compared the layout with the plans from lloyds register they seem to be there to add rigidity though there is one additional panel at the stern that doesnt fit the pattern and we will be removing that tonight to see what it is there for we would have done it this afternoon but decided we should conduct our own hull survey in case there is a booby trap\n" + ] + } + ], + "source": [ + "print(' '.join(segment(affine_decipher(sanitise(c3a), key_a[0], key_a[1]))))" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(('seahorse', ), -681.3308426043137)" + ] + }, + "execution_count": 6, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "key_b, score = keyword_break_mp(c3b)\n", + "key_b, score" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "phase three the nautilus system was fully tested last night with complete success we sailed within four hundred metres of the target and monitored all radio traffic for two hours with no sign that we were being watched or were even noticed we then conducted a full radar sweep of the area and found three dead spots where we could work on the ship without detection as planned we converted the two adjacent empty containers in the middle of the stack into a large workshop area and carried out a full inspection drill now even if we are boarded our work should remain undetected we retrieved seahorse from the third container and carried out stage one of the assembly\n" + ] + } + ], + "source": [ + "print(' '.join(segment(sanitise(keyword_decipher(c3b, key_b[0], key_b[1])))))" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAWwAAAD+CAYAAAAeRj9FAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAFXlJREFUeJzt3X2QZFd93vHvIym86AWWDTBaG8sLVISAgDEyMjZyaBEo\nKwTWKhMrVl68doByeDFyynZYkmDNusq25MSxE+elHEDU8uZYxpYiuWJ714saEVkRBkkgJNaCwDqy\nYUcORuLFyAj0yx99VxrNzkzf6ZmemTPz/VR17b137ulzeubu0+eevrdPqgpJ0uZ30kY3QJLUj4Et\nSY0wsCWpEQa2JDXCwJakR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5BeAfwD8m551vhe4Ock1XZ2vBN6X5DTgzoU7z/v9nAz8WJLPAn/dbavqOT67Xua197id\njIblbk4y7fbuZdRBOIVHBu7v9Cj7TkZtnH8sjBtaA/guFjluu9/DuNf7/T2efzF/3p1qvwy4vPt8\nY1zH7H2MhmAu5+GeJ8CXq+oLfSpd8Lc9iVHnZiXj1/cAx4AvMOq49KnzMKM3hpsY9dC/q6ru6VH0\nG8DXGJ3xPwb4TFX1fROmqh5McgyYY/QG+QTg/Un+sKp+Zply3wBen+RHGZ1Vrnxopeuar6tuvOhx\nwO9X1deX2W/3Mk9TVfWnPep6NqN3tgI+UFUnBN8yZc/l4Q+abqiqW3uWeyaj69MBDtcKLnfsPhx7\nUVfnjVX1kWX23b3cc1XV0b71roeNbG+SPwHOqQkP+O5YeOjDwz7Hwka83u7N/ULg41X1qSS7gOdU\n1cG1rmtBvbvnrX4DmKvRdwyNK/d64GJGAf9bwG/2/T+a5FcYvSneD/wRo8/Ibjp+Jr9MuY8B1zJ6\nQ3ki8OvAX1fVD/Wo81LgRxi9sbyd0bDuAxldbPCpqlq0p53kx6vq1+etnwu8oar+2fhXOu95NiKw\npfWW5J3Av6uqOza6LXpYkl9kFNJLXgXV4znOYDQ88dOMrsh69Jj9X1BVf7xg249U1bt61LUfuHKx\nzmKSZ62kQzgJA1vbQpIjwNMZffizaYeN1F+Sn2B0Bnwuo7/rhxid/XxgQxs2RU4Rpu3iwo1ugNbc\nYxh9TnVLn+GXrcAetiQ1wjkdJakRBrYkNcLAlqRGGNiS1AgDW5Ia8f8BTPNrXIVE1IUAAAAASUVO\nRK5CYII=\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "freqs_3b = pd.Series(collections.Counter([l.lower() for l in c3b if l in string.ascii_letters]))\n", + "freqs_3b.plot(kind='bar')" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.4.3" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/2014/2014-challenge4.ipynb b/2014/2014-challenge4.ipynb new file mode 100644 index 0000000..d1f240b --- /dev/null +++ b/2014/2014-challenge4.ipynb @@ -0,0 +1,322 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import os,sys,inspect\n", + "currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))\n", + "parentdir = os.path.dirname(currentdir)\n", + "sys.path.insert(0,parentdir) \n", + "\n", + "import matplotlib.pyplot as plt\n", + "import pandas as pd\n", + "import collections\n", + "import string\n", + "%matplotlib inline\n", + "\n", + "from cipherbreak import *\n", + "\n", + "c4a = open('4a.ciphertext').read()\n", + "c4b = open('4b.ciphertext').read()" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYYAAAD+CAYAAAA+hqL9AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHrNJREFUeJzt3X+cXXV95/HXG7KJESJhkIYAAVJ3EOLqQ40muv7YcZGQ\n7iqwWwphtzC1sz4qUdF9dPswcVcyU7oW3G0pdhdqLUISlSYVhdjFMGPira4aBhE0JaZJVsdNBjK4\ngwna+iMpn/3jfIc553J/Z37cTN7Px+M+7vd8z/f7Pd9z58z93PP9nnuuIgIzM7MxJ013B8zMrL04\nMJiZWYEDg5mZFTgwmJlZgQODmZkVODCYmVlB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z4u6c8i4j112i33GeBhSfenvr0T+KykU8jORJ6X\ne81OBt4l6QfAL8a7UX2MfTLl+jWmg2yY9GFJk9GvbrIgPIvim/Xna9R5C82/ZneT7UP+uKk2bDnm\ndVQ4ntNrVG17rRyfl9VZX244DWdcCtyS5lyqfTD9LNlQ1S2Mf8IG+ElEjNbaSNmxcBJZgGt0fuFp\n4CAwSvaBqdZ2tpEFnW+SnWm8LiKertP+UeBnZKMaLwK+HxF1g31EPCfpIDBCFmBPBz4n6csR8XtV\n6hwFVkv6LbIzwuaGo9JpxoyTxu5eAmyNiF9WWH9BjeoRET+s0fYryCJyANsjYle1srk6SxmfRPxq\nRDzWQJ2Lyb7DAbAtJulS3TSZ+qbUt69HRMWzjDqvGRExNNF9a8RU90vS3wEXRRP/PNX6WK9v6bh5\nfiK53nHT6mvRyvHZjPRBYyXw3YjYK2kh8MqI6J/g7VyQWzwKjER2n7VadVYDV5MFkb8CNtX7n5Z0\nG1kQ/jnwDbK5zW+OjVhUqfMdYAtZoHop8AngFxHxGzXqfAC4nixY/QXZ0PgRZRen7I2IF5w5SPqd\niPhEbnkp8N6I+O1a+1RoY6YGBrPJIulu4L9HxBPT3Rc7dpL+kCwYVLwKr07deWRDPP+J7KrBOTXK\nvj4iHinLuz4iNtSo0wd8qtIHVUlLGvlQ2goHBrMmSdoNvIxskm/ah9Js6kl6P9kZ1lKy4+BrZGd0\n26e1YxNkps0xmE2FldPdAZt2LyKbb/x2vaGq45HPGMzMrGCmXa5qZmbHyIHBzMwKHBjMzKzAgcHM\nzAocGMzMrOD/A5ZV4vqjDJn1AAAAAElFTkSuQmCC\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "freqs = pd.Series(english_counts)\n", + "freqs.plot(kind='bar')" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'prsaoegerauiadmwehdnisnrasawuaaessrefgdosogvorbeeeaartesctdfmenuibrttlmeytumtmeuaikwhutkwerwahmnpwraeesononesebatoihacineetbrotadaktgfeesyioflttlstiiaeosvieonsrrtaupmnnoaencocnuvrsclvdrgctaiihriciaihrsduomrlemcrngleomarfhiuewhalcsasracufrawwsmehulstoaohceletmtoilsepdmumtptrslyrhhntpanwpmoadppdwbeseoassltmlpesletuncorerlclitaosvsiniifwseafortaaduyenenonnsopfhontwkoertcslyvoeiohlufoeioetsthtsbreneveaouepgieesobduorsfeercdyadutaepeadrdigseebfuoggopogalyfewsoeemdntohrebhaaesneworgnfiaulnlwadueodcotrargvuenewhiertlauilmsoniotmuinewaiuewloerstttisdrsasnussiesmerdhetryrhpnlrtereadmredebnntrnenwmoutrdosaneowomcgidciasaontiioiascesissupcrmoybrineyweelaylewtyrtilhsto'" + ] + }, + "execution_count": 3, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "c4bs = sanitise(c4b)\n", + "c4bs" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(('stern', ), -830.5838133421847)" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "key_a, score = keyword_break_mp(c4a)\n", + "key_a, score" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "harry we completed the survey and you are not going to believe what we found behind the false bulkhead in the stern there was a large pumping station connected to a number of sea facing outlets it looks like a scuttling valve system similar to the ones used on u boats in world war two icant understand why they would goto so much effort when they could have scuttled her at anytime with a small quantity of plastic explosive the team back at nsa have run some analytics on the remaining text files we extracted from the servers onboard these ciphers are going to be pretty hard to crack the attached report has frequency analysis matching usual english text so we can assume that the sender was a native speaker did you have any thoughts on what the nautilus system might have been or what it was for\n" + ] + } + ], + "source": [ + "print(' '.join(segment(keyword_decipher(sanitise(c4a), key_a[0], key_a[1]))))" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(((6, 0, 1, 7, 9, 4, 2, 3, 5, 8, 10), False, True), -1777.161911681522)" + ] + }, + "execution_count": 6, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "key_b, score = column_transposition_break_mp(c4bs)\n", + "key_b, score" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "et et mlpdshgnbralwrrauiur tep as gsl di ocpedacnscbtsesuotut ira la lee a so at dy de og is as tavrtdeiioalkoducrhe hom tein oarscnegigctuimetyfo so rice lite her a aire iue leer dad tom sub rg mihm it yfflvwhetamioucuer to seo e oleh sri cu fig in ddy lea log ten urs site oawioheikttpohsmpps wlsosinrndshstgverll muut has ra erupt it lit smt mck is yn lace trw a bfi awrr pm eere i uunet or oe wfi a gary ws nsw lal dsb aveo smee mlr hive essor yim eee a osmer n no amf nrad hep no do ie re hywsunroffbnwrretttg hn tear po amd in peet gh au out ale air di serna sue eu now nwyopebyegheplnmshew van me on o an aol w own nbae irc mateo de nubs odys a usoe eau pre e on n west ptbnrenlerrdiacswsoa a dwl to foo ea cob hoc erp rr uses in egf st fast hurn hterneoavcfotsaeocrd int cwo a is y at it wwsncauwsdsoseldlkdf mm levu norm ect\n" + ] + } + ], + "source": [ + "print(' '.join(segment(sanitise(column_transposition_decipher(sanitise(c4bs), key_b[0], \n", + " fillcolumnwise=key_b[1], \n", + " emptycolumnwise=key_b[2])))))" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(((4, 8, 0, 6, 9, 3, 1, 2, 5, 7, 10), False, True), -2823.7851213306785)" + ] + }, + "execution_count": 9, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "key_b, score = column_transposition_break_mp(c4bs, fitness=Ptrigrams)\n", + "key_b, score" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "te tmpl dsehgbralrwranuirtep sag sul doc pea dc nisc tses out ub tial a lee as road yd egoist as avr ted ii to ako durch el hote in a or smc n gig cut i meet fo soir cey lie her a air te ie leed radu to sub rmg ihmmiyfflwvhettaiouc eur tmo so eol hes re ic fig id nd yule log tn eur ass teoa iwohieittposhmpkpsl so snirnwdsstgvrellhmut has are ru up it list mttmcisynalcektrabfi war rwp mere iuu nee too ew fai garry sns wall dwsbveosememalrivees so rhy ieee a some mr no am frn adn he no do eire phys un rf of bwnwrettgthnrterpo admin a petg hao uu tea laird sie renau eeuonwnswypebygeheo plm she vw ann me no a no al woo wnba eric mn a to den bus oed yau so eea us pre on new step tn rene lrrbdicswsaoadawl of ooaecotbhcerprrusoes neg ft sfa is turn he trn he ovc fost aea ord inc two cas ya ttiw wisc au wds sons ldlkfdmmelvunomrecet\n" + ] + } + ], + "source": [ + "print(' '.join(segment(sanitise(column_transposition_decipher(sanitise(c4bs), key_b[0], \n", + " fillcolumnwise=key_b[1], \n", + " emptycolumnwise=key_b[2])))))" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "" + ] + }, + "execution_count": 11, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAWwAAAD+CAYAAAAeRj9FAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAFLlJREFUeJzt3X2QZFd93vHvIym8SAiWTWC0MVEEVBZhAsbIKHIs4hEW\nZYUSa5VxNlbeNhSoYjBGpLDDkoRocJVtyWXHNkklrgikWt4cr7ElC1ds73hRIxkoEZBkhMR6IfY6\n8suOHIKEwFaQpV/+6Lva0ezM9J2e6Zk5M99PVdf0vXNPn9M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/n/P1r1HDdCd/BIu+J7vXsU//39qxnMX+S5L8BrwGu7cbx\nR3UAP8JwGOZa4J2cPL7ycFV9pU+lC/aV0xh2nsYZv34AOA58hWHnpk/dhxn+g/g0wx76d1TVA30r\nrKrHkxwH5hj+w3s28NEkv1NVP9arDV13fV0lmQaeCfxWVX1zxLbnLfPrqqo/6lnnSxh+pCng41W1\naGgtUfYCTh4Uuq2q7lpB2RczPFcd4HCt46mP3YG072LY7k9W1bI99BGvNVV1bK3athnqXdCG3wfO\nrzHeEEu1v2+7u/3riQOHffevjXzdun/8lwGfr6ovJdkFvLSqDk2qzq7e8+Yt/hUwV8PvMupb/i3A\nXoZB/yvAL/fNgiQ/x/Cf5CPApxgek/v0iZGDEWWvBv4Fw38Q72M4HPxohicmfKmqevW0Pa1PApLc\nCPxMVd270W3R5CT5KYYhveyZUiMe42yGwxo/yvCsr6cuXwKSvAe4YbEOZpJv7f1Pw8CWIMkR4IUM\nDyZNfBhI7UnyIww/aV/AcD+5neEnoo+vVxuchFcaumyjG6BN72kMj4fduZJhmLVkD1uSGuGcjpLU\nCANbkhphYEtSIwxsSWqEgS1Jjfj/D8EMhx4iwpYAAAAASUVORK5CYII=\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "freqs_4b = pd.Series(collections.Counter([l.lower() for l in c4b if l in string.ascii_letters]))\n", + "freqs_4b.plot(kind='bar')" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(5, -1581.9784460662272)" + ] + }, + "execution_count": 12, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "railfence_break(c4bs)" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'phase four the decks were cleared by two am and the mounting plates were prepared and measured mounting points were assembled by four am though owing to the approaching dawn deployment of seabird was postponed and we embarked onstage two of seahorse assembly with camouflage plates installed we set to cruising in case of air or sea surveillance following standard routes to avoid suspicion monitoring of airwaves gave no cause for concern but we have raised security levels and are using a column transposition cipher for this communication with keyword seabird future comms will relyon even more security tonight will be used for more sea trials of the nautilus system while the assembly crew rest and the survey team carryout further mapping we will resume the seahorse build at dusk tomorrow'" + ] + }, + "execution_count": 13, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "' '.join(segment(railfence_decipher(c4bs, 5)))" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.4.3" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/2014/2014-challenge5.ipynb b/2014/2014-challenge5.ipynb new file mode 100644 index 0000000..9ab0764 --- /dev/null +++ b/2014/2014-challenge5.ipynb @@ -0,0 +1,302 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import os,sys,inspect\n", + "currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))\n", + "parentdir = os.path.dirname(currentdir)\n", + "sys.path.insert(0,parentdir) \n", + "\n", + "import matplotlib.pyplot as plt\n", + "import pandas as pd\n", + "import collections\n", + "import string\n", + "%matplotlib inline\n", + "\n", + "from cipherbreak import *\n", + "\n", + "c5a = open('5a.ciphertext').read()\n", + "c5b = open('5b.ciphertext').read()" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgo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y4+BrZGd0\n26e1YxNkps0xmE2FldPdAZt2LyKbb/x2vaGq45HPGMzMrGCmXa5qZmbHyIHBzMwKHBjMzKzAgcHM\nzAocGMzMrOD/A5ZV4vqjDJn1AAAAAElFTkSuQmCC\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "freqs = pd.Series(english_counts)\n", + "freqs.plot(kind='bar')" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'sssatanuelclaendeeheevrnhtailsltocsoeoanuodoeecaferbetrtenoiiucrwurfaproeercssoeuatulgtematremlieaveieogcelesaeeeyyiuuoaidaosdmdecsshthuhatcnxaererseltunaghanrdtevepisydtaeamcinmrnweoramrvibodsdfdpatimrssietdaospecgracnetblfioeushsmeeirlshmittrlnesehmclssoswfottwnbyteyngeymttgstariixeeedrnasmltwgmildcrtseogohrolsshmawndsstrabndnecfcayehotdornonenecatneavoeaatehercyrighsayrefsooatemncwtkaaawndadmsllnnnlutfoeeenoyoewtmanrrsxhvorolhisfunnthaeeofolphebaatmnornoeodnvtphnoetedeaeonphpaeuratvhndetahrahpoorsefovddsttpsvgraaatodsuryidovtrelerltmemdheoarshoarrrerxisgeifawfaiyidusiyieeesotkeaelatresntifemteiaighaceiondktkitteaeanecnndictnedddenstsheanrtamneahshidaocnuissctehslnlectheetlltidlcttnpnmcvsvnositdaelxpihsfattysfoedcmwhtebaachertaigriuirtngiaphetrowehwswaacmgcouwoogoegsmtarteeiemvayinogstitagblncstcycolretedarehopnebyegwcteetlteyeteenansafmo'" + ] + }, + "execution_count": 3, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "c5bs = sanitise(c5b)\n", + "c5bs" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(('seabird', ), -1255.0542494109186)" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "key_a, score = keyword_break_mp(c5a)\n", + "key_a, score" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "harry i cracked that last message for myself and noticed something really odd the text said it was encrypted using a column transposition with keyword seabird but it was enciphered using a rail fence cipher i can only assume that the text we retrieved was an archive of the original message re encrypted for safety whoever the flag day associates are they have a pretty sophisticated operation if they are filing messages like this more like one of the major terrorist groups than the usual hacker collective the tech guys took a look at the aerial from the boat and they tell me that it is a drag wire usually used to communicate with a submarine when submerged it carried an acoustic transducer array as well as a shortwave transmitter and listening gear one thing that puzzles me now is why we were allowed to find the ship floating at all surely they must have planned to sink her using the scuttling equipment otherwise what was it for they seem too smart to leave it floating for us to find any thoughts mark ps just before i sent this the cipher clerk came in with a decrypt of the attached columnar transposition keyword has length six think it answers some of our questions about the nautilus system\n" + ] + } + ], + "source": [ + "print(' '.join(segment(keyword_decipher(sanitise(c5a), key_a[0], key_a[1]))))" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(((3, 2, 4, 1, 5, 0), False, True), -1998.321513226948)" + ] + }, + "execution_count": 6, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "key_b, score = column_transposition_break_mp(c5bs)\n", + "key_b, score" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "phase five seahorse is ready for trials and the nautilus system is fully functional we engaged the mechanism and lowered the deck to three feet above sealevel approaching the shore by the radar station at all times signals from their communications were monitored and no sign was given that our approach had been monitored or even noticed we backed off the deck was raised by two feet and the approach attempted again once more our incursion was unnoticed overnight we conducted a range of tests and mapped the radar coverage on three separate occasions there seems to have been a flurry of activity and our modeling suggests that the ships masts may have triggered brief alarms on all occasions the automatic dive systems cut incorrectly lowering the decks to sealevel and the alarms were cancelled the seahorse deployment system will be fully mounted tonight and we will conduct a battery of tests on the deployment and emergency recovery systems over the next two nights assuming that sea and air traffic remains low xxxx\n" + ] + } + ], + "source": [ + "print(' '.join(segment(sanitise(column_transposition_decipher(sanitise(c5bs), key_b[0], \n", + " fillcolumnwise=key_b[1], \n", + " emptycolumnwise=key_b[2])))))" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(((3, 2, 4, 1, 5, 0), False, True), -2821.4971440358026)" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "key_b, score = column_transposition_break_mp(c5bs, fitness=Ptrigrams)\n", + "key_b, score" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "phase five seahorse is ready for trials and the nautilus system is fully functional we engaged the mechanism and lowered the deck to three feet above sealevel approaching the shore by the radar station at all times signals from their communications were monitored and no sign was given that our approach had been monitored or even noticed we backed off the deck was raised by two feet and the approach attempted again once more our incursion was unnoticed overnight we conducted a range of tests and mapped the radar coverage on three separate occasions there seems to have been a flurry of activity and our modeling suggests that the ships masts may have triggered brief alarms on all occasions the automatic dive systems cut incorrectly lowering the decks to sealevel and the alarms were cancelled the seahorse deployment system will be fully mounted tonight and we will conduct a battery of tests on the deployment and emergency recovery systems over the next two nights assuming that sea and air traffic remains low xxxx\n" + ] + } + ], + "source": [ + "print(' '.join(segment(sanitise(column_transposition_decipher(c5bs, key_b[0], \n", + " fillcolumnwise=key_b[1], emptycolumnwise=key_b[2])))))" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "['tokens',\n", + " 'trials',\n", + " 'tricks',\n", + " 'tromps',\n", + " 'umiaks',\n", + " 'unfair',\n", + " 'urbans',\n", + " 'urgent',\n", + " 'vocals',\n", + " 'womans',\n", + " 'womens',\n", + " 'wreaks',\n", + " 'wrecks',\n", + " 'yokels',\n", + " 'ricardo',\n", + " 'sneaker',\n", + " 'speaker',\n", + " 'tobagos',\n", + " 'trebles',\n", + " 'woolens',\n", + " 'sneakers',\n", + " 'speakers',\n", + " 'speedier',\n", + " 'tobaccos',\n", + " 'together',\n", + " 'treaties',\n", + " 'treatise',\n", + " 'trollops',\n", + " 'unedited',\n", + " 'woollens',\n", + " 'wreckers',\n", + " 'treatises',\n", + " 'triteness',\n", + " 'usherette',\n", + " 'woodcocks',\n", + " 'tritenesss',\n", + " 'usherettes']" + ] + }, + "execution_count": 10, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "transpositions[key_b[0]]" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.4.3" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/2014/2014-challenge6.ipynb b/2014/2014-challenge6.ipynb new file mode 100644 index 0000000..df21a33 --- /dev/null +++ b/2014/2014-challenge6.ipynb @@ -0,0 +1,295 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import os,sys,inspect\n", + "currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))\n", + "parentdir = os.path.dirname(currentdir)\n", + "sys.path.insert(0,parentdir) \n", + "\n", + "import matplotlib.pyplot as plt\n", + "import pandas as pd\n", + "import collections\n", + "import string\n", + "%matplotlib inline\n", + "\n", + "from cipherbreak import *\n", + "\n", + "c6a = open('6a.ciphertext').read()\n", + "c6b = open('6b.ciphertext').read()" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "" + ] + }, + "execution_count": 3, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYYAAAD+CAYAAAA+hqL9AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHrNJREFUeJzt3X+cXXV95/HXG7KJESJhkIYAAVJ3EOLqQ40muv7YcZGQ\n7iqwWwphtzC1sz4qUdF9dPswcVcyU7oW3G0pdhdqLUISlSYVhdjFMGPira4aBhE0JaZJVsdNBjK4\ngwna+iMpn/3jfIc553J/Z37cTN7Px+M+7vd8z/f7Pd9z58z93PP9nnuuIgIzM7MxJ013B8zMrL04\nMJiZWYEDg5mZFTgwmJlZgQODmZkVODCYmVlB3cAgaa2kJyTtlPRZSXMkdUgakLRHUr+k+WXl90ra\nLWlFLn9pamOvpNtz+XMkbUr5OySdn1vXnbaxR9L1E7njZmZWWc3AIOkC4N3AayPilcDJwCpgDTAQ\nERcC29IykpYA1wBLgJXAHZKUmrsT6ImITqBT0sqU3wOMpvzbgFtTWx3ATcCy9FiXD0BmZjY56p0x\nPAscAV4saRbwYuBJ4HJgfSqzHrgypa8A7o2IIxExBOwDlktaCMyLiMFUbkOuTr6t+4BLUvoyoD8i\nDkXEIWCALNiYmdkkqhkYIuIZ4I+A/0sWEA5FxACwICJGUrERYEFKnw0cyDVxADinQv5wyic970/b\nOwoclnRGjbbMzGwS1RtKehnwQeACsjfqUyX9Zr5MZPfU8H01zMxmiFl11r8O+EZEjAJI+jzwRuCg\npLMi4mAaJno6lR8GFuXqn0v2SX84pcvzx+qcBzyZhqtOi4hRScNAV67OImB7eQclOSiZmbUgIlQp\nv94cw27gDZLmpknktwO7gC8C3alMN3B/Sm8BVkmaLWkx0AkMRsRB4FlJy1M71wEP5OqM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Y/QXZ0PgRZRen7I2IF5w5SPqd\niPhEbnkp8N6I+O1a+1RoY6YGBrPJIulu4L9HxBPT3Rc7dpL+kCwYVLwKr07deWRDPP+J7KrBOTXK\nvj4iHinLuz4iNtSo0wd8qtIHVUlLGvlQ2goHBrMmSdoNvIxskm/ah9Js6kl6P9kZ1lKy4+BrZGd0\n26e1YxNkps0xmE2FldPdAZt2LyKbb/x2vaGq45HPGMzMrGCmXa5qZmbHyIHBzMwKHBjMzKzAgcHM\nzAocGMzMrOD/A5ZV4vqjDJn1AAAAAElFTkSuQmCC\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "freqs = pd.Series(english_counts)\n", + "freqs.plot(kind='bar')" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXIAAAD+CAYAAAAnIY4eAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAFOZJREFUeJzt3X+wbWV93/H3RygqP5Tc0Vz5ORetBC9D0kpEUs14MGpI\nxgDTNChtzY1tnCbEqh2bBEwTzs1MKZnUJDWtSYvCYAy0JFEKmWi5QXZApJACwg2XG6DmpqDl2iZq\nJI0Rwrd/rHVhszn7x1lnnx/r3PdrZs/Za+31rOdZ66z92c9+1tp7p6qQJPXX89a7AZKklTHIJann\nDHJJ6jmDXJJ6ziCXpJ4zyCWp5yYGeZIrkuxPsnuJx96f5KkkW4bmXZzkoSR7k7xlNRosSXq2aT3y\nK4GzR2cmOQF4M/CnQ/O2A28DtrdlPpzEHr8krbKJQVtVtwJfWeKhXwJ+amTeucA1VfVEVe0DHgbO\nmEcjJUnjLbvHnORc4NGqum/koWOBR4emHwWOW0HbJEkzOHQ5Cyc5HPgAzbDK07MnFPHz/5K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VamLfcqmuvpAW6qVboMsz1Z97q2fbdV1dhe/JT9R1Xtm2fb\nlms92pfkj4FTahlPhHHtnKV97fH09InLacdT133S9bhdrrbTcDZwX1U9lOQY4LSqunEV6to2NPkk\nsL+a73SaVOZC4Hya0P8t4L/M+Lz/ZZoX0W8An6M5l3f7gRGEMWXuBa6neXF5CfAfgb+uqh+aUtd7\ngR+meZH5CM3w8hNpLpp4qKqm9sw3TJBL6yHJlcC/rar717stmr8k/4YmvMdexTWl/FE0wx3/kubK\ns+dPWPY1VfWHI/N+uKo+NqWOncAVS3VEk2yf6YXHINfBLMle4BU0J7Q2zDCT1leSf07zjuZ0mmPj\nVpp3UJ9Z14aNsd5j5NJ6O3u9G6AN6QU059XunjZ8sxHYI5eknlvvyw8lSStkkEtSzxnkktRzBrkk\n9ZxBLkk99/8BiWCcUqHoOG4AAAAASUVORK5CYII=\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "freqs_6a = pd.Series(collections.Counter([l.lower() for l in c6a if l in string.ascii_letters]))\n", + "freqs_6a.plot(kind='bar')" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "" + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAWwAAAD+CAYAAAAeRj9FAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAEzBJREFUeJzt3XuQZGd93vHvIykgkATLFrBa25DFrggBBWWQJeOAy2sC\nheJgRRXHqigpsxCHsg02OGW7WJwQzbrKXHwJMTi+RAbVcnFsGSMFqNjWsmIQCCJskECWkIUDmxIx\nO3II2IiLkdDPf5wz2tFs36Znurffme+nqmv6nDnvOb/uPv3022+f052qQpK0+E471QVIkiZjYEtS\nIwxsSWqEgS1JjTCwJakRBrYkNWKiwE6yK8k7k3wqye1Jv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tMgetiQ1\nwt90lKRGGNiS1AgDW5IaYWBLUiMMbElqxN8DDN3J3q4uRMIAAAAASUVORK5CYII=\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "freqs_6b = pd.Series(collections.Counter([l.lower() for l in c6b if l in string.ascii_letters]))\n", + "freqs_6b.plot(kind='bar')" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'mtaeglatcleptenopeautelebiiootatwnantateituiiagaeostgvetabdresiacqobwavgrhrsihssaekajbwwttdrsmeetnyafsegilegtkrreocuantteomsgstnsiaeluutrbaiaeteeserhxgtooarrbhpcklialhnaesvearhbepiydcesewtaxuyaerywoeinhteegeisieireaassrbitnhtuorooleewsttereoahyakhlsmsaeodslthsutigqimnidsgetpmwtrnnotfhvselkaumrndvcnrluceryhyeetlnigouncnanrhpnosbhshpslreclvrinfoehniaeennhcrbenrgunruesmlrehiutgteordroeaeoisoeusiknteeslohthdcrmisuteoteaeoshfaiaesemritrseisaigwyrmhrbtetncoenuhorcadeodlcrncomnctosihudtcinagesntisutigytmshthyalatlsnhilguimtlbfldyhrfrnetsaosteetaefhlgokhretcakuteihrlrtlsetshlcpeadhthyutaeennhryraeennihrnbhnsnehyutsdtoywmtiatalwhvbepetlxihuscrtadtikhnxmsaesnwluevgnrcpegvnhteruigeuealsdntikeaeomctwrybusiilephkyodhrsyhecaatrmrltrarretstuoetnuesiduaidoesisaeetbllerpntroisiatsiasesomihsieiaunsaitneelacrfnrnngvetteenslhvpepteonedtnaooutgsotancetimiiwoetiuihclsewtcniieotslfbeecohenpoelsdoctceeemiiirttmhbiuovecegaitjuaborcleentatruyinetsidlaeehitwencceohwvohoatwkteroarhcseer'" + ] + }, + "execution_count": 6, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "c6as = sanitise(c6a)\n", + "c6as" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'hwssswxfewhhrfewpdrvttdhxbccleayphalnadhiehaoudrotwnrrvysabjlttbaytmelrkaidopthatlelrtwaamaneksvvzrvllatkcrjquicizgtoqcpnrrkttowandqehtqrvtbaydqealannohulanuzlwextlvjrvivhnohdqmgykaclmswrupdetfioftfelhzpxhaswftwprrsweiseohefpdrvttnvagdvswgoerbetnharvaeevtlltbmgaiatgelinmdawevhatterdhrznbnvoutnefoteveaehlaymhacglzeptvvdimworfisgtuzlwibeqohubtghamqornjnnrumqvjtxeltfovgawdaeevllgrtxibgtibevmpsaateoasevaeyqohameonncfuidoefafattemuimnflznbekofobrliaehhauihnnnwzaeevtlltpaalnanvtzlzuucptaelinanpaahewfthaosetaribnbnvhaevdhyytlmuxb'" + ] + }, + "execution_count": 7, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "c6bs = sanitise(c6b)\n", + "c6bs" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(3, -2314.997881051078)" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "key_a, score = railfence_break(c6as)\n", + "key_a, score" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'mark the last message told usa lot the scuttling equipment is designed to pump water in and out of the vessel like a submarine dive control but clearly they werent planning to turn a container ship into a sub this ship is a largescale version of something i have seen in the caribbean drug runners use a similar technique to get below radar coverage for inshore runs sinking the vessel so that the deck remains just below the wave tops the fda pirates seem more interested in staying away from shore but getting close enough to track and record electronic communications without detection i am guessing this scuttling system is what they call nautilus in their log but i am still baffled by the references to seahorse the next page of the log looks harder to crack but the cipher clerk tells me it is a hill cipher and that they must have been in a hurry or have been enciphering by hand since they just used a two by two matrix actually we have been pretty lax with our security and i think the next message is end will use avi genere cipher given that we are using secure cables i dont think we have too much to worry about so i will keep the keyword short say three characters more later harry'" + ] + }, + "execution_count": 9, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "' '.join(segment(railfence_decipher(c6as, key_a)))" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(matrix([[0, 1],\n", + " [1, 1]]), -666.1299098341699)" + ] + }, + "execution_count": 10, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "key_b, score = hill_break(c6bs)\n", + "key_b, score" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'phase six seahorse operated exactly as planned with good forward visibility at the trial depths the crew managed several tasks requiring concentration and dexterity and we plan to run a full test overnight on dummy cables dropped from the ship the software seems to be operating as designed but there are still bugs in the firmware that need ironing out before we deploy the collective is working full time to hunt them down and remove them though we are all getting tired mistakes are easy to make and could be fatal time is no longer on our side though and we are still planning to launch the final phase of the operation in three days timex'" + ] + }, + "execution_count": 11, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "' '.join(segment(hill_decipher(key_b, c6bs)))" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.4.3" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/2014/2014-challenge7.ipynb b/2014/2014-challenge7.ipynb new file mode 100644 index 0000000..7e8f74c --- /dev/null +++ b/2014/2014-challenge7.ipynb @@ -0,0 +1,431 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import os,sys,inspect\n", + "currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))\n", + "parentdir = os.path.dirname(currentdir)\n", + "sys.path.insert(0,parentdir) \n", + "\n", + "import matplotlib.pyplot as plt\n", + "import pandas as pd\n", + "import collections\n", + "import string\n", + "%matplotlib inline\n", + "\n", + "from cipherbreak import *\n", + "\n", + "c7a = open('7a.ciphertext').read()\n", + "c7b = open('7b.ciphertext').read()" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYYAAAD+CAYAAAA+hqL9AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHrNJREFUeJzt3X+cXXV95/HXG7KJESJhkIYAAVJ3EOLqQ40muv7YcZGQ\n7iqwWwphtzC1sz4qUdF9dPswcVcyU7oW3G0pdhdqLUISlSYVhdjFMGPira4aBhE0JaZJVsdNBjK4\ngwna+iMpn/3jfIc553J/Z37cTN7Px+M+7vd8z/f7Pd9z58z93PP9nnuuIgIzM7MxJ013B8zMrL04\nMJiZWYEDg5mZFTgwmJlZgQODmZkVODCYmVlB3cAgaa2kJyTtlPRZSXMkdUgakLRHUr+k+WXl90ra\nLWlFLn9pamOvpNtz+XMkbUr5OySdn1vXnbaxR9L1E7njZmZWWc3AIOkC4N3AayPilcDJwCpgDTAQ\nERcC29IykpYA1wBLgJXAHZKUmrsT6ImITqBT0sqU3wOMpvzbgFtTWx3ATcCy9FiXD0BmZjY56p0x\nPAscAV4saRbwYuBJ4HJgfSqzHrgypa8A7o2IIxExBOwDlktaCMyLiMFUbkOuTr6t+4BLUvoyoD8i\nDkXEIWCALNiYmdkkqhkYIuIZ4I+A/0sWEA5FxACwICJGUrERYEFKnw0cyDVxAD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sjYle1srk6SxmfRPxq\nRDzWQJ2Lyb7DAbAtJulS3TSZ+qbUt69HRMWzjDqvGRExNNF9a8RU90vS3wEXRRP/PNX6WK9v6bh5\nfiK53nHT6mvRyvHZjPRBYyXw3YjYK2kh8MqI6J/g7VyQWzwKjER2n7VadVYDV5MFkb8CNtX7n5Z0\nG1kQ/jnwDbK5zW+OjVhUqfMdYAtZoHop8AngFxHxGzXqfAC4nixY/QXZ0PgRZRen7I2IF5w5SPqd\niPhEbnkp8N6I+O1a+1RoY6YGBrPJIulu4L9HxBPT3Rc7dpL+kCwYVLwKr07deWRDPP+J7KrBOTXK\nvj4iHinLuz4iNtSo0wd8qtIHVUlLGvlQ2goHBrMmSdoNvIxskm/ah9Js6kl6P9kZ1lKy4+BrZGd0\n26e1YxNkps0xmE2FldPdAZt2LyKbb/x2vaGq45HPGMzMrGCmXa5qZmbHyIHBzMwKHBjMzKzAgcHM\nzAocGMzMrOD/A5ZV4vqjDJn1AAAAAElFTkSuQmCC\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "freqs = pd.Series(english_counts)\n", + "freqs.plot(kind='bar')" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "" + ] + }, + "execution_count": 3, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXIAAAD+CAYAAAAnIY4eAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAEq5JREFUeJzt3XuQZGddxvHvQyKXXGDdEjbhVosUMYQClQhE0UIRNCLE\nlGgwigQESgUELLXceMusVWLwLiiCAVIbbhoQIlCCWQNDICC3BAiEkCCsEnE3FgoSFEnMzz/OWbYz\n6ctMT890vzPfT1XX9Dl93n7fPn3m6bffc+lUFZKkdt1h3g2QJK2PQS5JjTPIJalxBrkkNc4gl6TG\nGeSS1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78x4j\n/1z/NeQSYH+S/wQODFuw30iga/MVST5HNzZ4X7pDHsf5Q7qN+GK6T9cfp3tTx7kI+ECSN/ZlzqTr\n1YzyYrowukeSFwA/BvzGsAWr6kXAi5K8tKp+bkI7VnoN8P4kl/TtegLw2iTH0vX0v25gnR0FPC3J\nZ4H/PdKM0WPEG22gbYftpBvqe3+SWbftHLoPzaO5bbi+cUyZ72Ht6+xCuvYPbjOjhvAO+w6GbM/9\n+hlV31q3TYAfnPD4MP/af8V/LHB+v99gVOfvtXTDN+dzpBcL8OWq+sKoClZsB3eg+0Ba7fj4jcBB\n4At0HZyR+qA/li6U3wN8R1XdOOH5bwH+h27U4M7AZ6pq4odzVd2a5CBwiO7D8BuBNyT5h6r6lRFl\nbgGeleSpdN+41jY803fj564fe7or8Paq+tqQx3ePKV5V9c8Tnv9BdJ96Bbyjqq4Zt3xf5lSO7Li6\nvKqumrD8A+mOoQe4rDbo0Mt+590j+3ZdUVVDe/ET1hlVdWDWbVutzWxbkk8BJ9caNvZR7ZvUrn6b\n+fqOy1VsM0PrmVTfWrfNafSdg9OBj1XV9UlOBB5cVZfOsI7dA5O3AIequ07TuDLPAs6iC/3XA389\n6f85yR/TfWh+FXgv3b659x0eERhR5qPAm+k+WL4JeBnwv1X142PKPA94Ct2Hy8vphopvTncwxPVV\ndbueeZKfraqXDUyfCjy7qn5m3Gu6zXMsSpBLGyXJhcAfVNUn5t0WrV+S36UL76FHaU0oezzdkMcv\n0x1Vdqcxyz6sqj64Yt5TquqiMWX2Aq8c1rFMcspqOpDTMMi15SW5Frg/3U6lhRha0uZK8gt032BO\npdsO3k33jekdc23YjMx7jFzaDKfPuwGauzvT7Su7ctLQTYvskUtS4+Z9+KEkaZ0McklqnEEuSY0z\nyCWpcQa5JDXu/wG/q+TcCt8ktgAAAABJRU5ErkJggg==\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "freqs_7a = pd.Series(collections.Counter([l.lower() for l in c7a if l in string.ascii_letters]))\n", + "freqs_7a.plot(kind='bar')" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXIAAAD+CAYAAAAnIY4eAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAFFpJREFUeJzt3X+w5fVd3/HnK1CS8CPBncQNP2dJGiTLoG0wBJs4uUQT\n0YnA1EqCbVzTmqlimqSTqhCrXJwpxbFRGzXaksAQI7SoCQXHRFbCESQULBBYWVagcS0kZdNqEoM1\nBuTdP77fZQ+He889e865d+9n7/Mxc+Z+f32+38/5nu95nc/5fL/fc1NVSJLa9bwDXQFJ0mwMcklq\nnEEuSY0zyCWpcQa5JDXOIJekxo0N8iRXJtmTZMcS896X5Okkm4amXZzk4SS7krx5NSosSXq2lVrk\nVwFnj05McgLwJuDPh6ZtBd4KbO3LfCiJLX5JWmVjg7aqbgO+tMSsXwB+YmTaucC1VfVkVe0GHgHO\nmEclJUnL2+8Wc5Jzgceq6v6RWccCjw2NPwYcN0PdJEkTOHR/Fk5yOPB+um6VZyaPKeL9/5K0yvYr\nyIFXAFuA+5IAHA/cneS1wOeBE4aWPb6f9ixJDHdJmkJVLdlw3q+ularaUVWbq+qkqjqJrvvk1VW1\nB7gBeFuSw5KcBLwSuGuZ9Sz5uOSSS5adN+5hOctZbmOUa6GOq1VunJUuP7wW+AxwcpJHk7xjNJOH\nwnkncB2wE/gkcGGttHVJ0szGdq1U1QUrzH/5yPhlwGVzqNdBo++Cesall176rHE/6yTNal1d572w\nsHCQlqv+ccvQ8OQBvv6fn+UstzblWqjjgSiXtW4RJtlQPS5di3y55xtb5JImkoSax8lOSdL6Y5BL\nUuMMcklqnEEuSY0zyCWpcQa5JDXOIJekxhnkktQ4g1ySGmeQS1Lj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Ja4ETgDvortb738A/mmB7PwWcDFwJ/BDwcJLLkrxi\ngm0+40D3kT/af624Htie5EvA7uUW7g8G6Op9e5JH6foET6S77HElH6A7cK+j++T8froXbSUfBe5K\n8vG+3Hl0rZmV/DJd6HxjksuAfwL82+UWrqoPAh9M8utV9SMTrH/UbwJ3Jrm+r+f3AtckOYKutf8s\nQ/vzEOAdSf4M+Nt91RnfF7xWhuq51ya6bsE7k6xmPbfRfageyrND9eMrlPt2ptufV9E9p+HjbFzX\n317fyhLvh36/jdvud02w7qV8Psl/Bt4EXN6fExjXKLyGrhvncva1WgG+WlV/MW5DI6/98+gaUPvT\nP/5F4HHgL+gaOmP1YX8EXSD/EfCtVfXFCbbzFPA3dD0MLwA+V1UTfRBX1dNJHgf20H1IfgPw20n+\noKp+fJJ1rJurVvr+pBcBn6qqry+zzJYxq6iq+vMJtnMq3denAj5dVc8JuGXKnc6+k1C3VtW9E5Z7\nFd119QA31ypfjtmfoHsdXT1vr6plW/Ir7E+qavc86zatA1XPJH8KnFL7+SZZrr6T1LM/zp45aTnJ\ncbbW+6dvGJwN3F9VDyc5Bjitqm6a53b6bW0ZGn0K2FPd7zitVO5C4Hy64P8t4L9O8l5P8ot0H4xf\nAz5Ddw7vjr09B2PK3QfcQPch8xLgPwF/W1Xfv0K59wA/SPdB82G6ruUn010o8XBVTdQyXzdBLq03\nSa4C/kNVPXCg66L9k+Tf04X3sldrrVD+KLqujn9Dd6XZ81dY/jVV9ccj036wqj66QrlLgSuXaoQm\n2TpxQ9Mgl5aWZBfwCrqTXuuuy0nzl+Rf0X3zPp3udb+N7pvRpw9oxVZwoPvIpfXs7ANdAa25F9Cd\nS7tnki6c9cIWuSQ17kBffihJmpFBLkmNM8glqXEGuSQ1ziCXpMb9f3h2jn0GCdnRAAAAAElFTkSu\nQmCC\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "freqs_7b = pd.Series(collections.Counter([l.lower() for l in c7b if l in string.ascii_letters]))\n", + "freqs_7b.plot(kind='bar')" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'veyjmyjkrzilysyjeydorulcsrcjnmoiddeugurlogfsnwcrlhckhghmwkejxlyktlagflalvtmgkyyomvlmgkyjosfdrzepwaqgnrzeqzinoaqforkcsltjwdussrzarlhcnajneqzabbakeebatjgoiklgcerzebjidlwmgdussnmljwdgftmlhceeazalasksnbtlmukcvtfwilderhrckuksbjqtfwcpwwfsdydrcsdwsbyfdmfeblhcneqkejohguhussjmciqfmjuqoirzosltfwsfapuwwmmlbzatwhyvnmadcstfstrzedvafsdzwelgpcjaraneanrzeqwwylepkscshmjscaslglmfgcjakqsrwrwlhcuurswyqollhcktyjbmsrbkibwcjwapwdyfapwamxapgulvfgnekwtcjsqiuyjeuatfsdgktgfcravcharlepfodtojlsdssrwncvtmjegffmjccvdcukndarwsgkaukokwtfanediiwtfasmfaqmbpwsamekasqaolscmmpjwodqeyjsyyouzellhcqfgltcvajgcydsfapuatfsjsjypagewdgfsnwcraolkyqleklhcveacpjstckcyfcyjrwscpsncveqaglwdrgdchlmqaljotsrceorwonwrylebnefacjwdckiefebxopmnbwrqwamhepstggnqawykajjeyvyagnawrlwdytosltfwrcxepwnawtmlhcuazdeqanrzejssrhaplodlhcxdydoeturlhcfevlscutggnfsskwrcsljqwmjrgwdgliqwnajynleboirzakgrckeamrceobafgwdyesagtpsnqhoqatggnaapfwryfdrwljkuqohyltfwyuwrcjeydlwmprgwfstgvollulvepktyfdgkhmotfwwfglcssqwmzdygkpmoepwdrzeqgrrgfagmnmtgfgrzeweuqlbcvogfggkrcsljqillelkitwalvwmmlbtupftfjosyhytarlepqilvawkillhyltgeerzegjillepuenlmgyhrforuaruhyfyrzilyuqwfsdbsltfwyasnfsrbdyfsvczihsciwdydoaslqgciwtgftfwmgvdjwodlhcgccsnasnwguewtkwaazaplsfgwgfgrzebwenkeyuazdeqanrzepwgggngvolliksggferzeskwgdlzwanjozdekturatksylwebkokwdghlmeaaqtmyerlhcxujdcmnepsgceankfpgmrzemealagmnepfmcftgxiyergyhratgkillhcarzwsranrwrcktqlondawslmfguwajdhyneydorlojgsczepw'" + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "c7as = sanitise(c7a)\n", + "c7as" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'anwaecnndrtwtanireoahsrdntieerdctewayerevaaarpioerobsedescrehlaoitithsdtrinosepeplthtnidtwsduledlhotpeaterhaaredeoaiodtahregerothwhtsureteeinwigiresetpowicooonitseudseechacteofiileonewiotacteodteuneahsedaptryemronmomlexontkemeoyvitsteenhantrertieineotndlhpoplyitewitrsedeevdycfrmnsnaypinmteeneeinahinepritedehveleaorelllvmocnahncepherohjuuvehautathttetoasipowwneedselopgdeslfedterfcaatehjasdtrprleseeretetecneorrsgckamiiwaefutiashaongcthsrenrehtrsthhaceinwtprloghetodaeraloeedeatsomldwedtwefsbelevpdteonoignsavftegsebomcehatietnrsptonthusorecredendcetlwaehesedrncveracuhoihaleinaemeunherdesttstasipedeyleeemtiisiigothntssfolnitretrwhemtkhhswtorcssnererohteencsapeblircnthuleofenrsromrnshmaddaodeatihioroutwevthapeceetovterdleaditewdottttcatkmbhtheicwantnisedwatxankeabovoanmswlprgaispodfogndpedeswrdacttrefhdesyaberretlavod'" + ] + }, + "execution_count": 6, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "c7bs = sanitise(c7b)\n", + "c7bs" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "('say', -1726.4679903722085)" + ] + }, + "execution_count": 7, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "key_a, score = vigenere_frequency_break(c7as)\n", + "key_a, score" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'dear mark things area lot clearer now i flew out to inspect the ship myself last night and took a good look around the reason the ship was not scuttled was that the valves had jammed it looks like the driftwood was pulled into the mechanism and blocked the inlet presumably the crew had already abandoned the vessel which was lucky for us without the ship we would have had no idea that the fda had been operating in these waters seahorse is no longer a mystery the cutaway on the starboard side cleared an area of around five meters square with a distinctive pattern of bolts fastened to reinforced deck plates i saw something like this on a sub rescue mission a couple of years ago when they fitted a local ship with a jury rigged inspection system the deck plates can carry a crane designed to deploy an rova remote operated vehicle designed for undersea operations i was already concerned about the reference to the cables in the last part of the fda log but the next section has me really worried it is encrypted with a more secure modified amsco transposition cipher and tells us what they were really up to what i dont understand is how the whole assembly is powered the sort of computing they must be doing is really intensive and would burn through a battery in days in that time their intercept might not catch anything useful but they can hardly have hijacked a local socket in the middle of the ocean can you get me a chart showing the deepsea cables in the region i dont imagine the us will be a problem but it may need some diplomacy to get the full coverage maps from the omani government if i am right it is in their best interests to playalong we all have alot to lose here'" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "' '.join(segment(vigenere_decipher(c7as, key_a)))" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(((1, 2, 0, 4, 3), (2, 1), ),\n", + " -1902.8377732825452)" + ] + }, + "execution_count": 9, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "key_b, score = amsco_break(c7bs)\n", + "key_b, score" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'phase seven we approached the cable junction undercover of night with nautilus at an elevation of three feet towing seahorse to starboard comms interception showed that we remained undetected and seahorse was deployed at operating depth the various layers of armoured protection were removed from the cable and as expected once the steel jacket was removed the other layers provided little resistance the divers entered the water and cut into the core to insert the optical repeaters linking them back to the man in the middle unit which was powered up and fully tested initial tests showed that it was operating as expected and three keys have already been recovered from the omani transmissions with daylight approaching the remaining tests were postponed for the following night and the ship returned to deeper waters where it remained at low deck height the divers were left at seahorse to decompress slowly and will be recovered tomorrow once the final tests have been concluded'" + ] + }, + "execution_count": 12, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "' '.join(segment(amsco_transposition_decipher(c7bs, key_b[0], fillpattern=key_b[1], fillstyle=key_b[2])))" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false, + "scrolled": true + }, + "outputs": [ + { + "data": { + "text/plain": [ + "['cable',\n", + " 'facto',\n", + " 'facts',\n", + " 'gabon',\n", + " 'hafts',\n", + " 'hefts',\n", + " 'ibexs',\n", + " 'kabul',\n", + " 'lacys',\n", + " 'ladys',\n", + " 'laius',\n", + " 'lefts',\n", + " 'macon',\n", + " 'macro',\n", + " 'macys',\n", + " 'malts',\n", + " 'melon',\n", + " 'melts',\n", + " 'negro',\n", + " 'oahus',\n", + " 'obeys',\n", + " 'obits',\n", + " 'odets',\n", + " 'pacts',\n", + " 'pants',\n", + " 'pelts',\n", + " 'pints',\n", + " 'piotr',\n", + " 'pious',\n", + " 'plots',\n", + " 'plows',\n", + " 'ploys',\n", + " 'rafts',\n", + " 'rants',\n", + " 'remus',\n", + " 'rents',\n", + " 'riots',\n", + " 'scout',\n", + " 'shout',\n", + " 'snout',\n", + " 'cabbed',\n", + " 'cabbie',\n", + " 'cabbys',\n", + " 'cabral',\n", + " 'dabble',\n", + " 'faeroe',\n", + " 'gabbro',\n", + " 'ibexes',\n", + " 'jaguar',\n", + " 'kaboom',\n", + " 'kaftan',\n", + " 'lacuna',\n", + " 'lagoon',\n", + " 'lefter',\n", + " 'legume',\n", + " 'macaws',\n", + " 'magyar',\n", + " 'malays',\n", + " 'maltas',\n", + " 'mellon',\n", + " 'negevs',\n", + " 'nellys',\n", + " 'nelson',\n", + " 'odious',\n", + " 'paddys',\n", + " 'panzas',\n", + " 'peggys',\n", + " 'pelves',\n", + " 'pennys',\n", + " 'photos',\n", + " 'pinups',\n", + " 'qantas',\n", + " 'rabats',\n", + " 'rallys',\n", + " 'refuse',\n", + " 'refute',\n", + " 'remuss',\n", + " 'renews',\n", + " 'repute',\n", + " 'scouts',\n", + " 'shouts',\n", + " 'snouts',\n", + " 'cabbage',\n", + " 'cabrera',\n", + " 'dabbled',\n", + " 'gadwall',\n", + " 'ladonna',\n", + " 'leftest',\n", + " 'madonna',\n", + " 'malayan',\n", + " 'million',\n", + " 'papacys',\n", + " 'pellets',\n", + " 'penneys',\n", + " 'qantass',\n", + " 'ragtags',\n", + " 'refuses',\n", + " 'refuter',\n", + " 'regrets',\n", + " 'rennets',\n", + " 'renters',\n", + " 'reroute',\n", + " 'sallust',\n", + " 'macassar',\n", + " 'mahatmas',\n", + " 'mahayana',\n", + " 'nanettes',\n", + " 'palatals',\n", + " 'phosphor',\n", + " 'reenters',\n", + " 'phosphors',\n", + " 'sinusitis',\n", + " 'malayalams',\n", + " 'sinusitiss']" + ] + }, + "execution_count": 11, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "transpositions[key_b[0]]" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.4.3" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/2014/2014-challenge8.ipynb b/2014/2014-challenge8.ipynb new file mode 100644 index 0000000..f6d9d2e --- /dev/null +++ b/2014/2014-challenge8.ipynb @@ -0,0 +1,5630 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import os,sys,inspect\n", + "currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))\n", + "parentdir = os.path.dirname(currentdir)\n", + "sys.path.insert(0,parentdir) \n", + "\n", + "import matplotlib.pyplot as plt\n", + "import pandas as pd\n", + "import collections\n", + "import string\n", + "%matplotlib inline\n", + "\n", + "from cipherbreak import *\n", + "\n", + "c8a = open('8a.ciphertext').read()\n", + "c8b = open('8b.ciphertext').read().strip()" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYYAAAD+CAYAAAA+hqL9AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHrNJREFUeJzt3X+cXXV95/HXG7KJESJhkIYAAVJ3EOLqQ40muv7YcZGQ\n7iqwWwphtzC1sz4qUdF9dPswcVcyU7oW3G0pdhdqLUISlSYVhdjFMGPira4aBhE0JaZJVsdNBjK4\ngwna+iMpn/3jfIc553J/Z37cTN7Px+M+7vd8z/f7Pd9z58z93PP9nnuuIgIzM7MxJ013B8zMrL04\nMJiZWYEDg5mZFTgwmJlZgQODmZkVODCYmVlB3cAgaa2kJyTtlPRZSXMkdUgakLRHUr+k+WXl90ra\nLWlFLn9pamOvpNtz+XMkbUr5OySdn1vXnbaxR9L1E7njZmZWWc3AIOkC4N3AayPilcDJwCpgDTAQ\nERcC29IykpYA1wBLgJXAHZKUmrsT6ImITqBT0sqU3wOMpvzbgFtTWx3ATcCy9FiXD0BmZjY56p0x\nPAscAV4saRbwYuBJ4HJgfSqzHrgypa8A7o2IIxExBOwDlktaCMyLiMFUbkOuTr6t+4BLUvoyoD8i\nDkXEIWCALNiYmdkkqhkYIuIZ4I+A/0sWEA5FxACwICJGUrERYEFKnw0cyDVxADinQv5wyic970/b\nOwocl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\nRDzWQJ2Lyb7DAbAtJulS3TSZ+qbUt69HRMWzjDqvGRExNNF9a8RU90vS3wEXRRP/PNX6WK9v6bh5\nfiK53nHT6mvRyvHZjPRBYyXw3YjYK2kh8MqI6J/g7VyQWzwKjER2n7VadVYDV5MFkb8CNtX7n5Z0\nG1kQ/jnwDbK5zW+OjVhUqfMdYAtZoHop8AngFxHxGzXqfAC4nixY/QXZ0PgRZRen7I2IF5w5SPqd\niPhEbnkp8N6I+O1a+1RoY6YGBrPJIulu4L9HxBPT3Rc7dpL+kCwYVLwKr07deWRDPP+J7KrBOTXK\nvj4iHinLuz4iNtSo0wd8qtIHVUlLGvlQ2goHBrMmSdoNvIxskm/ah9Js6kl6P9kZ1lKy4+BrZGd0\n26e1YxNkps0xmE2FldPdAZt2LyKbb/x2vaGq45HPGMzMrGCmXa5qZmbHyIHBzMwKHBjMzKzAgcHM\nzAocGMzMrOD/A5ZV4vqjDJn1AAAAAElFTkSuQmCC\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "freqs = pd.Series(english_counts)\n", + "freqs.plot(kind='bar')" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "" + ] + }, + "execution_count": 3, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAWwAAAD+CAYAAAAeRj9FAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAFYBJREFUeJzt3X20bHdd3/H3J0kh5AEud4knF4UmsBoCLCgSiNDg6mBD\njS2kWbVmkVa90jRLBQS6rIuLLc2JaxVDrNViH9QAWTc8qFEhTVxFc73JCIY0SHIDMSEGCtem4j2x\n4TEKkpBv/9j73hzOnacz58zc2ee8X2vNOrP32b/Z39mz5zN7fvPbM6kqJEmL77hjXYAkaTIGtiR1\nhIEtSR1hYEtSRxjYktQRBr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o2F9IcpYzyyzTB8+1J3gb8M+DfDVqw\nqt4BvCPJr1TVj4+53dXeB9yW5Lq2rlcB709yMs1R+xGrttnxwGuSfA74m8dKGN5/O2urajtsJ01X\n3G1JZlHbbpoXxxP41iD9wIg238P6ttvVNPWv3meGdb0d9iIG7M/t9hm2rmn2ze8b8/9B/rx9a/4K\n4Iq2T3/Ywdz7abpdruCxo1KAr1bVg6NWsmZfOI7mxWfS/usHgEPAgzQHM8PWsZ/mheBWmqPyF1XV\nA2Nu+xHgazS9ACcCn62qsS/CVfVokkPACs2L3pOB307yB1X100PaPAK8NsmP0ryDWl+3SntYPjdt\n39ATgd+rqm8M+P/pI5pXVf3ZmNt/Ls2rWAE3VdU9o5Zv25zNYx8gfbiqDkzQ5tk0Y9AB9tcMhjS2\nH6Cd29Z1S1UNPCIfs82oqoObXduk5l1bkj8Fzqp17NjDahxVW7vPHPkAcdw+M+12mGbfXK/2IOB8\n4JNV9ekku4DnVdWNm7ye01dNPgKsVPM9RKPavBa4iCbcfwv4zVHP6SS/SPPi+HXgozSfnd16+B3+\nkDafAK6nefH4NuBXgb+pqh8c0eaNwI/QvIC8k6aL9+E0AxI+XVVHHWkn+bGq+tVV02cDr6uqfzls\nPUfdxrwDW5qlJFcD/7Gq7j7WtWjjkvwcTUgPHBk1ot2pNF0V/4ZmBNfjRyz74qr64zXzfqSqrhnR\n5nLg3YMOIJM8Z5IDxWkY2NpSktwLPJPmA56F6BbS/CT5SZp3JGfT7AMfoXkHdNMxLWyTzG0ctjQn\n5x/rAnRMnUjzWdYd47pbusgjbEnqCH/TUZI6wsCWpI4wsCWpIwxsSeoIA1uSOuL/Axc+C4z6mlNK\nAAAAAElFTkSuQmCC\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "freqs_8a = pd.Series(collections.Counter([l.lower() for l in c8a if l in string.ascii_letters]))\n", + "freqs_8a.plot(kind='bar')" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'nyvlggsyglchxfeuytqcesqxpziufiggrbjhpayncruyfpsxufiupskyrectmmcncruyregxigrlglbtiblmecebzsvrlpuxpbibjajrljreobajrlufigjehbezywtmgjyxfqxictsgrdgtbjafyoocwtmjblctwwucqmgofrlfmrfrlfwlbtijlwuypmchjqxicrfchumtsmzjbimyvhcuvyrugxjcwpdtpuisrlfdhbaencyqumufeogrhcrjmytqsmsxjmrcsxjrmttiswzvjrfpecjitnidgemdssaitasvjhuyofgxpsxgmvvqfvrxiyxxmymbxfjpufigbeufeuuiiyzfavbaofbxicmsamqfisqwpgrtribbmtskhcwuuimcxufinbitrvpwxsmnbljppytuixgpmlifbgpmtfpeugsodvpkxicsnyrjeswcvokioreoyvnchggkirishiuyrerlfdpjeluasorvpjwzqxfkwgpsnyhsmrfkiblaigpfuiociersflwvpiuusufmoewpliufeuuiemrprwflhdpmuggbjmodsskeugsoygsmwtrlfzecypnyreyftrvbgxblhuusufeuuivqiblsoavjrmdyplcchcrfpeugsonvprsdmpplxiyxdfeolimemwcrufimczfjsgasnkmukiorxicjeylbtitfsxlmobiwcppnmoexigwqjeogenqyscxiyxufizummjvfgrtreucxictpuisqyqnpzumufmoyjfuqplxiqfvrajrlmsglrlfwajjpomxhsitqxiyxxcoomabzsvrmuyreuixgpmnyugxpsxpdfvqmocwtdssjsoeiomyhfxpasncyqumufeqjeomjpsvpurumiynppgxjrmorlfkiblxjkixcrpuoomaufeurlfgvigkicwuqidsvjrcdmqnsrjaeugsoqescioavznxfbytgrhygbbioswdgticvtmafaeoqxbpxisrugrhrlsmyhfxichbrecywfdssmxicvjlxfpgfnxtuidyrdpedixigwnycccxicfscelrlsmyhfaffewcffcrmmslgrhdssgrufiggkirehymoqxufigbemcxtlsuqgscajryqypmrlfzitrlbpvz'" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "c8as = sanitise(c8a)\n", + "c8as" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "('bye', -1461.9840974270046)" + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "key_a, score = vigenere_frequency_break(c8as)\n", + "key_a, score" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'mark i cracked what appears to be the final document about the trojan deployment and i think i have an idea about how to deal with it and with the flag day associates the principal weakness of any system like the one they have installed is the need to provide large quantities of power the fda came up with an ingenious solution but it is very vulnerable special forces could take it out for us but that would tell the fda that we have cracked their ciphers so instead i suggest we let them destroy trojan for us we will need cooperation from the omani government an armed fighter jet and the flight control systems from a drone meanwhile we need to ensure two things one that we do not send critical information across the ba balm and abstrait and two that we use an on critical key generation protocol on that channel given the level of commitment the fda have shown in developing this plan i am sure that they will reinstate the powersupply within a few months but with luck they will not guess that we know about it and we will put it out of business for long enough to come up with a plan of our own to exploit it in the meantime we now know that their highest security communications are encrypted using a caden us cipher so we can start hunting through the database for other intercepts we can crack this maybe the breakthrough we have been looking for in the fight against the fda lets not screw it up all the best harry'" + ] + }, + "execution_count": 6, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "' '.join(segment(vigenere_decipher(c8as, key_a)))" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "875.0" + ] + }, + "execution_count": 7, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "len(c8b) / 8" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "['00000',\n", + " '00101',\n", + " '00010',\n", + " '00000',\n", + " '00100',\n", + " '10100',\n", + " '01110',\n", + " '10011',\n", + " '10011',\n", + " '00000',\n", + " '00010',\n", + " '10011',\n", + " '00111',\n", + " '10001',\n", + " '01000',\n", + " '01110',\n", + " '01011',\n", + " '00100',\n", + " '10011',\n", + " '00010',\n", + " '10010',\n", + " '00100',\n", + " '10001',\n", + " '10011',\n", + " '00111',\n", + " '10010',\n", + " '00111',\n", + " '10011',\n", + " '10001',\n", + " '00000',\n", + " '00111',\n", + " '01010',\n", + " '11000',\n", + " '01110',\n", + " '10001',\n", + " '01111',\n", + " '00101',\n", + " '10001',\n", + " '00110',\n", + " '00100',\n", + " '01110',\n", + " '00000',\n", + " '00011',\n", + " '01111',\n", + " '01111',\n", + " '01001',\n", + " '01101',\n", + " '00110',\n", + " '01011',\n", + " '10011',\n", + " '00100',\n", + " '10001',\n", + " '01101',\n", + " '00100',\n", + " '00101',\n", + " '00100',\n", + " '01110',\n", + " '00101',\n", + " '01000',\n", + " '01110',\n", + " '10001',\n", + " '10011',\n", + " '10010',\n", + " '00011',\n", + " '00011',\n", + " '01110',\n", + " '00100',\n", + " '00100',\n", + " '10100',\n", + " '01100',\n", + " '10010',\n", + " '00010',\n", + " '10001',\n", + " '10100',\n", + " '00100',\n", + " '10001',\n", + " '01101',\n", + " '00101',\n", + " '00100',\n", + " '10011',\n", + " '01011',\n", + " '00000',\n", + " '00000',\n", + " '00101',\n", + " '10010',\n", + " '10011',\n", + " '10110',\n", + " '01000',\n", + " '00100',\n", + " '01101',\n", + " '10011',\n", + " '10001',\n", + " '10101',\n", + " '01110',\n", + " '01110',\n", + " '01101',\n", + " '00100',\n", + " '10001',\n", + " '00111',\n", + " '10100',\n", + " '00000',\n", + " '00111',\n", + " '10001',\n", + " '00000',\n", + " '10101',\n", + " '00100',\n", + " '10001',\n", + " '00100',\n", + " '00100',\n", + " '10011',\n", + " '10010',\n", + " '10101',\n", + " '10010',\n", + " '01000',\n", + " '00100',\n", + " '01011',\n", + " '00111',\n", + " '01011',\n", + " '01110',\n", + " '10010',\n", + " '10011',\n", + " '00011',\n", + " '01110',\n", + " '00000',\n", + " '01011',\n", + " '01110',\n", + " '11000',\n", + " '00000',\n", + " '00100',\n", + " '10010',\n", + " '01100',\n", + " '01101',\n", + " '01101',\n", + " '00011',\n", + " '01000',\n", + " '00110',\n", + " '01101',\n", + " '01101',\n", + " '10001',\n", + " '00111',\n", + " '01110',\n", + " '00111',\n", + " '00111',\n", + " '10011',\n", + " '10010',\n", + " '01101',\n", + " '00000',\n", + " '01110',\n", + " '01000',\n", + " '01011',\n", + " '01101',\n", + " '00010',\n", + " '01101',\n", + " '10010',\n", + " '10010',\n", + " '01000',\n", + " '00010',\n", + " '10001',\n", + " '00100',\n", + " '00000',\n", + " '01101',\n", + " '01101',\n", + " '00100',\n", + " '00100',\n", + " '01000',\n", + " '01000',\n", + " '01000',\n", + " '00100',\n", + " '10001',\n", + " '10110',\n", + " '10011',\n", + " '00000',\n", + " '01101',\n", + " '00100',\n", + " '10010',\n", + " '10001',\n", + " '10101',\n", + " '01110',\n", + " '00110',\n", + " '01000',\n", + " '00100',\n", + " '01000',\n", + " '11000',\n", + " '10110',\n", + " '10010',\n", + " '10010',\n", + " '00011',\n", + " '00110',\n", + " '01111',\n", + " '10101',\n", + " '01110',\n", + " '01000',\n", + " '00000',\n", + " '01000',\n", + " '10010',\n", + " '00000',\n", + " '01110',\n", + " '00000',\n", + " '00100',\n", + " '01110',\n", + " '00000',\n", + " '00100',\n", + " '00011',\n", + " '10001',\n", + " '01101',\n", + " '01000',\n", + " '10011',\n", + " '10001',\n", + " '01101',\n", + " '10111',\n", + " '00100',\n", + " '01000',\n", + " '00110',\n", + " '10001',\n", + " '01111',\n", + " '10010',\n", + " '10010',\n", + " '00111',\n", + " '00000',\n", + " '00011',\n", + " '00111',\n", + " '00011',\n", + " '10011',\n", + " '01110',\n", + " '01000',\n", + " '01111',\n", + " '00000',\n", + " '00000',\n", + " '10011',\n", + " '00100',\n", + " '10111',\n", + " '00100',\n", + " '01101',\n", + " '01101',\n", + " '00100',\n", + " '10010',\n", + " '00000',\n", + " '00110',\n", + " '10001',\n", + " '01110',\n", + " '00001',\n", + " '10011',\n", + " '01011',\n", + " '00100',\n", + " '10010',\n", + " '10001',\n", + " '01101',\n", + " '10001',\n", + " '01110',\n", + " '01000',\n", + " '10001',\n", + " '11000',\n", + " '01111',\n", + " '00001',\n", + " '00110',\n", + " '00100',\n", + " '00011',\n", + " '00010',\n", + " '01011',\n", + " '01011',\n", + " '01000',\n", + " '10110',\n", + " '00000',\n", + " '01011',\n", + " '00000',\n", + " '01011',\n", + " '00100',\n", + " '00100',\n", + " '01101',\n", + " '01000',\n", + " '00110',\n", + " '10001',\n", + " '10001',\n", + " '01101',\n", + " '10110',\n", + " '11000',\n", + " '10001',\n", + " '01011',\n", + " '01000',\n", + " '01100',\n", + " '01011',\n", + " '01111',\n", + " '10010',\n", + " '10011',\n", + " '01110',\n", + " '01011',\n", + " '00100',\n", + " '00101',\n", + " '10011',\n", + " '10001',\n", + " '00011',\n", + " '01100',\n", + " '10100',\n", + " '00000',\n", + " '10001',\n", + " '01000',\n", + " '00100',\n", + " '00100',\n", + " '00100',\n", + " '01000',\n", + " '01000',\n", + " '00000',\n", + " '01110',\n", + " '01011',\n", + " '01101',\n", + " '00100',\n", + " '10110',\n", + " '10010',\n", + " '00000',\n", + " '01110',\n", + " '00111',\n", + " '10001',\n", + " '10011',\n", + " '01011',\n", + " '10010',\n", + " '10011',\n", + " '01110',\n", + " '00001',\n", + " '00100',\n", + " '10011',\n", + " '01101',\n", + " '10010',\n", + " '01011',\n", + " '10101',\n", + " '00101',\n", + " '01000',\n", + " '10101',\n", + " '00011',\n", + " '01110',\n", + " '10101',\n", + " '10011',\n", + " '01111',\n", + " '01110',\n", + " '00000',\n", + " '00100',\n", + " '00100',\n", + " '01000',\n", + " '10010',\n", + " '00010',\n", + " '01000',\n", + " '01110',\n", + " '00111',\n", + " '01000',\n", + " '01111',\n", + " '10010',\n", + " '00100',\n", + " '10101',\n", + " '00100',\n", + " '00100',\n", + " '00011',\n", + " '10011',\n", + " '00100',\n", + " '10110',\n", + " '00101',\n", + " '00000',\n", + " '10001',\n", + " '01101',\n", + " '00111',\n", + " '00100',\n", + " '00001',\n", + " '01011',\n", + " '00100',\n", + " '00000',\n", + " '01110',\n", + " '10011',\n", + " '01110',\n", + " '00111',\n", + " '10011',\n", + " '10011',\n", + " '10011',\n", + " '00100',\n", + " '01111',\n", + " '01101',\n", + " '00010',\n", + " '01010',\n", + " '00000',\n", + " '01110',\n", + " '01101',\n", + " '00111',\n", + " '10110',\n", + " '00100',\n", + " '10011',\n", + " '01100',\n", + " '10101',\n", + " '11000',\n", + " '01111',\n", + " '10001',\n", + " '10001',\n", + " '00100',\n", + " '01110',\n", + " '01101',\n", + " '01101',\n", + " '00000',\n", + " '10010',\n", + " '00110',\n", + " '00011',\n", + " '00100',\n", + " '00011',\n", + " '01110',\n", + " '00100',\n", + " '00100',\n", + " '00100',\n", + " '01110',\n", + " '00000',\n", + " '00000',\n", + " '01100',\n", + " '10011',\n", + " '00010',\n", + " '01000',\n", + " '00010',\n", + " '10011',\n", + " '10011',\n", + " '01000',\n", + " '00101',\n", + " '01101',\n", + " '00000',\n", + " '00011',\n", + " '10001',\n", + " '00100',\n", + " '10010',\n", + " '10001',\n", + " '10011',\n", + " '10010',\n", + " '00100',\n", + " '10001',\n", + " '01110',\n", + " '10010',\n", + " '00100',\n", + " '10011',\n", + " '10001',\n", + " '00111',\n", + " '00010',\n", + " '01000',\n", + " '00010',\n", + " '10011',\n", + " '01111',\n", + " '10010',\n", + " '00000',\n", + " '00000',\n", + " '00100',\n", + " '00111',\n", + " '01011',\n", + " '00011',\n", + " '00111',\n", + " '10010',\n", + " '00101',\n", + " '10111',\n", + " '10010',\n", + " '01110',\n", + " '00000',\n", + " '01110',\n", + " '10011',\n", + " '00010',\n", + " '10011',\n", + " '00001',\n", + " '00001',\n", + " '10010',\n", + " '01110',\n", + " '00100',\n", + " '01000',\n", + " '10001',\n", + " '01101',\n", + " '10010',\n", + " '00000',\n", + " '00011',\n", + " '01011',\n", + " '11000',\n", + " '10011',\n", + " '10001',\n", + " '10001',\n", + " '10100',\n", + " '01101',\n", + " '10001',\n", + " '00010',\n", + " '00100',\n", + " '01111',\n", + " '10011',\n", + " '10011',\n", + " '00111',\n", + " '10001',\n", + " '00100',\n", + " '10100',\n", + " '00111',\n", + " '01101',\n", + " '01010',\n", + " '10011',\n", + " '00000',\n", + " '00010',\n", + " '00100',\n", + " '00010',\n", + " '00100',\n", + " '00100',\n", + " '01011',\n", + " '10001',\n", + " '10110',\n", + " '01101',\n", + " '01000',\n", + " '10001',\n", + " '00100',\n", + " '00100',\n", + " '00100',\n", + " '00000',\n", + " '00100',\n", + " '10010',\n", + " '00100',\n", + " '00100',\n", + " '00100',\n", + " '01000',\n", + " '00011',\n", + " '01000',\n", + " '10010',\n", + " '01110',\n", + " '00110',\n", + " '00010',\n", + " '00100',\n", + " '01110',\n", + " '01100',\n", + " '01101',\n", + " '10001',\n", + " '10011',\n", + " '00100',\n", + " '01001',\n", + " '00111',\n", + " '00000',\n", + " '00110',\n", + " '00000',\n", + " '00001',\n", + " '10010',\n", + " '00100',\n", + " '01101',\n", + " '01000',\n", + " '10011',\n", + " '01011',\n", + " '10110',\n", + " '10011',\n", + " '10001',\n", + " '01101',\n", + " '00001',\n", + " '01100',\n", + " '01000',\n", + " '00100',\n", + " '01011',\n", + " '10010',\n", + " '00000',\n", + " '10001',\n", + " '00100',\n", + " '10011',\n", + " '00100',\n", + " '10010',\n", + " '10001',\n", + " '01101',\n", + " '00110',\n", + " '10010',\n", + " '01101',\n", + " '00111',\n", + " '00100',\n", + " '00001',\n", + " '01000',\n", + " '01110',\n", + " '10010',\n", + " '00011',\n", + " '01000',\n", + " '00100',\n", + " '01101',\n", + " '00000',\n", + " '00101',\n", + " '01011',\n", + " '00100',\n", + " '01000',\n", + " '10010',\n", + " '00000',\n", + " '00111',\n", + " '01110',\n", + " '00010',\n", + " '01000',\n", + " '00101',\n", + " '00100',\n", + " '10101',\n", + " '01100',\n", + " '00101',\n", + " '00000',\n", + " '10011',\n", + " '00000',\n", + " '01101',\n", + " '00000',\n", + " '10011',\n", + " '10001',\n", + " '01101',\n", + " '01000',\n", + " '00000',\n", + " '00110',\n", + " '01101',\n", + " '00111',\n", + " '00000',\n", + " '10011',\n", + " '01101',\n", + " '01100',\n", + " '01000',\n", + " '00001',\n", + " '01101',\n", + " '01000',\n", + " '10100',\n", + " '00101',\n", + " '00100',\n", + " '01101',\n", + " '10001',\n", + " '10011',\n", + " '01110',\n", + " '10011',\n", + " '10011',\n", + " '10001',\n", + " '01101',\n", + " '11000',\n", + " '01111',\n", + " '00000',\n", + " '01000',\n", + " '00011',\n", + " '11000',\n", + " '01000',\n", + " '00100',\n", + " '00110',\n", + " '00011',\n", + " '01101',\n", + " '01100',\n", + " '00100',\n", + " '10001',\n", + " '00111',\n", + " '00111',\n", + " '01000',\n", + " '01110',\n", + " '10011',\n", + " '10001',\n", + " '00100',\n", + " '10011',\n", + " '00010',\n", + " '00100',\n", + " '10010',\n", + " '10010',\n", + " '00100',\n", + " '01000',\n", + " '01011',\n", + " '00011',\n", + " '10001',\n", + " '00001',\n", + " '00010',\n", + " '00100',\n", + " '01111',\n", + " '10001',\n", + " '01000',\n", + " '00110',\n", + " '00000',\n", + " '00100',\n", + " '10010',\n", + " '01110',\n", + " '00000',\n", + " '00011',\n", + " '01011',\n", + " '10011',\n", + " '00000',\n", + " '00111',\n", + " '01000',\n", + " '00100',\n", + " '10101',\n", + " '00100',\n", + " '00001',\n", + " '10001',\n", + " '00010',\n", + " '00100',\n", + " '01101',\n", + " '01011',\n", + " '00100',\n", + " '10101',\n", + " '00000',\n", + " '10010',\n", + " '00000',\n", + " '00011',\n", + " '01101',\n", + " '01101',\n", + " '10011',\n", + " '00111',\n", + " '01101',\n", + " '00100',\n", + " '01000',\n", + " '10011',\n", + " '00100',\n", + " '01000',\n", + " '01000',\n", + " '10010',\n", + " '00000',\n", + " '00111',\n", + " '10100',\n", + " '00111',\n", + " '00111',\n", + " '10100',\n", + " '00000',\n", + " '01100',\n", + " '01110',\n", + " '01101',\n", + " '00100',\n", + " '00101',\n", + " '11000',\n", + " '00111',\n", + " '01011',\n", + " '01110',\n", + " '01101',\n", + " '10110',\n", + " '00111',\n", + " '00000',\n", + " '00100',\n", + " '00100',\n", + " '00100',\n", + " '00100',\n", + " '01110',\n", + " '10010',\n", + " '01101',\n", + " '00100',\n", + " '00100',\n", + " '11000',\n", + " '00000',\n", + " '01101',\n", + " '00100',\n", + " '01000',\n", + " '10010',\n", + " '00100',\n", + " '10011',\n", + " '01110',\n", + " '00110',\n", + " '11000',\n", + " '01000',\n", + " '10011',\n", + " '00100',\n", + " '10001',\n", + " '01011',\n", + " '01000',\n", + " '00111',\n", + " '10011',\n", + " '00010',\n", + " '01100',\n", + " '01000',\n", + " '01110',\n", + " '01000',\n", + " '10001',\n", + " '00000',\n", + " '10001',\n", + " '00101',\n", + " '00011',\n", + " '01110',\n", + " '00100',\n", + " '10011',\n", + " '01101',\n", + " '01000',\n", + " '00111',\n", + " '10011',\n", + " '01101',\n", + " '00100',\n", + " '00111',\n", + " '01000',\n", + " '01000',\n", + " '01010',\n", + " '00000',\n", + " '01100',\n", + " '10001',\n", + " '00011',\n", + " '01100',\n", + " '01101',\n", + " '00000',\n", + " '00011',\n", + " '00000',\n", + " '01101',\n", + " '00000',\n", + " '01110',\n", + " '00011',\n", + " '10010',\n", + " '00100',\n", + " '10010',\n", + " '00100',\n", + " '01000',\n", + " '11000',\n", + " '00010',\n", + " '01011',\n", + " '10010',\n", + " '01000',\n", + " '00000',\n", + " '01101',\n", + " '10011',\n", + " '00000',\n", + " '01110',\n", + " '01011',\n", + " '10011',\n", + " '00010',\n", + " '01000',\n", + " '11000',\n", + " '01100',\n", + " '01000',\n", + " '00011',\n", + " '00100',\n", + " '01101',\n", + " '10011',\n", + " '10011',\n", + " '00111',\n", + " '01011',\n", + " '10011',\n", + " '01101',\n", + " '00011',\n", + " '10111',\n", + " '10011',\n", + " '10011',\n", + " '10011',\n", + " '01100',\n", + " '00000',\n", + " '10010',\n", + " '00001',\n", + " '01011',\n", + " '00100',\n", + " '00000',\n", + " '00100',\n", + " '00100',\n", + " '10011',\n", + " '01011',\n", + " '01000',\n", + " '10010',\n", + " '01000',\n", + " '10001',\n", + " '10011',\n", + " '10110',\n", + " '10011',\n", + " '10100',\n", + " '10001',\n", + " '01111',\n", + " '00101',\n", + " '00000',\n", + " '01000',\n", + " '01011',\n", + " '10011',\n", + " '00100',\n", + " '00000',\n", + " '01110',\n", + " '00100',\n", + " '00101',\n", + " '00100',\n", + " '01000',\n", + " '10010',\n", + " '01000',\n", + " '01000',\n", + " '01000',\n", + " '11000',\n", + " '01000',\n", + " '10010',\n", + " '01000',\n", + " '01010',\n", + " '10101',\n", + " '10011',\n", + " '10110',\n", + " '01000',\n", + " '10010',\n", + " '01111',\n", + " '10001',\n", + " '00001',\n", + " '10010',\n", + " '01000',\n", + " '01101',\n", + " '00100',\n", + " '01011',\n", + " '01111',\n", + " '00111',\n", + " '10001',\n", + " '01100',\n", + " '01110',\n", + " '00111',\n", + " '01000',\n", + " '00000',\n", + " '00110',\n", + " '01101',\n", + " '01011',\n", + " '10010',\n", + " '01011',\n", + " '10101',\n", + " '01000',\n", + " '10011',\n", + " '01110',\n", + " '00011',\n", + " '00000',\n", + " '01000',\n", + " '10010',\n", + " '00011',\n", + " '01111',\n", + " '01101',\n", + " '11000',\n", + " '00011',\n", + " '00011',\n", + " '00010',\n", + " '00000',\n", + " '00000',\n", + " '01110',\n", + " '10011',\n", + " '00000',\n", + " '00111',\n", + " '00010',\n", + " '00100',\n", + " '00111',\n", + " '10011',\n", + " '10100',\n", + " '00100',\n", + " '01000',\n", + " '10001',\n", + " '10001',\n", + " '00100',\n", + " '00011',\n", + " '00000',\n", + " '00100',\n", + " '00010',\n", + " '10011',\n", + " '01110',\n", + " '10010',\n", + " '01101',\n", + " '10001',\n", + " '00111',\n", + " '10101',\n", + " '01101',\n", + " '00000',\n", + " '01110',\n", + " '00011',\n", + " '01110',\n", + " '01000',\n", + " '01010',\n", + " '01110',\n", + " '00100',\n", + " '10011',\n", + " '00010',\n", + " '01000',\n", + " '01101',\n", + " '00100',\n", + " '01101',\n", + " '00100',\n", + " '10100',\n", + " '10001',\n", + " '10001',\n", + " '01000',\n", + " '10010',\n", + " '00011',\n", + " '00010',\n", + " '01110',\n", + " '10100',\n", + " '10001',\n", + " '00000',\n", + " '00110',\n", + " '01011',\n", + " '10101',\n", + " '01000',\n", + " '01100',\n", + " '01100',\n", + " '10100',\n", + " '01111',\n", + " '01111',\n", + " '00011',\n", + " '01000',\n", + " '10011',\n", + " '00100',\n", + " '00000',\n", + " '01101',\n", + " '00011',\n", + " '01000',\n", + " '10011',\n", + " '01100',\n", + " '00000',\n", + " '00000',\n", + " '01000',\n", + " '00000',\n", + " '01000',\n", + " '00100',\n", + " '01011',\n", + " '00100',\n", + " '01110',\n", + " '01101',\n", + " '01101',\n", + " '10001',\n", + " '00100',\n", + " '00100',\n", + " '00011',\n", + " '00000',\n", + " '01110',\n", + " '00011',\n", + " '00001',\n", + " '01110',\n", + " '01000',\n", + " '10100',\n", + " '01100',\n", + " '00100',\n", + " '01011',\n", + " '10001',\n", + " '01110',\n", + " '10011',\n", + " '01101',\n", + " '10011',\n", + " '10011',\n", + " '10011',\n", + " '00110',\n", + " '01000',\n", + " '10011',\n", + " '01101',\n", + " ...]" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "[c for c in chunks(c8b, 5)]" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "[0,\n", + " 5,\n", + " 2,\n", + " 0,\n", + " 4,\n", + " 20,\n", + " 14,\n", + " 19,\n", + " 19,\n", + " 0,\n", + " 2,\n", + " 19,\n", + " 7,\n", + " 17,\n", + " 8,\n", + " 14,\n", + " 11,\n", + " 4,\n", + " 19,\n", + " 2,\n", + " 18,\n", + " 4,\n", + " 17,\n", + " 19,\n", + " 7,\n", + " 18,\n", + " 7,\n", + " 19,\n", + " 17,\n", + " 0,\n", + " 7,\n", + " 10,\n", + " 24,\n", + " 14,\n", + " 17,\n", + " 15,\n", + " 5,\n", + " 17,\n", + " 6,\n", + " 4,\n", + " 14,\n", + " 0,\n", + " 3,\n", + " 15,\n", + " 15,\n", + " 9,\n", + " 13,\n", + " 6,\n", + " 11,\n", + " 19,\n", + " 4,\n", + " 17,\n", + " 13,\n", + " 4,\n", + " 5,\n", + " 4,\n", + " 14,\n", + " 5,\n", + " 8,\n", + " 14,\n", + " 17,\n", + " 19,\n", + " 18,\n", + " 3,\n", + " 3,\n", + " 14,\n", + " 4,\n", + " 4,\n", + " 20,\n", + " 12,\n", + " 18,\n", + " 2,\n", + " 17,\n", + " 20,\n", + " 4,\n", + " 17,\n", + " 13,\n", + " 5,\n", + " 4,\n", + " 19,\n", + " 11,\n", + " 0,\n", + " 0,\n", + " 5,\n", + " 18,\n", + " 19,\n", + " 22,\n", + " 8,\n", + " 4,\n", + " 13,\n", + " 19,\n", + " 17,\n", + " 21,\n", + " 14,\n", + " 14,\n", + " 13,\n", + " 4,\n", + " 17,\n", + " 7,\n", + " 20,\n", + " 0,\n", + " 7,\n", + " 17,\n", + " 0,\n", + " 21,\n", + " 4,\n", + " 17,\n", + " 4,\n", + " 4,\n", + " 19,\n", + " 18,\n", + " 21,\n", + " 18,\n", + " 8,\n", + " 4,\n", + " 11,\n", + " 7,\n", + " 11,\n", + " 14,\n", + " 18,\n", + " 19,\n", + " 3,\n", + " 14,\n", + " 0,\n", + " 11,\n", + " 14,\n", + " 24,\n", + " 0,\n", + " 4,\n", + " 18,\n", + " 12,\n", + " 13,\n", + " 13,\n", + " 3,\n", + " 8,\n", + " 6,\n", + " 13,\n", + " 13,\n", + " 17,\n", + " 7,\n", + " 14,\n", + " 7,\n", + " 7,\n", + " 19,\n", + " 18,\n", + " 13,\n", + " 0,\n", + " 14,\n", + " 8,\n", + " 11,\n", + " 13,\n", + " 2,\n", + " 13,\n", + " 18,\n", + " 18,\n", + " 8,\n", + " 2,\n", + " 17,\n", + " 4,\n", + " 0,\n", + " 13,\n", + " 13,\n", + " 4,\n", + " 4,\n", + " 8,\n", + " 8,\n", + " 8,\n", + " 4,\n", + " 17,\n", + " 22,\n", + " 19,\n", + " 0,\n", + " 13,\n", + " 4,\n", + " 18,\n", + " 17,\n", + " 21,\n", + " 14,\n", + " 6,\n", + " 8,\n", + " 4,\n", + " 8,\n", + " 24,\n", + " 22,\n", + " 18,\n", + " 18,\n", + " 3,\n", + " 6,\n", + " 15,\n", + " 21,\n", + " 14,\n", + " 8,\n", + " 0,\n", + " 8,\n", + " 18,\n", + " 0,\n", + " 14,\n", + " 0,\n", + " 4,\n", + " 14,\n", + " 0,\n", + " 4,\n", + " 3,\n", + " 17,\n", + " 13,\n", + " 8,\n", + " 19,\n", + " 17,\n", + " 13,\n", + " 23,\n", + " 4,\n", + " 8,\n", + " 6,\n", + " 17,\n", + " 15,\n", + " 18,\n", + " 18,\n", + " 7,\n", + " 0,\n", + " 3,\n", + " 7,\n", + " 3,\n", + " 19,\n", + " 14,\n", + " 8,\n", + " 15,\n", + " 0,\n", + " 0,\n", + " 19,\n", + " 4,\n", + " 23,\n", + " 4,\n", + " 13,\n", + " 13,\n", + " 4,\n", + " 18,\n", + " 0,\n", + " 6,\n", + " 17,\n", + " 14,\n", + " 1,\n", + " 19,\n", + " 11,\n", + " 4,\n", + " 18,\n", + " 17,\n", + " 13,\n", + " 17,\n", + " 14,\n", + " 8,\n", + " 17,\n", + " 24,\n", + " 15,\n", + " 1,\n", + " 6,\n", + " 4,\n", + " 3,\n", + " 2,\n", + " 11,\n", + " 11,\n", + " 8,\n", + " 22,\n", + " 0,\n", + " 11,\n", + " 0,\n", + " 11,\n", + " 4,\n", + " 4,\n", + " 13,\n", + " 8,\n", + " 6,\n", + " 17,\n", + " 17,\n", + " 13,\n", + " 22,\n", + " 24,\n", + " 17,\n", + " 11,\n", + " 8,\n", + " 12,\n", + " 11,\n", + " 15,\n", + " 18,\n", + " 19,\n", + " 14,\n", + " 11,\n", + " 4,\n", + " 5,\n", + " 19,\n", + " 17,\n", + " 3,\n", + " 12,\n", + " 20,\n", + " 0,\n", + " 17,\n", + " 8,\n", + " 4,\n", + " 4,\n", + " 4,\n", + " 8,\n", + " 8,\n", + " 0,\n", + " 14,\n", + " 11,\n", + " 13,\n", + " 4,\n", + " 22,\n", + " 18,\n", + " 0,\n", + " 14,\n", + " 7,\n", + " 17,\n", + " 19,\n", + " 11,\n", + " 18,\n", + " 19,\n", + " 14,\n", + " 1,\n", + " 4,\n", + " 19,\n", + " 13,\n", + " 18,\n", + " 11,\n", + " 21,\n", + " 5,\n", + " 8,\n", + " 21,\n", + " 3,\n", + " 14,\n", + " 21,\n", + " 19,\n", + " 15,\n", + " 14,\n", + " 0,\n", + " 4,\n", + " 4,\n", + " 8,\n", + " 18,\n", + " 2,\n", + " 8,\n", + " 14,\n", + " 7,\n", + " 8,\n", + " 15,\n", + " 18,\n", + " 4,\n", + " 21,\n", + " 4,\n", + " 4,\n", + " 3,\n", + " 19,\n", + " 4,\n", + " 22,\n", + " 5,\n", + " 0,\n", + " 17,\n", + " 13,\n", + " 7,\n", + " 4,\n", + " 1,\n", + " 11,\n", + " 4,\n", + " 0,\n", + " 14,\n", + " 19,\n", + " 14,\n", + " 7,\n", + " 19,\n", + " 19,\n", + " 19,\n", + " 4,\n", + " 15,\n", + " 13,\n", + " 2,\n", + " 10,\n", + " 0,\n", + " 14,\n", + " 13,\n", + " 7,\n", + " 22,\n", + " 4,\n", + " 19,\n", + " 12,\n", + " 21,\n", + " 24,\n", + " 15,\n", + " 17,\n", + " 17,\n", + " 4,\n", + " 14,\n", + " 13,\n", + " 13,\n", + " 0,\n", + " 18,\n", + " 6,\n", + " 3,\n", + " 4,\n", + " 3,\n", + " 14,\n", + " 4,\n", + " 4,\n", + " 4,\n", + " 14,\n", + " 0,\n", + " 0,\n", + " 12,\n", + " 19,\n", + " 2,\n", + " 8,\n", + " 2,\n", + " 19,\n", + " 19,\n", + " 8,\n", + " 5,\n", + " 13,\n", + " 0,\n", + " 3,\n", + " 17,\n", + " 4,\n", + " 18,\n", + " 17,\n", + " 19,\n", + " 18,\n", + " 4,\n", + " 17,\n", + " 14,\n", + " 18,\n", + " 4,\n", + " 19,\n", + " 17,\n", + " 7,\n", + " 2,\n", + " 8,\n", + " 2,\n", + " 19,\n", + " 15,\n", + " 18,\n", + " 0,\n", + " 0,\n", + " 4,\n", + " 7,\n", + " 11,\n", + " 3,\n", + " 7,\n", + " 18,\n", + " 5,\n", + " 23,\n", + " 18,\n", + " 14,\n", + " 0,\n", + " 14,\n", + " 19,\n", + " 2,\n", + " 19,\n", + " 1,\n", + " 1,\n", + " 18,\n", + " 14,\n", + " 4,\n", + " 8,\n", + " 17,\n", + " 13,\n", + " 18,\n", + " 0,\n", + " 3,\n", + " 11,\n", + " 24,\n", + " 19,\n", + " 17,\n", + " 17,\n", + " 20,\n", + " 13,\n", + " 17,\n", + " 2,\n", + " 4,\n", + " 15,\n", + " 19,\n", + " 19,\n", + " 7,\n", + " 17,\n", + " 4,\n", + " 20,\n", + " 7,\n", + " 13,\n", + " 10,\n", + " 19,\n", + " 0,\n", + " 2,\n", + " 4,\n", + " 2,\n", + " 4,\n", + " 4,\n", + " 11,\n", + " 17,\n", + " 22,\n", + " 13,\n", + " 8,\n", + " 17,\n", + " 4,\n", + " 4,\n", + " 4,\n", + " 0,\n", + " 4,\n", + " 18,\n", + " 4,\n", + " 4,\n", + " 4,\n", + " 8,\n", + " 3,\n", + " 8,\n", + " 18,\n", + " 14,\n", + " 6,\n", + " 2,\n", + " 4,\n", + " 14,\n", + " 12,\n", + " 13,\n", + " 17,\n", + " 19,\n", + " 4,\n", + " 9,\n", + " 7,\n", + " 0,\n", + " 6,\n", + " 0,\n", + " 1,\n", + " 18,\n", + " 4,\n", + " 13,\n", + " 8,\n", + " 19,\n", + " 11,\n", + " 22,\n", + " 19,\n", + " 17,\n", + " 13,\n", + " 1,\n", + " 12,\n", + " 8,\n", + " 4,\n", + " 11,\n", + " 18,\n", + " 0,\n", + " 17,\n", + " 4,\n", + " 19,\n", + " 4,\n", + " 18,\n", + " 17,\n", + " 13,\n", + " 6,\n", + " 18,\n", + " 13,\n", + " 7,\n", + " 4,\n", + " 1,\n", + " 8,\n", + " 14,\n", + " 18,\n", + " 3,\n", + " 8,\n", + " 4,\n", + " 13,\n", + " 0,\n", + " 5,\n", + " 11,\n", + " 4,\n", + " 8,\n", + " 18,\n", + " 0,\n", + " 7,\n", + " 14,\n", + " 2,\n", + " 8,\n", + " 5,\n", + " 4,\n", + " 21,\n", + " 12,\n", + " 5,\n", + " 0,\n", + " 19,\n", + " 0,\n", + " 13,\n", + " 0,\n", + " 19,\n", + " 17,\n", + " 13,\n", + " 8,\n", + " 0,\n", + " 6,\n", + " 13,\n", + " 7,\n", + " 0,\n", + " 19,\n", + " 13,\n", + " 12,\n", + " 8,\n", + " 1,\n", + " 13,\n", + " 8,\n", + " 20,\n", + " 5,\n", + " 4,\n", + " 13,\n", + " 17,\n", + " 19,\n", + " 14,\n", + " 19,\n", + " 19,\n", + " 17,\n", + " 13,\n", + " 24,\n", + " 15,\n", + " 0,\n", + " 8,\n", + " 3,\n", + " 24,\n", + " 8,\n", + " 4,\n", + " 6,\n", + " 3,\n", + " 13,\n", + " 12,\n", + " 4,\n", + " 17,\n", + " 7,\n", + " 7,\n", + " 8,\n", + " 14,\n", + " 19,\n", + " 17,\n", + " 4,\n", + " 19,\n", + " 2,\n", + " 4,\n", + " 18,\n", + " 18,\n", + " 4,\n", + " 8,\n", + " 11,\n", + " 3,\n", + " 17,\n", + " 1,\n", + " 2,\n", + " 4,\n", + " 15,\n", + " 17,\n", + " 8,\n", + " 6,\n", + " 0,\n", + " 4,\n", + " 18,\n", + " 14,\n", + " 0,\n", + " 3,\n", + " 11,\n", + " 19,\n", + " 0,\n", + " 7,\n", + " 8,\n", + " 4,\n", + " 21,\n", + " 4,\n", + " 1,\n", + " 17,\n", + " 2,\n", + " 4,\n", + " 13,\n", + " 11,\n", + " 4,\n", + " 21,\n", + " 0,\n", + " 18,\n", + " 0,\n", + " 3,\n", + " 13,\n", + " 13,\n", + " 19,\n", + " 7,\n", + " 13,\n", + " 4,\n", + " 8,\n", + " 19,\n", + " 4,\n", + " 8,\n", + " 8,\n", + " 18,\n", + " 0,\n", + " 7,\n", + " 20,\n", + " 7,\n", + " 7,\n", + " 20,\n", + " 0,\n", + " 12,\n", + " 14,\n", + " 13,\n", + " 4,\n", + " 5,\n", + " 24,\n", + " 7,\n", + " 11,\n", + " 14,\n", + " 13,\n", + " 22,\n", + " 7,\n", + " 0,\n", + " 4,\n", + " 4,\n", + " 4,\n", + " 4,\n", + " 14,\n", + " 18,\n", + " 13,\n", + " 4,\n", + " 4,\n", + " 24,\n", + " 0,\n", + " 13,\n", + " 4,\n", + " 8,\n", + " 18,\n", + " 4,\n", + " 19,\n", + " 14,\n", + " 6,\n", + " 24,\n", + " 8,\n", + " 19,\n", + " 4,\n", + " 17,\n", + " 11,\n", + " 8,\n", + " 7,\n", + " 19,\n", + " 2,\n", + " 12,\n", + " 8,\n", + " 14,\n", + " 8,\n", + " 17,\n", + " 0,\n", + " 17,\n", + " 5,\n", + " 3,\n", + " 14,\n", + " 4,\n", + " 19,\n", + " 13,\n", + " 8,\n", + " 7,\n", + " 19,\n", + " 13,\n", + " 4,\n", + " 7,\n", + " 8,\n", + " 8,\n", + " 10,\n", + " 0,\n", + " 12,\n", + " 17,\n", + " 3,\n", + " 12,\n", + " 13,\n", + " 0,\n", + " 3,\n", + " 0,\n", + " 13,\n", + " 0,\n", + " 14,\n", + " 3,\n", + " 18,\n", + " 4,\n", + " 18,\n", + " 4,\n", + " 8,\n", + " 24,\n", + " 2,\n", + " 11,\n", + " 18,\n", + " 8,\n", + " 0,\n", + " 13,\n", + " 19,\n", + " 0,\n", + " 14,\n", + " 11,\n", + " 19,\n", + " 2,\n", + " 8,\n", + " 24,\n", + " 12,\n", + " 8,\n", + " 3,\n", + " 4,\n", + " 13,\n", + " 19,\n", + " 19,\n", + " 7,\n", + " 11,\n", + " 19,\n", + " 13,\n", + " 3,\n", + " 23,\n", + " 19,\n", + " 19,\n", + " 19,\n", + " 12,\n", + " 0,\n", + " 18,\n", + " 1,\n", + " 11,\n", + " 4,\n", + " 0,\n", + " 4,\n", + " 4,\n", + " 19,\n", + " 11,\n", + " 8,\n", + " 18,\n", + " 8,\n", + " 17,\n", + " 19,\n", + " 22,\n", + " 19,\n", + " 20,\n", + " 17,\n", + " 15,\n", + " 5,\n", + " 0,\n", + " 8,\n", + " 11,\n", + " 19,\n", + " 4,\n", + " 0,\n", + " 14,\n", + " 4,\n", + " 5,\n", + " 4,\n", + " 8,\n", + " 18,\n", + " 8,\n", + " 8,\n", + " 8,\n", + " 24,\n", + " 8,\n", + " 18,\n", + " 8,\n", + " 10,\n", + " 21,\n", + " 19,\n", + " 22,\n", + " 8,\n", + " 18,\n", + " 15,\n", + " 17,\n", + " 1,\n", + " 18,\n", + " 8,\n", + " 13,\n", + " 4,\n", + " 11,\n", + " 15,\n", + " 7,\n", + " 17,\n", + " 12,\n", + " 14,\n", + " 7,\n", + " 8,\n", + " 0,\n", + " 6,\n", + " 13,\n", + " 11,\n", + " 18,\n", + " 11,\n", + " 21,\n", + " 8,\n", + " 19,\n", + " 14,\n", + " 3,\n", + " 0,\n", + " 8,\n", + " 18,\n", + " 3,\n", + " 15,\n", + " 13,\n", + " 24,\n", + " 3,\n", + " 3,\n", + " 2,\n", + " 0,\n", + " 0,\n", + " 14,\n", + " 19,\n", + " 0,\n", + " 7,\n", + " 2,\n", + " 4,\n", + " 7,\n", + " 19,\n", + " 20,\n", + " 4,\n", + " 8,\n", + " 17,\n", + " 17,\n", + " 4,\n", + " 3,\n", + " 0,\n", + " 4,\n", + " 2,\n", + " 19,\n", + " 14,\n", + " 18,\n", + " 13,\n", + " 17,\n", + " 7,\n", + " 21,\n", + " 13,\n", + " 0,\n", + " 14,\n", + " 3,\n", + " 14,\n", + " 8,\n", + " 10,\n", + " 14,\n", + " 4,\n", + " 19,\n", + " 2,\n", + " 8,\n", + " 13,\n", + " 4,\n", + " 13,\n", + " 4,\n", + " 20,\n", + " 17,\n", + " 17,\n", + " 8,\n", + " 18,\n", + " 3,\n", + " 2,\n", + " 14,\n", + " 20,\n", + " 17,\n", + " 0,\n", + " 6,\n", + " 11,\n", + " 21,\n", + " 8,\n", + " 12,\n", + " 12,\n", + " 20,\n", + " 15,\n", + " 15,\n", + " 3,\n", + " 8,\n", + " 19,\n", + " 4,\n", + " 0,\n", + " 13,\n", + " 3,\n", + " 8,\n", + " 19,\n", + " 12,\n", + " 0,\n", + " 0,\n", + " 8,\n", + " 0,\n", + " 8,\n", + " 4,\n", + " 11,\n", + " 4,\n", + " 14,\n", + " 13,\n", + " 13,\n", + " 17,\n", + " 4,\n", + " 4,\n", + " 3,\n", + " 0,\n", + " 14,\n", + " 3,\n", + " 1,\n", + " 14,\n", + " 8,\n", + " 20,\n", + " 12,\n", + " 4,\n", + " 11,\n", + " 17,\n", + " 14,\n", + " 19,\n", + " 13,\n", + " 19,\n", + " 19,\n", + " 19,\n", + " 6,\n", + " 8,\n", + " 19,\n", + " 13,\n", + " ...]" + ] + }, + "execution_count": 9, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "[(int(c, 2)) for c in chunks(c8b, 5)]" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "24" + ] + }, + "execution_count": 10, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "max([(int(c, 2)) for c in chunks(c8b, 5)])" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'y'" + ] + }, + "execution_count": 11, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "max([chr(int(c, 2) + ord('a')) for c in chunks(c8b, 5)])" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "def cadenus_letter(n, doubled='v'):\n", + " letter = chr(n + ord('a'))\n", + " if letter > doubled:\n", + " letter = chr(n + ord('a') + 1)\n", + " return letter" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'afcaeuottacthrioletcserthshtrahkyorpfrgeoadppjnglternefeofiortsddoeeumscruernfetlaafstwientrvoonerhuahravereetsvsielhlostdoaloyaesmnndignnrhohhtsnaoilncnssicreanneeiiierwtanesrvogieiywssdgpvoiaisaoaeoaedrnitrnxeigrpsshadhdtoipaatexennesagrobtlesrnroirypbgedclliwalaleenigrrnwyrlimlpstoleftrdmuarieeeiiaolnewsaohrtlstobetnslvfivdovtpoaeeisciohipseveedtewfarnhebleaotohtttepnckaonhwetmvyprreonnasgdedoeeeoaamtcicttifnadresrtserosetrhcictpsaaehldhsfxsoaotctbbsoeirnsadlytrrunrceptthreuhnktaceceelrwnireeeaeseeeidisogceomnrtejhagabsenitlwtrnbmielsaretesrngsnhebiosdienafleisahocifevmfatanatrniagnhatnmibniufenrtottrnypaidyiegdnmerhhiotretcesseildrbceprigaesoadltahievebrcenlevasadnnthneiteiisahuhhuamonefyhlonwhaeeeeosneeyaneisetogyiterlihtcmioirarfdoetnihtnehiikamrdmnadanaodseseiyclsiantaoltciymidentthltndxtttmasbleaeetlisirtwturpfailteaoefeisiiiyisikvtwisprbsinelphrmohiagnlslvitodaisdpnyddcaaotahcehtueirredaectosnrhvnaodoikoetcineneurrisdcouraglvimmuppditeanditmaaiaieleonnreedaodboiumelrotntttgitnrlrienniklysogstcifypipvidvssmnceiasiitsnneatitomrhbnhnidprlrepoynalsnvsdosanesitfaenltgodatteeaisicrootmsmfhauenirsghynweintegodiileedtarnosrcaaendtcuttfdrbehtmfitoordruiaoyaanoeeldoinhusgiteaoriecevemntratmtfpeucutahamtnewonicdeemrpaolitoafesoosspfnlneeootachllirssxsofpdftfrnpraeeaylonahautntcntcbawloneftoatecvowdlwvnneedtiioigtegmtaheeatefaaeprrcrosheerrpalediengidrreouhvesuroytnsosinuiuiofprda'" + ] + }, + "execution_count": 13, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "c8bl = ''.join([cadenus_letter(int(c, 2), doubled='z') for c in chunks(c8b, 5)])\n", + "c8bl" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "('a', 'y')" + ] + }, + "execution_count": 14, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "min(c8bl), max(c8bl)" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(1400, 56.0)" + ] + }, + "execution_count": 15, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "len(c8bl), len(c8bl) / 25" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "" + ] + }, + "execution_count": 16, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXIAAAD+CAYAAAAnIY4eAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAFqNJREFUeJzt3X+0ZWV93/H3RygaAcWpZuSXHbQSHBfaqKBWU65GDe0y\n4GoahLaR2NQ2EqNmWZvBVLlkrRLM72pj06hDISrt1CiFrGgZ0aP4C4yiosMEqJmU0TCmBhNNNA7h\n2z/OHuZwufecM/uee+c+975fa511z37OfvZ+zr7nfM5znr332akqJEntesjhboAkaXkMcklqnEEu\nSY0zyCWpcQa5JDXOIJekxo0N8iTbk+xLcutI2ZlJbk5yS5LPJDlj5LGLk9yRZHeSF61kwyVJQ5N6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yB4U6vNTfkpNlL8rMMv3k/neH//UaG34w+fFgbNsHh\nHiOX1rKzD3cDtOoexnBf2uemGcJZK+yRS1LjDvfhh5KkZTLIJalxBrkkNc4gl6TGGeSS1Lj/D0NR\nNbxLWGOjAAAAAElFTkSuQmCC\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "freqs_8b = pd.Series(collections.Counter([l.lower() for l in c8bl if l in string.ascii_letters]))\n", + "freqs_8b.plot(kind='bar')" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "" + ] + }, + "execution_count": 17, + "metadata": {}, + "output_type": "execute_result" + }, + { + "data": { + "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYYAAAD+CAYAAAA+hqL9AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAHrNJREFUeJzt3X+cXXV95/HXG7KJESJhkIYAAVJ3EOLqQ40muv7YcZGQ\n7iqwWwphtzC1sz4qUdF9dPswcVcyU7oW3G0pdhdqLUISlSYVhdjFMGPira4aBhE0JaZJVsdNBjK4\ngwna+iMpn/3jfIc553J/Z37cTN7Px+M+7vd8z/f7Pd9z58z93PP9nnuuIgIzM7MxJ013B8zMrL04\nMJiZWYEDg5mZFTgwmJlZgQODmZkVODCYmVlB3cAgaa2kJyTtlPRZSXMkdUgakLRHUr+k+WXl90ra\nLWlFLn9pamOvpNtz+XMkbUr5OySdn1vXnbaxR9L1E7njZmZWWc3AIOkC4N3AayPilcDJwCpgDTAQ\nERcC29IykpYA1wBLgJXAHZKUmrsT6ImITqBT0sqU3wOMpvzbgFtTWx3ATcCy9FiXD0BmZjY56p0x\nPAscAV4saRbwYuBJ4HJgfSqzHrgypa8A7o2IIxExBOwDlktaCMyLiMFUbkOuTr6t+4BLUvoyoD8i\nDkXEIWCALNiYmdkkqhkYIuIZ4I+A/0sWEA5FxACwICJGUrERYEF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+s0fYryCJyANsjYle1srk6SxmfRPxq\nRDzWQJ2Lyb7DAbAtJulS3TSZ+qbUt69HRMWzjDqvGRExNNF9a8RU90vS3wEXRRP/PNX6WK9v6bh5\nfiK53nHT6mvRyvHZjPRBYyXw3YjYK2kh8MqI6J/g7VyQWzwKjER2n7VadVYDV5MFkb8CNtX7n5Z0\nG1kQ/jnwDbK5zW+OjVhUqfMdYAtZoHop8AngFxHxGzXqfAC4nixY/QXZ0PgRZRen7I2IF5w5SPqd\niPhEbnkp8N6I+O1a+1RoY6YGBrPJIulu4L9HxBPT3Rc7dpL+kCwYVLwKr07deWRDPP+J7KrBOTXK\nvj4iHinLuz4iNtSo0wd8qtIHVUlLGvlQ2goHBrMmSdoNvIxskm/ah9Js6kl6P9kZ1lKy4+BrZGd0\n26e1YxNkps0xmE2FldPdAZt2LyKbb/x2vaGq45HPGMzMrGCmXa5qZmbHyIHBzMwKHBjMzKzAgcHM\nzAocGMzMrOD/A5ZV4vqjDJn1AAAAAElFTkSuQmCC\n", + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "freqs = pd.Series(english_counts)\n", + "freqs.plot(kind='bar')" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "['afcaeuottacthrioletcserthshtrahkyorpfrgeoadppjnglternefe',\n", + " 'ofiortsddoeeumscruernfetlaafstwientrvoonerhuahravereetsv',\n", + " 'sielhlostdoaloyaesmnndignnrhohhtsnaoilncnssicreanneeiiie',\n", + " 'rwtanesrvogieiywssdgpvoiaisaoaeoaedrnitrnxeigrpsshadhdto',\n", + " 'ipaatexennesagrobtlesrnroirypbgedclliwalaleenigrrnwyrlim',\n", + " 'lpstoleftrdmuarieeeiiaolnewsaohrtlstobetnslvfivdovtpoaee',\n", + " 'isciohipseveedtewfarnhebleaotohtttepnckaonhwetmvyprreonn',\n", + " 'asgdedoeeeoaamtcicttifnadresrtserosetrhcictpsaaehldhsfxs',\n", + " 'oaotctbbsoeirnsadlytrrunrceptthreuhnktaceceelrwnireeeaes',\n", + " 'eeeidisogceomnrtejhagabsenitlwtrnbmielsaretesrngsnhebios',\n", + " 'dienafleisahocifevmfatanatrniagnhatnmibniufenrtottrnypai',\n", + " 'dyiegdnmerhhiotretcesseildrbceprigaesoadltahievebrcenlev',\n", + " 'asadnnthneiteiisahuhhuamonefyhlonwhaeeeeosneeyaneisetogy',\n", + " 'iterlihtcmioirarfdoetnihtnehiikamrdmnadanaodseseiyclsian',\n", + " 'taoltciymidentthltndxtttmasbleaeetlisirtwturpfailteaoefe',\n", + " 'isiiiyisikvtwisprbsinelphrmohiagnlslvitodaisdpnyddcaaota',\n", + " 'hcehtueirredaectosnrhvnaodoikoetcineneurrisdcouraglvimmu',\n", + " 'ppditeanditmaaiaieleonnreedaodboiumelrotntttgitnrlrienni',\n", + " 'klysogstcifypipvidvssmnceiasiitsnneatitomrhbnhnidprlrepo',\n", + " 'ynalsnvsdosanesitfaenltgodatteeaisicrootmsmfhauenirsghyn',\n", + " 'weintegodiileedtarnosrcaaendtcuttfdrbehtmfitoordruiaoyaa',\n", + " 'noeeldoinhusgiteaoriecevemntratmtfpeucutahamtnewonicdeem',\n", + " 'rpaolitoafesoosspfnlneeootachllirssxsofpdftfrnpraeeaylon',\n", + " 'ahautntcntcbawloneftoatecvowdlwvnneedtiioigtegmtaheeatef',\n", + " 'aaeprrcrosheerrpalediengidrreouhvesuroytnsosinuiuiofprda']" + ] + }, + "execution_count": 18, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "rows = chunks(c8bl, len(c8bl) // 25)\n", + "rows" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "['a..ae....a..h....e..se..hsh..ah....p...e.a.pp.....e..e.e',\n", + " '......s...ee..s...e...e..aa.s...e.......e.h.ah.a.e.ee.s.',\n", + " 's.e.h..s...a...aes.........h.hh.s.a......ss...ea..ee...e',\n", + " '...a.es.....e...ss..p...a.sa.ae.ae........e...pssha.h...',\n", + " '.paa.e.e..esa......es.......p..e......a.a.ee............',\n", + " '.ps...e......a..eee..a...e.sa.h...s...e..s.........p.aee',\n", + " '.s...h.pse.ee..e..a..he..ea...h...ep...a..h.e....p..e...',\n", + " 'as..e..eee.aa..........a..es..se..se..h....psaaeh..hs..s',\n", + " '.a......s.e...sa..........ep..h.e.h...a.e.ee......eeeaes',\n", + " 'eee...s...e.....e.ha.a.se...........e.sa.e.es...s.he...s',\n", + " '..e.a..e.sah....e...a.a.a....a..ha.........e.........pa.',\n", + " '...e....e.hh....e..esse......ep...aes.a...ah.e.e...e..e.',\n", + " 'asa....h.e..e..sah.hh.a...e..h....haeeee.s.ee.a.e.se....',\n", + " '..e...h.......a....e...h..eh...a.....a.a.a..sese....s.a.',\n", + " '.a.........e...h.........as..eaee...s.......p.a...ea.e.e',\n", + " '.s.....s......sp..s..e.ph...h.a...s......a.s.p.....aa..a',\n", + " 'h.eh..e...e.ae...s..h..a......e....e.e....s.....a.......',\n", + " 'pp...ea.....aa.a.e.e....ee.a.......e................e...',\n", + " '...s..s.....p.p....ss...e.as...s..ea......h..h...p...ep.',\n", + " '..a.s..s..sa.es...ae......a..eea.s.......s..ha.e...s.h..',\n", + " '.e...e......ee..a...s..aae...........eh............a..aa',\n", + " '..ee.....h.s...ea...e.e.e....a....pe....aha...e......ee.',\n", + " '.pa.....a.es..ssp....ee...a.h....ss.s..p......p.aeea....',\n", + " 'aha.........a....e...a.e..........ee........e...aheea.e.',\n", + " 'aaep.....shee..pa.e..e......e..h.es......s.s........p..a']" + ] + }, + "execution_count": 19, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "chunks(''.join([l if l in 'phase' else '.' for l in c8bl]), 56)" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "['aosriliaoeddaitihpkywnraa',\n", + " 'ffiwppssaeiystascplneopha',\n", + " 'cietascgoeeiaeoiedyaieaae',\n", + " 'aolaatidtinedrlihislneoup',\n", + " 'erhntooecdagnltittostlltr',\n", + " 'utleelhdtifdnicyuegnedinr',\n", + " 'ososxeiobslnthiieasvgottc',\n", + " 'tdsrefpeboemhtysintsoiocr',\n", + " 'tdtvntsesgiencmirdcddnano',\n", + " 'aodonreeocsremikriioihfts',\n", + " 'ceogedvoeeahiidvetfsiuech',\n", + " 'teaismeaiohhtoetdmyalssbe',\n", + " 'huleauearmoieinwaapnegoae',\n", + " 'rmoigadmnncoirtieaieeiowr',\n", + " 'isyyrrttsritiatscipsdtslr',\n", + " 'ocawoiecatfrsrhptavitesop',\n", + " 'lresbewideeeaflroiitaapna',\n", + " 'eusstefcljvthdtbsedfrofel',\n", + " 'temdleatyhmcuonsnlvanrnfe',\n", + " 'crngeirttafehedireseoiltd',\n", + " 'snnpsinirgashtxnhosnsenoi',\n", + " 'efdvrahfratsuntevnmlrceae',\n", + " 'reionoenubaeaitlnnntceetn',\n", + " 'ttgirlbansnimhtparcgavoeg',\n", + " 'hlnaonldrealotmhoeeoaeoci',\n", + " 'saniieercntdnnardeidemtvd',\n", + " 'harsrwaeeirreesmodaannaor',\n", + " 'tfhaysosptnbfhboiastdtcwr',\n", + " 'rsoopatrtlicyilhkoittrhde',\n", + " 'athaboottwaehieiodiecallo',\n", + " 'hwheghhshtgplkaaebteutlwu',\n", + " 'kitoerterrnroaegtosatmivh',\n", + " 'yesadttrenhinmencinittrnv',\n", + " 'onnecltoubagwrtliunsffsne',\n", + " 'rtadlseshmtahdlsnmeidpses',\n", + " 'prorltpenineamileeacrexeu',\n", + " 'fviniontkemsensvnltrbusdr',\n", + " 'roliwbcrtlioeaiierioecoto',\n", + " 'gontaekhasbaedrtuotohufiy',\n", + " 'encrltaccandeatortotttpit',\n", + " 'oennanoierilonwdrnmmmadon',\n", + " 'arsxlsncceutsataitrsfhfis',\n", + " 'dhseelhtetfanouisthmiatgo',\n", + " 'puiievwpeeehedrsdtbftmfts',\n", + " 'pacgnfeslsniespdcgnhotrei',\n", + " 'jhrriitarrreyefpoihaonngn',\n", + " 'nrepgvmawntvasanutnurepmu',\n", + " 'gaasrdvengoeneiyrniedwrti',\n", + " 'lvnsroyhistbeildardnroaau',\n", + " 'tenhnvplrntriytdglpiunehi',\n", + " 'ereawtrdehrcsceclrrriieeo',\n", + " 'reedyprheeneelaavilsacaef',\n", + " 'neihroesebyntsoaiergodyap',\n", + " 'etidlaofaiploieomnehyeltr',\n", + " 'fsitienxeoaegaftmnpyaeoed',\n", + " 'eveomensssivyneauionamnfa']" + ] + }, + "execution_count": 20, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "columns = [''.join(c) for c in zip(*rows)]\n", + "columns" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "{'a': [(0, 0),\n", + " (0, 3),\n", + " (0, 9),\n", + " (0, 29),\n", + " (0, 41),\n", + " (1, 25),\n", + " (1, 26),\n", + " (1, 44),\n", + " (1, 47),\n", + " (2, 11),\n", + " (2, 15),\n", + " (2, 34),\n", + " (2, 47),\n", + " (3, 3),\n", + " (3, 24),\n", + " (3, 27),\n", + " (3, 29),\n", + " (3, 32),\n", + " (3, 50),\n", + " (4, 2),\n", + " (4, 3),\n", + " (4, 12),\n", + " (4, 38),\n", + " (4, 40),\n", + " (5, 13),\n", + " (5, 21),\n", + " (5, 28),\n", + " (5, 53),\n", + " (6, 18),\n", + " (6, 26),\n", + " (6, 39),\n", + " (7, 0),\n", + " (7, 11),\n", + " (7, 12),\n", + " (7, 23),\n", + " (7, 45),\n", + " (7, 46),\n", + " (8, 1),\n", + " (8, 15),\n", + " (8, 38),\n", + " (8, 53),\n", + " (9, 19),\n", + " (9, 21),\n", + " (9, 39),\n", + " (10, 4),\n", + " (10, 10),\n", + " (10, 20),\n", + " (10, 22),\n", + " (10, 24),\n", + " (10, 29),\n", + " (10, 33),\n", + " (10, 54),\n", + " (11, 34),\n", + " (11, 38),\n", + " (11, 42),\n", + " (12, 0),\n", + " (12, 2),\n", + " (12, 16),\n", + " (12, 22),\n", + " (12, 35),\n", + " (12, 46),\n", + " (13, 14),\n", + " (13, 31),\n", + " (13, 37),\n", + " (13, 39),\n", + " (13, 41),\n", + " (13, 54),\n", + " (14, 1),\n", + " (14, 25),\n", + " (14, 30),\n", + " (14, 46),\n", + " (14, 51),\n", + " (15, 30),\n", + " (15, 41),\n", + " (15, 51),\n", + " (15, 52),\n", + " (15, 55),\n", + " (16, 12),\n", + " (16, 23),\n", + " (16, 48),\n", + " (17, 6),\n", + " (17, 12),\n", + " (17, 13),\n", + " (17, 15),\n", + " (17, 27),\n", + " (18, 26),\n", + " (18, 35),\n", + " (19, 2),\n", + " (19, 11),\n", + " (19, 18),\n", + " (19, 26),\n", + " (19, 31),\n", + " (19, 45),\n", + " (20, 16),\n", + " (20, 23),\n", + " (20, 24),\n", + " (20, 51),\n", + " (20, 54),\n", + " (20, 55),\n", + " (21, 16),\n", + " (21, 29),\n", + " (21, 40),\n", + " (21, 42),\n", + " (22, 2),\n", + " (22, 8),\n", + " (22, 26),\n", + " (22, 48),\n", + " (22, 51),\n", + " (23, 0),\n", + " (23, 2),\n", + " (23, 12),\n", + " (23, 21),\n", + " (23, 48),\n", + " (23, 52),\n", + " (24, 0),\n", + " (24, 1),\n", + " (24, 16),\n", + " (24, 55)],\n", + " 'e': [(0, 4),\n", + " (0, 17),\n", + " (0, 21),\n", + " (0, 39),\n", + " (0, 50),\n", + " (0, 53),\n", + " (0, 55),\n", + " (1, 10),\n", + " (1, 11),\n", + " (1, 18),\n", + " (1, 22),\n", + " (1, 32),\n", + " (1, 40),\n", + " (1, 49),\n", + " (1, 51),\n", + " (1, 52),\n", + " (2, 2),\n", + " (2, 16),\n", + " (2, 46),\n", + " (2, 50),\n", + " (2, 51),\n", + " (2, 55),\n", + " (3, 5),\n", + " (3, 12),\n", + " (3, 30),\n", + " (3, 33),\n", + " (3, 42),\n", + " (4, 5),\n", + " (4, 7),\n", + " (4, 10),\n", + " (4, 19),\n", + " (4, 31),\n", + " (4, 42),\n", + " (4, 43),\n", + " (5, 6),\n", + " (5, 16),\n", + " (5, 17),\n", + " (5, 18),\n", + " (5, 25),\n", + " (5, 38),\n", + " (5, 54),\n", + " (5, 55),\n", + " (6, 9),\n", + " (6, 11),\n", + " (6, 12),\n", + " (6, 15),\n", + " (6, 22),\n", + " (6, 25),\n", + " (6, 34),\n", + " (6, 44),\n", + " (6, 52),\n", + " (7, 4),\n", + " (7, 7),\n", + " (7, 8),\n", + " (7, 9),\n", + " (7, 26),\n", + " (7, 31),\n", + " (7, 35),\n", + " (7, 47),\n", + " (8, 10),\n", + " (8, 26),\n", + " (8, 32),\n", + " (8, 40),\n", + " (8, 42),\n", + " (8, 43),\n", + " (8, 50),\n", + " (8, 51),\n", + " (8, 52),\n", + " (8, 54),\n", + " (9, 0),\n", + " (9, 1),\n", + " (9, 2),\n", + " (9, 10),\n", + " (9, 16),\n", + " (9, 24),\n", + " (9, 36),\n", + " (9, 41),\n", + " (9, 43),\n", + " (9, 51),\n", + " (10, 2),\n", + " (10, 7),\n", + " (10, 16),\n", + " (10, 43),\n", + " (11, 3),\n", + " (11, 8),\n", + " (11, 16),\n", + " (11, 19),\n", + " (11, 22),\n", + " (11, 29),\n", + " (11, 35),\n", + " (11, 45),\n", + " (11, 47),\n", + " (11, 51),\n", + " (11, 54),\n", + " (12, 9),\n", + " (12, 12),\n", + " (12, 26),\n", + " (12, 36),\n", + " (12, 37),\n", + " (12, 38),\n", + " (12, 39),\n", + " (12, 43),\n", + " (12, 44),\n", + " (12, 48),\n", + " (12, 51),\n", + " (13, 2),\n", + " (13, 19),\n", + " (13, 26),\n", + " (13, 45),\n", + " (13, 47),\n", + " (14, 11),\n", + " (14, 29),\n", + " (14, 31),\n", + " (14, 32),\n", + " (14, 50),\n", + " (14, 53),\n", + " (14, 55),\n", + " (15, 21),\n", + " (16, 2),\n", + " (16, 6),\n", + " (16, 10),\n", + " (16, 13),\n", + " (16, 30),\n", + " (16, 35),\n", + " (16, 37),\n", + " (17, 5),\n", + " (17, 17),\n", + " (17, 19),\n", + " (17, 24),\n", + " (17, 25),\n", + " (17, 35),\n", + " (17, 52),\n", + " (18, 24),\n", + " (18, 34),\n", + " (18, 53),\n", + " (19, 13),\n", + " (19, 19),\n", + " (19, 29),\n", + " (19, 30),\n", + " (19, 47),\n", + " (20, 1),\n", + " (20, 5),\n", + " (20, 12),\n", + " (20, 13),\n", + " (20, 25),\n", + " (20, 37),\n", + " (21, 2),\n", + " (21, 3),\n", + " (21, 15),\n", + " (21, 20),\n", + " (21, 22),\n", + " (21, 24),\n", + " (21, 35),\n", + " (21, 46),\n", + " (21, 53),\n", + " (21, 54),\n", + " (22, 10),\n", + " (22, 21),\n", + " (22, 22),\n", + " (22, 49),\n", + " (22, 50),\n", + " (23, 17),\n", + " (23, 23),\n", + " (23, 34),\n", + " (23, 35),\n", + " (23, 44),\n", + " (23, 50),\n", + " (23, 51),\n", + " (23, 54),\n", + " (24, 2),\n", + " (24, 11),\n", + " (24, 12),\n", + " (24, 18),\n", + " (24, 21),\n", + " (24, 28),\n", + " (24, 33)],\n", + " 'h': [(0, 12),\n", + " (0, 24),\n", + " (0, 26),\n", + " (0, 30),\n", + " (1, 42),\n", + " (1, 45),\n", + " (2, 4),\n", + " (2, 27),\n", + " (2, 29),\n", + " (2, 30),\n", + " (3, 49),\n", + " (3, 52),\n", + " (5, 30),\n", + " (6, 5),\n", + " (6, 21),\n", + " (6, 30),\n", + " (6, 42),\n", + " (7, 38),\n", + " (7, 48),\n", + " (7, 51),\n", + " (8, 30),\n", + " (8, 34),\n", + " (9, 18),\n", + " (9, 50),\n", + " (10, 11),\n", + " (10, 32),\n", + " (11, 10),\n", + " (11, 11),\n", + " (11, 43),\n", + " (12, 7),\n", + " (12, 17),\n", + " (12, 19),\n", + " (12, 20),\n", + " (12, 29),\n", + " (12, 34),\n", + " (13, 6),\n", + " (13, 23),\n", + " (13, 27),\n", + " (14, 15),\n", + " (15, 24),\n", + " (15, 28),\n", + " (16, 0),\n", + " (16, 3),\n", + " (16, 20),\n", + " (18, 42),\n", + " (18, 45),\n", + " (19, 44),\n", + " (19, 53),\n", + " (20, 38),\n", + " (21, 9),\n", + " (21, 41),\n", + " (22, 28),\n", + " (23, 1),\n", + " (23, 49),\n", + " (24, 10),\n", + " (24, 31)],\n", + " 'n': [(0, 46),\n", + " (0, 52),\n", + " (1, 20),\n", + " (1, 33),\n", + " (1, 39),\n", + " (2, 19),\n", + " (2, 20),\n", + " (2, 24),\n", + " (2, 25),\n", + " (2, 33),\n", + " (2, 38),\n", + " (2, 40),\n", + " (2, 48),\n", + " (2, 49),\n", + " (3, 4),\n", + " (3, 36),\n", + " (3, 40),\n", + " (4, 8),\n", + " (4, 9),\n", + " (4, 22),\n", + " (4, 44),\n", + " (4, 49),\n", + " (5, 24),\n", + " (5, 40),\n", + " (6, 20),\n", + " (6, 36),\n", + " (6, 41),\n", + " (6, 54),\n", + " (6, 55),\n", + " (7, 22),\n", + " (8, 13),\n", + " (8, 23),\n", + " (8, 35),\n", + " (8, 47),\n", + " (9, 13),\n", + " (9, 25),\n", + " (9, 32),\n", + " (9, 46),\n", + " (9, 49),\n", + " (10, 3),\n", + " (10, 23),\n", + " (10, 27),\n", + " (10, 31),\n", + " (10, 35),\n", + " (10, 39),\n", + " (10, 44),\n", + " (10, 51),\n", + " (11, 6),\n", + " (11, 52),\n", + " (12, 4),\n", + " (12, 5),\n", + " (12, 8),\n", + " (12, 25),\n", + " (12, 32),\n", + " (12, 42),\n", + " (12, 47),\n", + " (13, 21),\n", + " (13, 25),\n", + " (13, 36),\n", + " (13, 40),\n", + " (13, 55),\n", + " (14, 12),\n", + " (14, 18),\n", + " (15, 20),\n", + " (15, 32),\n", + " (15, 46),\n", + " (16, 18),\n", + " (16, 22),\n", + " (16, 34),\n", + " (16, 36),\n", + " (17, 7),\n", + " (17, 21),\n", + " (17, 22),\n", + " (17, 40),\n", + " (17, 47),\n", + " (17, 53),\n", + " (17, 54),\n", + " (18, 22),\n", + " (18, 32),\n", + " (18, 33),\n", + " (18, 44),\n", + " (18, 46),\n", + " (19, 1),\n", + " (19, 5),\n", + " (19, 12),\n", + " (19, 20),\n", + " (19, 48),\n", + " (19, 55),\n", + " (20, 3),\n", + " (20, 18),\n", + " (20, 26),\n", + " (21, 0),\n", + " (21, 8),\n", + " (21, 26),\n", + " (21, 45),\n", + " (21, 49),\n", + " (22, 18),\n", + " (22, 20),\n", + " (22, 45),\n", + " (22, 55),\n", + " (23, 5),\n", + " (23, 8),\n", + " (23, 16),\n", + " (23, 32),\n", + " (23, 33),\n", + " (24, 22),\n", + " (24, 40),\n", + " (24, 45)],\n", + " 'p': [(0, 35),\n", + " (0, 43),\n", + " (0, 44),\n", + " (3, 20),\n", + " (3, 46),\n", + " (4, 1),\n", + " (4, 28),\n", + " (5, 1),\n", + " (5, 51),\n", + " (6, 7),\n", + " (6, 35),\n", + " (6, 49),\n", + " (7, 43),\n", + " (8, 27),\n", + " (10, 53),\n", + " (11, 30),\n", + " (14, 44),\n", + " (15, 15),\n", + " (15, 23),\n", + " (15, 45),\n", + " (17, 0),\n", + " (17, 1),\n", + " (18, 12),\n", + " (18, 14),\n", + " (18, 49),\n", + " (18, 54),\n", + " (21, 34),\n", + " (22, 1),\n", + " (22, 16),\n", + " (22, 39),\n", + " (22, 46),\n", + " (24, 3),\n", + " (24, 15),\n", + " (24, 52)],\n", + " 's': [(0, 20),\n", + " (0, 25),\n", + " (1, 6),\n", + " (1, 14),\n", + " (1, 28),\n", + " (1, 54),\n", + " (2, 0),\n", + " (2, 7),\n", + " (2, 17),\n", + " (2, 32),\n", + " (2, 41),\n", + " (2, 42),\n", + " (3, 6),\n", + " (3, 16),\n", + " (3, 17),\n", + " (3, 26),\n", + " (3, 47),\n", + " (3, 48),\n", + " (4, 11),\n", + " (4, 20),\n", + " (5, 2),\n", + " (5, 27),\n", + " (5, 34),\n", + " (5, 41),\n", + " (6, 1),\n", + " (6, 8),\n", + " (7, 1),\n", + " (7, 27),\n", + " (7, 30),\n", + " (7, 34),\n", + " (7, 44),\n", + " (7, 52),\n", + " (7, 55),\n", + " (8, 8),\n", + " (8, 14),\n", + " (8, 55),\n", + " (9, 6),\n", + " (9, 23),\n", + " (9, 38),\n", + " (9, 44),\n", + " (9, 48),\n", + " (9, 55),\n", + " (10, 9),\n", + " (11, 20),\n", + " (11, 21),\n", + " (11, 36),\n", + " (12, 1),\n", + " (12, 15),\n", + " (12, 41),\n", + " (12, 50),\n", + " (13, 44),\n", + " (13, 46),\n", + " (13, 52),\n", + " (14, 26),\n", + " (14, 36),\n", + " (15, 1),\n", + " (15, 7),\n", + " (15, 14),\n", + " (15, 18),\n", + " (15, 34),\n", + " (15, 43),\n", + " (16, 17),\n", + " (16, 42),\n", + " (18, 3),\n", + " (18, 6),\n", + " (18, 19),\n", + " (18, 20),\n", + " (18, 27),\n", + " (18, 31),\n", + " (19, 4),\n", + " (19, 7),\n", + " (19, 10),\n", + " (19, 14),\n", + " (19, 33),\n", + " (19, 41),\n", + " (19, 51),\n", + " (20, 20),\n", + " (21, 11),\n", + " (22, 11),\n", + " (22, 14),\n", + " (22, 15),\n", + " (22, 33),\n", + " (22, 34),\n", + " (22, 36),\n", + " (24, 9),\n", + " (24, 34),\n", + " (24, 41),\n", + " (24, 43)],\n", + " 'v': [(1, 36),\n", + " (1, 48),\n", + " (1, 55),\n", + " (3, 8),\n", + " (3, 21),\n", + " (5, 43),\n", + " (5, 46),\n", + " (5, 49),\n", + " (6, 10),\n", + " (6, 47),\n", + " (10, 17),\n", + " (11, 46),\n", + " (11, 55),\n", + " (15, 10),\n", + " (15, 36),\n", + " (16, 21),\n", + " (16, 51),\n", + " (18, 15),\n", + " (18, 18),\n", + " (19, 6),\n", + " (21, 23),\n", + " (23, 25),\n", + " (23, 31),\n", + " (24, 32)]}" + ] + }, + "execution_count": 21, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "letter_positions = {letter: [(r, c) for r, row in enumerate(rows) for c, char in enumerate(row) if char == letter] \n", + " for letter in deduplicate('phaseseven')}\n", + "letter_positions" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "{0: 'a',\n", + " 1: 'z',\n", + " 2: 'y',\n", + " 3: 'x',\n", + " 4: 'v',\n", + " 5: 'u',\n", + " 6: 't',\n", + " 7: 's',\n", + " 8: 'r',\n", + " 9: 'q',\n", + " 10: 'p',\n", + " 11: 'o',\n", + " 12: 'n',\n", + " 13: 'm',\n", + " 14: 'l',\n", + " 15: 'k',\n", + " 16: 'j',\n", + " 17: 'i',\n", + " 18: 'h',\n", + " 19: 'g',\n", + " 20: 'f',\n", + " 21: 'e',\n", + " 22: 'd',\n", + " 23: 'c',\n", + " 24: 'b'}" + ] + }, + "execution_count": 22, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "keycolumn = make_cadenus_keycolumn(reverse=True)\n", + "inverse_keycolumn = {v: l for l, v in keycolumn.items()}\n", + "inverse_keycolumn" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "def valid_partial_solution(solution, inverse_keycolumn):\n", + " row_indices = [p[0] for p in sorted(solution, key=lambda x: x[1])]\n", + " row_letters = [inverse_keycolumn[i] for i in row_indices]\n", + " letter_pairs = ngrams(row_letters, 2)\n", + " return all(p[0] <= p[1] for p in letter_pairs)" + ] + }, + { + "cell_type": "code", + "execution_count": 24, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "43005" + ] + }, + "execution_count": 24, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "solutions = [[p] for p in letter_positions['p']]\n", + "for letter in 'ha': #'haseseven':\n", + " new_solutions = []\n", + " for solution in solutions:\n", + " used_columns = [p[1] for p in solution]\n", + " for position in letter_positions[letter]:\n", + " if position[1] not in used_columns:\n", + " if valid_partial_solution(solution + [position], inverse_keycolumn):\n", + " new_solutions += [solution + [position]]\n", + " solutions = new_solutions\n", + "len(solutions)" + ] + }, + { + "cell_type": "code", + "execution_count": 25, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "True" + ] + }, + "execution_count": 25, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "valid_partial_solution(solutions[1], inverse_keycolumn)" + ] + }, + { + "cell_type": "code", + "execution_count": 26, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "['pha',\n", + " 'ruo',\n", + " 'oll',\n", + " 'rea',\n", + " 'laa',\n", + " 'tut',\n", + " 'pei',\n", + " 'ead',\n", + " 'nrt',\n", + " 'imi',\n", + " 'non',\n", + " 'eie',\n", + " 'aed',\n", + " 'mir',\n", + " 'inl',\n", + " 'lwi',\n", + " 'eah',\n", + " 'eai',\n", + " 'aps',\n", + " 'cnl',\n", + " 'ren',\n", + " 'ege',\n", + " 'xoo',\n", + " 'eau',\n", + " 'uep']" + ] + }, + "execution_count": 26, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "display = []\n", + "for p in solutions[1]:\n", + " this_column = columns[p[1]]\n", + " rotated_column = this_column[p[0]:] + this_column[:p[0]]\n", + " display += [rotated_column]\n", + "display_rows = [''.join(r) for r in zip(*display)]\n", + "display_rows" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "def display_solution(solution, columns):\n", + " display = []\n", + " for p in solution:\n", + " this_column = columns[p[1]]\n", + " rotated_column = this_column[p[0]:] + this_column[:p[0]]\n", + " display += [rotated_column]\n", + " return [''.join(r) for r in zip(*display)]" + ] + }, + { + "cell_type": "code", + "execution_count": 28, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "['pha',\n", + " 'ruo',\n", + " 'ols',\n", + " 'rer',\n", + " 'lai',\n", + " 'tul',\n", + " 'pei',\n", + " 'eaa',\n", + " 'nro',\n", + " 'ime',\n", + " 'nod',\n", + " 'eid',\n", + " 'aea',\n", + " 'mii',\n", + " 'int',\n", + " 'lwi',\n", + " 'eah',\n", + " 'eap',\n", + " 'apk',\n", + " 'cny',\n", + " 'rew',\n", + " 'egn',\n", + " 'xor',\n", + " 'eaa',\n", + " 'uea']" + ] + }, + "execution_count": 28, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "display_solution(solutions[0], columns)" + ] + }, + { + "cell_type": "code", + "execution_count": 29, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "-109.09171451522874" + ] + }, + "execution_count": 29, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "sum(Ptrigrams(r) for r in display_rows)" + ] + }, + { + "cell_type": "code", + "execution_count": 30, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "def score_solution(solution, columns):\n", + " display = []\n", + " for p in solution:\n", + " this_column = columns[p[1]]\n", + " rotated_column = this_column[p[0]:] + this_column[:p[0]]\n", + " display += [rotated_column]\n", + " display_rows = [''.join(r) for r in zip(*display)]\n", + " return sum(Ptrigrams(r) for r in display_rows)" + ] + }, + { + "cell_type": "code", + "execution_count": 31, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "[([(0, 35), (0, 12), (0, 0)],\n", + " ['pha',\n", + " 'ruo',\n", + " 'ols',\n", + " 'rer',\n", + " 'lai',\n", + " 'tul',\n", + " 'pei',\n", + " 'eaa',\n", + " 'nro',\n", + " 'ime',\n", + " 'nod',\n", + " 'eid',\n", + " 'aea',\n", + " 'mii',\n", + " 'int',\n", + " 'lwi',\n", + " 'eah',\n", + " 'eap',\n", + " 'apk',\n", + " 'cny',\n", + " 'rew',\n", + " 'egn',\n", + " 'xor',\n", + " 'eaa',\n", + " 'uea'],\n", + " -112.23213925765266),\n", + " ([(0, 35), (0, 12), (0, 3)],\n", + " ['pha',\n", + " 'ruo',\n", + " 'oll',\n", + " 'rea',\n", + " 'laa',\n", + " 'tut',\n", + " 'pei',\n", + " 'ead',\n", + " 'nrt',\n", + " 'imi',\n", + " 'non',\n", + " 'eie',\n", + " 'aed',\n", + " 'mir',\n", + " 'inl',\n", + " 'lwi',\n", + " 'eah',\n", + " 'eai',\n", + " 'aps',\n", + " 'cnl',\n", + " 'ren',\n", + " 'ege',\n", + " 'xoo',\n", + " 'eau',\n", + " 'uep'],\n", + " -109.09171451522874),\n", + " ([(0, 35), (0, 12), (0, 9)],\n", + " ['pha',\n", + " 'ruo',\n", + " 'old',\n", + " 'reo',\n", + " 'lan',\n", + " 'tur',\n", + " 'pee',\n", + " 'eae',\n", + " 'nro',\n", + " 'imc',\n", + " 'nos',\n", + " 'eir',\n", + " 'aee',\n", + " 'mim',\n", + " 'ini',\n", + " 'lwk',\n", + " 'ear',\n", + " 'eai',\n", + " 'api',\n", + " 'cno',\n", + " 'rei',\n", + " 'egh',\n", + " 'xof',\n", + " 'eat',\n", + " 'ues'],\n", + " -105.51902198106185),\n", + " ([(0, 35), (0, 12), (0, 29)],\n", + " ['pha',\n", + " 'rut',\n", + " 'olh',\n", + " 'rea',\n", + " 'lab',\n", + " 'tuo',\n", + " 'peo',\n", + " 'eat',\n", + " 'nrt',\n", + " 'imw',\n", + " 'noa',\n", + " 'eie',\n", + " 'aeh',\n", + " 'mii',\n", + " 'ine',\n", + " 'lwi',\n", + " 'eao',\n", + " 'ead',\n", + " 'api',\n", + " 'cne',\n", + " 'rec',\n", + " 'ega',\n", + " 'xol',\n", + " 'eal',\n", + " 'ueo'],\n", + " -106.91642615054437),\n", + " ([(0, 35), (0, 12), (0, 41)],\n", + " ['pha',\n", + " 'rur',\n", + " 'ols',\n", + " 'rex',\n", + " 'lal',\n", + " 'tus',\n", + " 'pen',\n", + " 'eac',\n", + " 'nrc',\n", + " 'ime',\n", + " 'nou',\n", + " 'eit',\n", + " 'aes',\n", + " 'mia',\n", + " 'int',\n", + " 'lwa',\n", + " 'eai',\n", + " 'eat',\n", + " 'apr',\n", + " 'cns',\n", + " 'ref',\n", + " 'egh',\n", + " 'xof',\n", + " 'eai',\n", + " 'ues'],\n", + " -100.92420426683796),\n", + " ([(0, 35), (0, 12), (1, 44)],\n", + " ['pha',\n", + " 'ruc',\n", + " 'olg',\n", + " 'ren',\n", + " 'laf',\n", + " 'tue',\n", + " 'pes',\n", + " 'eal',\n", + " 'nrs',\n", + " 'imn',\n", + " 'noi',\n", + " 'eie',\n", + " 'aes',\n", + " 'mip',\n", + " 'ind',\n", + " 'lwc',\n", + " 'eag',\n", + " 'ean',\n", + " 'aph',\n", + " 'cno',\n", + " 'ret',\n", + " 'egr',\n", + " 'xoe',\n", + " 'eai',\n", + " 'uep'],\n", + " -108.53207489276411),\n", + " ([(0, 35), (0, 12), (1, 47)],\n", + " ['pha',\n", + " 'rua',\n", + " 'ols',\n", + " 'rer',\n", + " 'lad',\n", + " 'tuv',\n", + " 'pee',\n", + " 'ean',\n", + " 'nrg',\n", + " 'imo',\n", + " 'noe',\n", + " 'ein',\n", + " 'aee',\n", + " 'mii',\n", + " 'iny',\n", + " 'lwr',\n", + " 'ean',\n", + " 'eai',\n", + " 'ape',\n", + " 'cnd',\n", + " 'rew',\n", + " 'egr',\n", + " 'xot',\n", + " 'eai',\n", + " 'ueg'],\n", + " -109.50900823047225),\n", + " ([(0, 35), (0, 12), (2, 47)],\n", + " ['pha',\n", + " 'rus',\n", + " 'olr',\n", + " 'red',\n", + " 'lav',\n", + " 'tue',\n", + " 'pen',\n", + " 'eag',\n", + " 'nro',\n", + " 'ime',\n", + " 'non',\n", + " 'eie',\n", + " 'aei',\n", + " 'miy',\n", + " 'inr',\n", + " 'lwn',\n", + " 'eai',\n", + " 'eae',\n", + " 'apd',\n", + " 'cnw',\n", + " 'rer',\n", + " 'egt',\n", + " 'xoi',\n", + " 'eag',\n", + " 'uea'],\n", + " -114.40196859359595),\n", + " ([(0, 35), (0, 12), (3, 50)],\n", + " ['pha',\n", + " 'ruw',\n", + " 'olt',\n", + " 'rer',\n", + " 'lad',\n", + " 'tue',\n", + " 'peh',\n", + " 'ear',\n", + " 'nrc',\n", + " 'ims',\n", + " 'noc',\n", + " 'eie',\n", + " 'aec',\n", + " 'mil',\n", + " 'inr',\n", + " 'lwr',\n", + " 'ear',\n", + " 'eai',\n", + " 'api',\n", + " 'cne',\n", + " 'ree',\n", + " 'ego',\n", + " 'xoe',\n", + " 'ear',\n", + " 'uee'],\n", + " -106.68850150792129),\n", + " ([(0, 35), (0, 12), (4, 38)],\n", + " ['pha',\n", + " 'rue',\n", + " 'olk',\n", + " 'reh',\n", + " 'laa',\n", + " 'tus',\n", + " 'peb',\n", + " 'eaa',\n", + " 'nre',\n", + " 'imd',\n", + " 'nor',\n", + " 'eit',\n", + " 'aeu',\n", + " 'mio',\n", + " 'int',\n", + " 'lwo',\n", + " 'eah',\n", + " 'eau',\n", + " 'apf',\n", + " 'cni',\n", + " 'rey',\n", + " 'egg',\n", + " 'xoo',\n", + " 'ean',\n", + " 'uet'],\n", + " -108.49770543928673)]" + ] + }, + "execution_count": 31, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "[(s, display_solution(s, columns), score_solution(s, columns)) for s in solutions[:10]]" + ] + }, + { + "cell_type": "code", + "execution_count": 32, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "[[(0, 35), (0, 12), (0, 41)],\n", + " [(0, 35), (0, 12), (0, 9)],\n", + " [(0, 35), (0, 12), (3, 50)],\n", + " [(0, 35), (0, 12), (0, 29)],\n", + " [(0, 35), (0, 12), (4, 38)],\n", + " [(0, 35), (0, 12), (1, 44)],\n", + " [(0, 35), (0, 12), (0, 3)],\n", + " [(0, 35), (0, 12), (1, 47)],\n", + " [(0, 35), (0, 12), (0, 0)],\n", + " [(0, 35), (0, 12), (2, 47)]]" + ] + }, + "execution_count": 32, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "sorted(solutions[:10], key=lambda s: score_solution(s, columns), reverse=True)" + ] + }, + { + "cell_type": "code", + "execution_count": 33, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "solutions = sorted(solutions, key=lambda s: score_solution(s, columns), reverse=True)[:10000]" + ] + }, + { + "cell_type": "code", + "execution_count": 34, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "10000" + ] + }, + "execution_count": 34, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "for letter in 'seseven': #'haseeight':\n", + " new_solutions = []\n", + " for solution in solutions:\n", + " used_columns = [p[1] for p in solution]\n", + " for position in letter_positions[letter]:\n", + " if position[1] not in used_columns:\n", + " if valid_partial_solution(solution + [position], inverse_keycolumn):\n", + " new_solutions += [solution + [position]]\n", + " solutions = sorted(new_solutions, key=lambda s: score_solution(s, columns), reverse=True)[:10000]\n", + "len(solutions)" + ] + }, + { + "cell_type": "code", + "execution_count": 35, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "['phaseseven',\n", + " 'ninmelcalh',\n", + " 'andodrinho',\n", + " 'lmedyierts',\n", + " 'reaapstnen',\n", + " 'entaryafts',\n", + " 'sconhysefe',\n", + " 'birnerctan',\n", + " 'entaergeno',\n", + " 'wioontomoi',\n", + " 'ittretedus',\n", + " 'dttheselin',\n", + " 'ertalriesn',\n", + " 'enpraiaatp',\n", + " 'evisateths',\n", + " 'aytrvioymi',\n", + " 'feewiaihin',\n", + " 'lsnaltemai',\n", + " 'racessdctr',\n", + " 'odreacyugg',\n", + " 'itliciaooa',\n", + " 'ittrapinds',\n", + " 'trareseshh',\n", + " 'aecefdanst',\n", + " 'ancertalex']" + ] + }, + "execution_count": 35, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "display_solution(solutions[0], columns)" + ] + }, + { + "cell_type": "code", + "execution_count": 36, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "849" + ] + }, + "execution_count": 36, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "hinted_keywords = [w for w in keywords if w[0] =='f' if len(transpositions_of(w)) == 7]\n", + "len(hinted_keywords)" + ] + }, + { + "cell_type": "code", + "execution_count": 37, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "['fabrics',\n", + " 'facings',\n", + " 'faction',\n", + " 'factors',\n", + " 'factory',\n", + " 'faculty',\n", + " 'fadeout',\n", + " 'failure',\n", + " 'fainest',\n", + " 'fainted']" + ] + }, + "execution_count": 37, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "hinted_keywords[:10]" + ] + }, + { + "cell_type": "code", + "execution_count": 38, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "175" + ] + }, + "execution_count": 38, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "first_chunk = c8bl[:175]\n", + "len(first_chunk)" + ] + }, + { + "cell_type": "code", + "execution_count": 39, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "['gatlrlnjtonethnirreh',\n", + " 'raorejnptreanhriaeso',\n", + " 'raohoanptraesrriasul',\n", + " 'raohhanptraemrriasln',\n", + " 'raorhaeptrnemsrianln',\n", + " 'raonlneptrnissriaaoc',\n", + " 'garhrarjtartsnnifphn',\n", + " 'raoaalapteesnfriunnr',\n", + " 'raonanhpterfrariutpn',\n", + " 'garehhrjteaaraniessp',\n", + " 'raonhalpterafnriutsp',\n", + " 'fainrleptorniseirtno',\n", + " 'raoaanhptemfrariunpn',\n", + " 'raloannptirsrhrioalt',\n", + " 'falmireptinonseiosrn',\n", + " 'ralhaanptiafmrriospn',\n", + " 'faeilenptnoisreirroo',\n", + " 'raeoeanptneafhrirusp',\n", + " 'earotktntvrugheivarj',\n", + " 'gaeorhojtarernnisaep',\n", + " 'gaeorhnjtarerhnisaep',\n", + " 'raeooaeptareesrisaun',\n", + " 'garnahrjtvenranivrep',\n", + " 'raalaenptmifsrrinopo',\n", + " 'faoeoepptnneareihrus',\n", + " 'falhonpptnaerreirsut',\n", + " 'fanroanpthiesreiaoul',\n", + " 'fanhonpptraerreinsut',\n", + " 'rahnaanptaofmrrisepn',\n", + " 'fahrrinptaitoreisohh',\n", + " 'rarrjaaptnensfrineon',\n", + " 'gaaohrmjtsrrnnninapn',\n", + " 'gaaarhrjtsenraninnnp',\n", + " 'gasrlhrjtntnraniehrp',\n", + " 'fasanomptnensneieean',\n", + " 'raalrempftinsnrpiono',\n", + " 'raaorejpftneanrpihes',\n", + " 'ghrrlanjratnthnpfhri',\n", + " 'gharnarjreaetvnpnfai',\n", + " 'frtroenppwthsredoheo',\n", + " 'frahoepppeaearednsus',\n", + " 'raeaoalpfnsntirprlhi',\n", + " 'raaiahnpfmotarrpnhis',\n", + " 'froiianppnoosredhhrl',\n", + " 'rahrinnpfaeeorrpsere',\n", + " 'rahaaiupfaeselrpsnlr',\n", + " 'raaerejpfsreanrpnpes',\n", + " 'graeohnjetarrhneisap',\n", + " 'fitahanpoimesrerenln',\n", + " 'grtaaahjeosntrnernei',\n", + " 'rotaaanpeosetrrurnni',\n", + " 'roieaaopeeanfnrureep',\n", + " 'rrejahnpernfarrepops',\n", + " 'rrejarepernfnsrepopn',\n", + " 'fopalrnpertntheuiirh',\n", + " 'frpnhrlperoapneeiesd',\n", + " 'foperehpernpaaeuirds',\n", + " 'fopalaapersnteeuinri',\n", + " 'rrjalaepensnfrreonrp',\n", + " 'fopaarnpersmpreuinnd',\n", + " 'roatalhpeeifnarunepr',\n", + " 'gtfiehrjuterranrrrep',\n", + " 'rrainanpeneofhreerep',\n", + " 'filhranpoiapmrerosdn',\n", + " 'rrrajaapevtnnfrevioe',\n", + " 'roeaaanpeatefhrusinp',\n", + " 'rreinanpeaeofhresrep',\n", + " 'ronealnperrfnhrutppr',\n", + " 'fioraenpohpmsreredno',\n", + " 'fonprlnperrpnheutidr',\n", + " 'finlrenporipsrertodo',\n", + " 'rrlatajpenfisnrerpen',\n", + " 'rooaeaepenfntaruhpri',\n", + " 'fiairnhpomopraernhdn',\n", + " 'pfomrteddsnnwstcnsno',\n", + " 'rrninalpeheofnrearep',\n", + " 'fonrraeperipmseunodn',\n", + " 'fonrnrhperirpaeunotd',\n", + " 'pfnsoaiddsoseetccrne',\n", + " 'grnatahjeetonrnesire',\n", + " 'grnarhrjeetnranesinp',\n", + " 'ronarampeetnfnrusinp',\n", + " 'roaaeaepeifresrueppn',\n", + " 'finnnorpoesnsperscan',\n", + " 'rosaanmpeoftnnrurpia',\n", + " 'flapannpitrsrheoiilt',\n", + " 'raaeoaopntaefnreieup',\n", + " 'faaeorppntaevreeieuv',\n", + " 'eaattktnntrogheeivrj',\n", + " 'gaanthnjeteorhnniarp',\n", + " 'rlaealnpitnfnhroirpr',\n", + " 'faanorppeteevreniauv',\n", + " 'raaejanpetanfhrnisop',\n", + " 'gaarehrjntvaraneivep',\n", + " 'raaeuaopetalfnrnisip',\n", + " 'faaooeppetnearenihus',\n", + " 'gaanehrjnthrraneiaep',\n", + " 'raannalpethofnrniaep',\n", + " 'eaahtktnntaogheeisrj',\n", + " 'ftaaormpwtshnneoinen',\n", + " 'ftashanpwtnemreoieln',\n", + " 'ftashnapwtnenmeoiela',\n", + " 'faasoeppetnearenieus',\n", + " 'faaeoeppetsearenious',\n", + " 'farnorppepeevrendauv',\n", + " 'farnonrpepeehiendaua',\n", + " 'farnoeppepeearendsus',\n", + " 'gfrirhrjteearanrernp',\n", + " 'raoieaopneeafnreurep',\n", + " 'paoprhndeeeiartnufos',\n", + " 'paoprredeeeinstnufon',\n", + " 'faoeirnpeeaeihenusro',\n", + " 'raolhaepeenafrrnursp',\n", + " 'gaaahhrjestarannlisp',\n", + " 'rlrahalpittafnrohisp',\n", + " 'gaviehrjnvearaneorep',\n", + " 'raaoorapesneatrnlhuf',\n", + " 'flaoinrpisnorpeolhrt',\n", + " 'ptrlfondwtndhhtohrce',\n", + " 'pthafnhdwemdratolncn',\n", + " 'ftrhnaipwtartoeohsni',\n", + " 'rlaaniapissrefrolntr',\n", + " 'rlralaepitsnfrrohnrp',\n", + " 'rlraraepitsnfrrohnnp',\n", + " 'fthsranpwenpmreoledn',\n", + " 'fthnraepweapmseolidn',\n", + " 'plasinpdisnoretolert',\n", + " 'rlnaniepinfresroaptr',\n", + " 'faauirlpeslopnennird',\n", + " 'raaeuaepesalfrrnnsip',\n", + " 'flnnrrepinrtpseoatwd',\n", + " 'faaeuirpesalopennsir',\n", + " 'ptnocemdwnhesntoaeto',\n", + " 'raannaepesrofrrnnnep',\n", + " 'flanrrapisripmeonnod',\n", + " 'ftamrropwsnnpseonsnd',\n", + " 'plarinpdisnoretonnrt',\n", + " 'plnninpdineoretoasrt',\n", + " 'pleinpndisorertoortf',\n", + " 'ftehnrapwseapmeoolid',\n", + " 'fvaaoeppvteeareoinus',\n", + " 'raaeoaopstnefnrlirup',\n", + " 'fvaeoeppvtneareoirus',\n", + " 'grianhrjtesrranhrnnp',\n", + " 'fhpaarepertmnseliinn',\n", + " 'raotaanpseiefhrluenp',\n", + " 'rronhaepterafrrhunsp',\n", + " 'rrlealnptirfnhrhoppr',\n", + " 'fvaeoeppvereareonpus',\n", + " 'frlprlnptirpnhehoidr',\n", + " 'rvarajapvnetnfroeeio',\n", + " 'raaoahapseetafrlnuis',\n", + " 'frwrohnptopharehades',\n", + " 'rroeanhpthrfrarheppn',\n", + " 'ranelanpsrrifhrltpop',\n", + " 'rroeaanpthrsfrrhepnp',\n", + " 'gaoanhrjsnteranlhirp',\n", + " 'rrlajanptntnfhrhriop',\n", + " 'grlaehrjtntsranhriop',\n", + " 'eaotatknsnothgelhrir',\n", + " 'rrltornptnieahrhreuf',\n", + " 'rhliatnpenefhhrlrrpa',\n", + " 'faoionppsneerrelhrut',\n", + " 'raornaepsnaotnrlhfei',\n", + " 'faoeonppsnrerrelhput',\n", + " 'faoropnpsnperrelhdui',\n", + " 'raoaianpsnfotrrlhphi',\n", + " 'rhaanaspemfrtnrlnpni',\n", + " 'rrljasaptnntnfrhroie',\n", + " 'fhaprhnpemrparelnids',\n", + " 'frlposrptnrenpehriue',\n", + " 'paouinpdsnloretlhirt',\n", + " 'frliatnptnotwhehrhio',\n", + " 'frlwaohptnothaehraie',\n", + " 'rrliahaptnotafrhrhis',\n", + " 'fhawahnpemotarelnais',\n", + " 'raoeooapsnnertrlhrua',\n", + " 'paoiinpdsnooretlhhrt',\n", + " 'frliataptnoswtehrhno',\n", + " 'rrlnauaptnhtlfrhraii',\n", + " 'fhahirnpemaoprelnsrd',\n", + " 'fharaorpemnsapelnnne',\n", + " 'fhasrorpemnpanelnede',\n", + " 'fhatrmrpeswpnnelnods',\n", + " 'paalinpdssioretlnort',\n", + " 'rraoealptshrfnrhnepp',\n", + " 'fhnoeaepenarmselaepn',\n", + " 'paaoremdessnfntennnd',\n", + " 'paslinpdsnioretleort',\n", + " 'fhnirmrpeeopnnelsrds',\n", + " 'frnrailptentoiehsnir',\n", + " 'roajraapntnenfrhioee',\n", + " 'faailrepmtoinseniron',\n", + " 'foaeoeppntnearehirus',\n", + " 'glanohnjntrrrhnritap',\n", + " 'rlanoonpntrrehrritau',\n", + " 'goaeehrjntaaranhisep',\n", + " 'roaeuaapntalferhisip',\n", + " 'roaeeoapntaaefrhiseu',\n", + " 'flanrlepntrtiseritwo',\n", + " 'rlanhoopntraerrritsu',\n", + " 'faaapnrpmtsroneninie',\n", + " 'flaeonppntserreriout',\n", + " 'glhrranjnreathnrpefi',\n", + " 'flrrpnhpnperoaerdeie',\n", + " 'flrwrohpnpothaerdahe',\n", + " 'rlaninnpnfreohrrptre',\n", + " 'forosimpspaoenenderu',\n", + " 'farnrlepmpriisendnoo',\n", + " 'goratahjnetonrnheire',\n", + " 'raoraenpmeatsrrnufio',\n", + " 'rlrejanpnernfhrrepop',\n", + " 'gorhraejneratanhepfi',\n", + " 'glrhranjnerathnrepfi',\n", + " 'rloanenpnefrrhrruptp',\n", + " 'rlrjahapnentafrreois',\n", + " 'paoprhndmeeiartnufos',\n", + " 'rorejaepneanfrrhesop',\n", + " 'flonprnpnerrpherutid',\n", + " 'rloneaepnehafrrruaep',\n", + " 'foapianpnsrotrehlihi',\n", + " 'foapirnpnsroprehlihd',\n", + " 'flrliinpntioeherhorr',\n", + " 'flrohatpnthatwerhesi',\n", + " 'rlrohaepnthafrrrhesp',\n", + " 'rahnhaepmerafrrnlnsp',\n", + " 'rlrhnaepntaofrrrhsep',\n", + " 'rlrsoaepntnhfrrrheep',\n", + " 'raaoraepmsenfrrnnunp',\n", + " 'raonnrapsroretrnaene',\n", + " 'raiuaanpselfmrrnripn',\n", + " 'faieoeppseaearenreus',\n", + " 'faraoeppspeearendnus',\n", + " 'falaninpsitrorenoitr',\n", + " 'fatnrirpswrtopenonhh',\n", + " 'paerhomdstneantnvnle',\n", + " 'gantahrjseierannaenp',\n", + " 'raetlalpsniifnrnreop',\n", + " 'raetlanpsniifrrnreop',\n", + " 'faoirhapsaenemenernl',\n", + " 'raoeaanpshrfmrrneppn',\n", + " 'ranalalpsrfntirntpri',\n", + " 'fanpaoepsrrserentilu',\n", + " 'fanuirlpsrlopnentird',\n", + " 'faatonrpsmierienneun',\n", + " 'pallinpdsnioretnrort',\n", + " 'paltropdsnwthetnrohe',\n", + " 'galnaohjsnrtrrnnrtia',\n", + " 'paaoinedsmhorftnnern',\n", + " 'fnonisrpnssonpeancre',\n", + " 'ranotaapsreiefrnnuen',\n", + " 'famriaopsnnothensnri',\n", + " 'famriropsnnopsensnrd',\n", + " 'pnnsiopdnsoohetacrre',\n", + " 'ratalrnptositnrirnoh',\n", + " 'ealktvanttgovseihjro',\n", + " 'gaoharajtrrnelniapee',\n", + " 'gaorahfjtrenrtniaeep',\n", + " 'raooathptreeuariaunr',\n", + " 'raorrhtptrntanrianhs',\n", + " 'faoatolpteeuaeeiunre',\n", + " 'failnraptoirtleironh',\n", + " 'raonhanpterafrriutsp',\n", + " 'rarojaaptennsfriehol',\n", + " 'raolnanptenrfhriurtp',\n", + " 'failthoptonheneirral',\n", + " 'faionoiptosarneirnis',\n", + " 'faorrasptenilceiunoe',\n", + " 'fatlvnnptwivnseioooa',\n", + " 'gaaavlajtenvcfnineoe',\n", + " 'ralnahnptirfasrionps',\n", + " 'falmireptinonseiosrn',\n", + " 'gaahhlajtearnfninspr',\n", + " 'ranoafrpteeedariaunc',\n", + " 'ranrnnapteehofriaeae',\n", + " 'ranonfcptrrtdhritsnc',\n", + " 'raeooasptarelcrisaue',\n", + " 'raeoeroptarsehrisaoe',\n", + " 'raoenuvptnnohurihrec',\n", + " 'raoeluvptnnihurihroc',\n", + " 'galavlajtnmvcfnirnoe',\n", + " 'raahnanptmaofrrinsep',\n", + " 'ganorctjthrehwniaaeo',\n", + " 'fanroanpthiesreiaoul',\n", + " 'ganhhnajtrarrfninspt',\n", + " 'ranhaoyptrafherinspe',\n", + " 'fahattmptacwuneiseor',\n", + " 'gahehfhjtarrtonisepo',\n", + " 'gahehlajtarrnfnisepr',\n", + " 'fanlnifptnisoteiaocr',\n", + " 'faamriaptsnnoceinsnr',\n", + " 'raalnripftnhtorpirah',\n", + " 'ghanrtajrtheonnpiaer',\n", + " 'raahnylpftaoenrpisen',\n", + " 'raarnyopftnoenrpinen',\n", + " 'gharaaajrtnsmfnpinnn',\n", + " 'raaraoypftnsserpinnn',\n", + " 'ghtanaojromntnnprnai',\n", + " 'ghrosefjraoyttnpfgdt',\n", + " 'ghrraocjraamdhnpflns',\n", + " 'oykrtcsgegaiatfnjfel',\n", + " 'ekhrtulngraiheejpfec',\n", + " 'rarstolpfpyuherpdere',\n", + " 'fryltolppeiuaeednore',\n", + " 'ghaatoojrnfsdrnpepys',\n", + " 'gharooojrnerdrnpeeas',\n", + " 'raaoithpfeeeuarpnurr',\n", + " 'raafontpfesrturpnrsn',\n", + " 'frlanirppisroaedoltr',\n", + " 'friintnppooruhedhrtr',\n", + " 'raeirolpfaeeherpsree',\n", + " 'frawkrrppmogvnednajv',\n", + " 'ghonavhjrnrtuonphtir',\n", + " 'frloiroppnnaeaedrhae',\n", + " 'raankrspfmaghtrpnije',\n", + " 'frosanappsnenmedneea',\n", + " 'rahrinopfaeeoorpsere',\n", + " 'frsyoteppnesugedennr',\n", + " 'raeniaepfsrotarpothi',\n", + " 'granoahjethrsrneiaal',\n", + " 'fiihrhepoeaeeaerrsel',\n", + " 'roeseooperytonrupevg',\n", + " 'roeaathperfeuaruppnr',\n", + " 'grtaooujehsrdhnernas',\n", + " 'roaaeoopeferonrupnpg',\n", + " 'rraaesopefnrmhrepepn',\n", + " 'rraeesspefarmnrepspn',\n", + " 'roaliyfpefneetruprrn',\n", + " 'roaaionpefmeohrupnrg',\n", + " 'fopalrrpersneheuinre',\n", + " 'frainsopeneomaeeeren',\n", + " 'roaaranpeefvterunpvi',\n", + " 'filanvspoieevyeronao',\n", + " 'fileoonpoindoherorsg',\n", + " 'roatsecpenrrteruevht',\n", + " 'roahalrpeeafnprunspr',\n", + " 'foahroopeeaidoeunsos',\n", + " 'roahlaipeeanthrunsri',\n", + " 'roeaasapeatemirusinn',\n", + " 'finaltnportiuhertior',\n", + " 'finalthportiuaertior',\n", + " 'roeaaswpeatemfrusinn',\n", + " 'etravehnuvtuhrervirk',\n", + " 'greavlrjeatutanesirh',\n", + " 'rrejaorpeanfnpresoph',\n", + " 'rresserpeamnfpresntd',\n", + " 'fonsetopermgooeutnhd',\n", + " 'fiotdeopohuotnererot',\n", + " 'fintdkfporuogtertroj',\n", + " 'roeaavtpeaeturrusnir',\n", + " 'rolaaatpenftmrrurpin',\n", + " 'grohtaajenrotnnehpri',\n", + " 'rooataepenfisnruhpel',\n", + " 'fiargfipompjteerndnr',\n", + " 'fiargvapompjvierndno',\n", + " 'rolahsepenfaytrurpsd',\n", + " 'rolasaapenfnterurpei',\n", + " 'rolasrhpenfnterurpeh',\n", + " 'filrsroponpntserrdeh',\n", + " 'filinrnponorpherrhtd',\n", + " 'rolesatpennntarurrei',\n", + " 'ronoaafperrtetrunain',\n", + " 'fonrraeperipmseunodn',\n", + " 'fonrnrhperirpaeunotd',\n", + " 'fonrharperiateeunosi',\n", + " 'ronnstrperhcaprunaei',\n", + " 'rosaorfpenfgtsruepfh',\n", + " 'fonarropeetneaeusine',\n", + " 'finarrhpoetneeersine',\n", + " 'ronantipeetsuirusicr',\n", + " 'gaattirjntotoaneirsr',\n", + " 'raajvaepetnostrniool',\n", + " 'flaplerpitrntveoiirt',\n", + " 'faareoopntvaeaeeiveu',\n", + " 'raaveftpntoutsreiolo',\n", + " 'rlatroopithionroiatg',\n", + " 'faavetopetoluaenioor',\n", + " 'raannalpethofnrniaep',\n", + " 'raannanpetrofhrninep',\n", + " 'faanrofpetrieteninou',\n", + " 'rlahoelpitartnroisat',\n", + " 'faahgtepetajugenisnr',\n", + " 'gaahehfjntarrtneisep',\n", + " 'rlahnanpitarfrroistp',\n", + " 'rlahiyepitahearoisin',\n", + " 'rlahiylpitahenroisin',\n", + " 'rlariyopitnhenroinin',\n", + " 'faahntopetatuaenisnr',\n", + " 'ftahnrspwtattleoisnh',\n", + " 'rlarsetpitnntaroinet',\n", + " 'flaarimpitsnoneoinnr',\n", + " 'gaannhajeterrfnnisnp',\n", + " 'raartsopnfpsmhrepdyn',\n", + " 'farrntopepatuaendlnr',\n", + " 'farnonrpepeehiendaua',\n", + " 'farnroopephieoendaou',\n", + " 'raahinopefaeoornpsre',\n", + " 'raaaotfpefieitrnpeue',\n", + " 'flrnriepipenoneodsnr',\n", + " 'rlannaapifenmtropsan',\n", + " 'faoiesopneeamaeeuren',\n", + " 'flienoopionhdoeorras',\n", + " 'flinhoopioradoeortss',\n", + " 'fliseerpiolstveorlst',\n", + " 'fliteoopiohsoneorasg',\n", + " 'fliteonpiohsoheorasg',\n", + " 'plilhrvdionaeutorrse',\n", + " 'favhhtopevekuaenosgr',\n", + " 'plavdrvdisveeutologe',\n", + " 'flrvtoopitvcdoeohoas',\n", + " 'flrseorpitledaeohlds',\n", + " 'flrseorpitledaeohlds',\n", + " 'plavervdisoeeutolode',\n", + " 'rlaoanipisnfrerolhpt',\n", + " 'flrliefpitnorteohrrp',\n", + " 'pthafnhdwemdratolncn',\n", + " 'planervdishgeutolahe',\n", + " 'ftrhnaipwtartoeohsni',\n", + " 'rlrsalrpitnfnprohepr',\n", + " 'faatctopesieuaennehr',\n", + " 'ftnronfpwnphsteoadec',\n", + " 'flnierhpinoreaeoarpe',\n", + " 'paaeuivdesaloutnnsir',\n", + " 'raalofrpesnsdprnnrnc',\n", + " 'flaadoopismedoeonngs',\n", + " 'flamrrnpisnipreonsod',\n", + " 'ftamrropwsnnpseonsnd',\n", + " 'ftardkapwsnogmeonnoj',\n", + " 'ftnndkopwnsogneoacoj',\n", + " 'rletaropishtiorooait',\n", + " 'flemrropisnipoeoosod',\n", + " 'grianeajtesrgfnhrnnh',\n", + " 'rajtvsvpsnivcurloeoe',\n", + " 'frpjoonptrndohehiosg',\n", + " 'prpraordteissvthfoln',\n", + " 'prinhovdtoraeuthrnsu',\n", + " 'rrlranoptiatarrhofii',\n", + " 'palrnrvdsithtutlowah',\n", + " 'raianhrpsofraprlhpts',\n", + " 'rrorarrpthatvnrhefiv',\n", + " 'fveeaoopvareeaeospnu',\n", + " 'ranhaovpsrateurltsiu',\n", + " 'fhafyoipeeseneelernh',\n", + " 'rrhfaiuptetiehrhlrhr',\n", + " 'rrvdapoptvoceorhooef',\n", + " 'prvgovgdtvheuftholur',\n", + " 'frvgsaeptvhrcaeholhe',\n", + " 'rhahirepesaiptrllsed',\n", + " 'rrlajaoptntnfnrhriop',\n", + " 'faoaponpsntrerelhiiu',\n", + " 'grlthaojtnortnnhrrpi',\n", + " 'rrliaatptneflnrhrrpe',\n", + " 'rhliatnpenefhhrlrrpa',\n", + " 'rrlaaotptnftsrrhrpin',\n", + " 'gaoherfjsnrrptnlhped',\n", + " 'frlrlhlptnpireehrdop',\n", + " 'raoaahepsnfeehrlhpns',\n", + " 'fharwanpemposhelndal',\n", + " 'raoanaipsnfrtorlhpti',\n", + " 'rhaanhrpemfraprlnpns',\n", + " 'faormropespnnneendsn',\n", + " 'rrlahhfptnfaesrhrpsl',\n", + " 'rrlasaoptnfntsrhrpei',\n", + " 'fharshepempnraelndep',\n", + " 'fhaphsrpemdrmnelntpn',\n", + " 'fhaproipemrpneelnidh',\n", + " 'prlrlfadtntidlthrwoc',\n", + " 'frliatfptnotwtehrhio',\n", + " 'frlirdfptnopetehrhdg',\n", + " 'frlitrnptnowphehrhod',\n", + " 'frlwvyaptnovdcehraoo',\n", + " 'rrlnauaptnhtlfrhraii',\n", + " 'rhansaapemrnftrlnnep',\n", + " 'frlhorgptnaephehrsud',\n", + " 'fhahscepemayaaelnsdl',\n", + " 'rhasathpemntaorlneii',\n", + " 'rhnhaarperafmprlnspn',\n", + " 'rraoataptsrtnnrhnair',\n", + " 'fratornptswhprehnoed',\n", + " 'faaneoopssrreaelntpu',\n", + " 'fraoraiptshntoehneni',\n", + " 'fhaanaspesmrerelnnne',\n", + " 'fhaarrhpesmnprelnnnd',\n", + " 'frnplaopterissehsiol',\n", + " 'frnrhfopteiesoehsolr',\n", + " 'frnratrpteisnhehsolr',\n", + " 'raaohaapmtracnrniase',\n", + " 'gaaoradjmtrnsenniann',\n", + " 'goaeorojntareanhisae',\n", + " 'foaeeoopntaaeaehiseu',\n", + " 'foaeuaipntaleoehisin',\n", + " 'raasoalpmtoefnrnirup',\n", + " 'glasntajntoewfnrirto',\n", + " 'raasaeopmtoatornircv',\n", + " 'gohieaajnreanfnhpree',\n", + " 'rlaiuarpnfelearrprin',\n", + " 'gohraocjnramdhnhpfns',\n", + " 'glhraosjnramdtnrpfns',\n", + " 'gohassujnrfyrhnhppeh',\n", + " 'rlarshtpnfpyerrrpdel',\n", + " 'gohytuvjnreohunhpndc',\n", + " 'roakfrfpnfgttsrhpjuh',\n", + " 'flrkrolpnpgeaeerdjee',\n", + " 'gohyahfjnrenetnhpnes',\n", + " 'rlakserpnfgrtvrrpjht',\n", + " 'faronvlpmpotvcendgno',\n", + " 'roaoooipsfosrnrnpgns',\n", + " 'flrraropnpaaeaerdlce',\n", + " 'rlaninrpnfreoarrptre',\n", + " 'rlanrnopnfratdrrptln',\n", + " 'rlansorpnfroeprrptru',\n", + " 'farosiopmphoooenderr',\n", + " 'farlahepmposraendsnp',\n", + " 'flrnriypnphioeerdaoh',\n", + " 'flrhnropnpateaerdsne',\n", + " 'farrshdpmpnneeendnel',\n", + " 'fliihrhpnoeaeeerrrse',\n", + " 'floposfpnerdyteruise',\n", + " 'pafnrofdmdrtettncnwu',\n", + " 'plinurvdnohleutrraie',\n", + " 'rlosnerpneoetprrurtv',\n", + " 'faisafopmooasoenrrcr',\n", + " 'flrohirpnthaoperhesr',\n", + " 'plrohivdnthaoutrhesr',\n", + " 'fahnhtipmeraioenlnse',\n", + " 'fahnhirpmeraopenlnsr',\n", + " 'flrhrorpntaieperhsou',\n", + " 'plrsoivdntnhoutrheer',\n", + " 'fahsnirpmenropenlenr',\n", + " 'fahnsirpmeaoopenlirr',\n", + " 'foniniapsnesolenarcr',\n", + " 'fanpalfpmnrtitenaiio',\n", + " 'paairovdmsoneutnnrnu',\n", + " 'paafroadmsdneetnncnu',\n", + " 'flaitirpnsohopernhar',\n", + " 'raonnrapsroretrnaene',\n", + " 'faesltopsryiuaenpeor',\n", + " 'faraltopspeiuaendnor',\n", + " 'fnponsopnresmseaiucn',\n", + " 'fneisaapnuontmealrei',\n", + " 'fatiatnpswemneenornr',\n", + " 'gaaetctjsntiasnnevel',\n", + " 'faoirirpshenotenernr',\n", + " 'faneoogpsrreafentpue',\n", + " 'ranalrapsrfnpcrntprd',\n", + " 'faoooynpshadereneesn',\n", + " 'pallrhpdsnitirtnrohi',\n", + " 'faodoynpssederenngsn',\n", + " 'rnaovirpnmsviprannoe',\n", + " 'faorrrapssnipmennnod',\n", + " 'faorrrmpssnipnennnod',\n", + " 'ranaaajpsrfetnrnnpni',\n", + " 'panfgrddsrdjtetnncnh',\n", + " 'famriaopsnnothensnri',\n", + " 'fnnilrfpnsoipteacrod',\n", + " 'fnstokmpnocdgnearasj',\n", + " 'gaohsaojtrrlerniapln',\n", + " 'raonnafptrsnctriacae',\n", + " 'raonhvopterauoriutsr',\n", + " 'garortajtenpufniehrr',\n", + " 'raolnanptenrfhriurtp',\n", + " 'raauafrptelntvrinieo',\n", + " 'gaaeelsjtntttmnievth',\n", + " 'falaverptinveeeioeod',\n", + " 'ralnahnptirfasrionps',\n", + " 'gaanrrfjtnhepdnieaer',\n", + " 'raanohfptereadrinnus',\n", + " 'faeiltoptnoiureirror',\n", + " 'raeonftptartdsrissnc',\n", + " 'gaeororjtareaanisaee',\n", + " 'ranhusfptrahndritsct',\n", + " 'ranhusfptrahndritsct',\n", + " 'ranhusiptrahnhritsct',\n", + " 'raaaskaptmfngnrinpej',\n", + " 'raaieflptmostnrinhoo',\n", + " 'ranhaoyptrafherinspe',\n", + " 'fahattmptacwuneiseor',\n", + " 'faratsnptncwmseineon',\n", + " 'ranaotfptsfgntricpfr',\n", + " 'faroparptnerseeinuin',\n", + " 'rahiknoptahgrorisijt',\n", + " 'rahionoptahorerisigt',\n", + " 'raalreyptsinterinonv',\n", + " 'raaaotfpftmgntrpinfr',\n", + " 'ghaheotjrtaroanpiseg',\n", + " 'ghrosefjraoyttnpfgdt',\n", + " 'ghrysorjraeyrnnpfnds',\n", + " 'fryltolppeiuaeednore',\n", + " 'friintnppooruhedhrtr',\n", + " 'frnaplkpprsrngedtnir',\n", + " 'ghorreajrnaeatnphfes',\n", + " 'raliyrdpfnoevorprhnv',\n", + " 'ghlnavtjrnrturnprtir',\n", + " 'frloknippnngsoedrhjc',\n", + " 'frarilrppmnoiaednnro',\n", + " 'frahiltppmaoiuednsro',\n", + " 'frarilsppmnoimednnro',\n", + " 'frarilsppmnoimednnro',\n", + " 'frsninsppnsoamedtcri',\n", + " 'ranhrhrpfratehrpnshl',\n", + " 'frhonrrppaerieedsuno',\n", + " 'frhrkaippangmoedsnjn',\n", + " 'grtvealjeovattnerosi',\n", + " 'rrejahtpernfaurepops',\n", + " 'poprhredeeiaeatufose',\n", + " 'pipaaoedoesmeatrfnnu',\n", + " 'rraoltrpeneeapreeusi',\n", + " 'foaigsrpeeofyaeunrtd',\n", + " 'pftterrddwulevtcoroe',\n", + " 'foafrripeesanoeunrln',\n", + " 'foahroopeeaidoeunsos',\n", + " 'roeaasapeatemirusinn',\n", + " 'finaltnportiuhertior',\n", + " 'greavlsjeatutmnesirh',\n", + " 'roeotcspeadsemrussyt',\n", + " 'fonsetopermgooeutnhd',\n", + " 'rrevkdopeaugtrresrjo',\n", + " 'grohtsojenroyonehprd',\n", + " 'frlrrolpenppeeeerdru',\n", + " 'filrthsponphenerrdal',\n", + " 'roaasarpemfntnrunpei',\n", + " 'filinrnponorpherrhtd',\n", + " 'fonrharperiateeunosi',\n", + " 'fomrstopeninuseusoer',\n", + " 'pirnfoldonsdhetrncce',\n", + " 'ronaenopeefrrorusppt',\n", + " 'raajafapetnftnrniopr',\n", + " 'raajaafpetnfstrniopl',\n", + " 'raanntapetroosrniner',\n", + " 'rlahtrupitaothroisrh',\n", + " 'faahgtepetajugenisnr',\n", + " 'rlahnanpitarfrroistp',\n", + " 'gaahgovjetahounnislg',\n", + " 'gaahgotjetahoannislg',\n", + " 'rlaraeypitnsteroinnv',\n", + " 'flaarimpitsnoneoinnr',\n", + " 'ftashaopwtnemgeoieln',\n", + " 'raaejaspnfrnemreppon',\n", + " 'raaretrpefphuarnpdkr',\n", + " 'farnrorpeprieaendnou',\n", + " 'farnrltpephiiuendaoo',\n", + " 'flrnirrpipeoneeodsrn',\n", + " 'flienorpionrdaeorrns',\n", + " 'farrinipneveooeeevre',\n", + " 'flinhoopioradoeortss',\n", + " 'plapprrdiserevtolfie',\n", + " 'flahagrpisatheeolsil',\n", + " 'flrhifapitaosneohsrr',\n", + " 'flrsrlipitnpnoeohedr',\n", + " 'gaaorocjesrnoannnans',\n", + " 'flarpropispdeoeonrte',\n", + " 'rlariyspisnheyronnin',\n", + " 'rleerucpistpheroovdc',\n", + " 'flenrrypisaipeeooiod',\n", + " 'fapjrrrpsrnehaelioee',\n", + " 'frlrahoptitnenehowes',\n", + " 'raaloofpseidrtrlnosa',\n", + " 'fhtfhcopewteeoelorsi',\n", + " 'frlfhnhptitearehorsi',\n", + " 'palfacfdsiteedtlorei',\n", + " 'frhfodsptesoemehlrgg',\n", + " 'prhttaedtewuisthlorh',\n", + " 'rrhfaiuptetiehrhlrhr',\n", + " 'rrvitaaptvhicnrhoiee',\n", + " 'prviroadtvhienthoiou',\n", + " 'frvgnhaptvhoeneholes',\n", + " 'fhvnecrpevssanelocsl',\n", + " 'phvnstidevslaotlocli',\n", + " 'paahnuadesarrmtelsii',\n", + " 'gaohaatjsnrtmvnlhpin',\n", + " 'grlhtrojtnroprnhrprd',\n", + " 'grlhtutjtnrirrnhrpei',\n", + " 'rrlailvptnfeivrhrpro',\n", + " 'faorphrpsnpreeelhdil',\n", + " 'faoropnpsnperrelhdui',\n", + " 'faormropespnnneendsn',\n", + " 'rhaansrpemfrnprlnpne',\n", + " 'fharnsapemprneelndne',\n", + " 'rhaahanpemfatrrlnpsi',\n", + " 'fharhhapemparnelndsp',\n", + " 'frlrsaiptnpneoehrdee',\n", + " 'rhaashlpemfnenrlnpes',\n", + " 'rrlfksdptnpgmorhrejn',\n", + " 'frlprosptnrpsmehridn',\n", + " 'prlpisodtneonethrfre',\n", + " 'frlpvdnptnrvotehrioo',\n", + " 'rrliahiptnotahrhrhis',\n", + " 'frlwvyaptnovdcehraoo',\n", + " 'rhansaapemrnftrlnnep',\n", + " 'pharesidemnfnotlnnde',\n", + " 'rrlhofoptnaepdrhrsue',\n", + " 'fhahiptpemaoduelnsrt',\n", + " 'grlsattjtnntahnhreii',\n", + " 'grlsattjtnntahnhreii',\n", + " 'frneofoptrgetdehnhur',\n", + " 'fhnhraiperapmoelnsdn',\n", + " 'pratiahdtswosithnohl',\n", + " 'fratornptswhprehnoed',\n", + " 'rraoealptshrfnrhnepp',\n", + " 'rhaaniupesmrerrlnnnr',\n", + " 'fhaanaspesmrerelnnne',\n", + " 'roajanfpntnsrtrhiolt',\n", + " 'goanlfojntentanhirro',\n", + " 'glanohnjntrrrhnritap',\n", + " 'rlanoonpntrrehrritau',\n", + " 'flaorevpnthtnveriewe',\n", + " 'faaoranpmthtlneniewe',\n", + " 'rlanuvrpntrluarritir',\n", + " 'rlahaaopntafmhrrispn',\n", + " 'gohrystjnraeyunhpfnd',\n", + " 'glhryssjnraeymnrpfnd',\n", + " 'elkatoenngfirgerjpes',\n", + " 'gohyfuvjnreshunhpnrc',\n", + " 'faronnapmpohteendgan',\n", + " 'forynhepsperatendnns',\n", + " 'flrrpnhpnperoaerdeie',\n", + " 'roaeinepnfaeonrhpsre',\n", + " 'rlannyrpnfhoehrrpaen',\n", + " 'fornohfpspsgltendcfc',\n", + " 'glroanejnerthgnreaia',\n", + " 'gothrsrjnurayenhrpfd',\n", + " 'ploprhrdneeiaetrufos',\n", + " 'faopohspmerdomenuiso',\n", + " 'failftrpmoisuaenrorr',\n", + " 'faieerlpmolsanenrosl',\n", + " 'fainuorpmorldaenrnis',\n", + " 'foisrropsooaeoenrrte',\n", + " 'plisaafdnooaedtrrrcn',\n", + " 'fahinyopmeordrenlrno',\n", + " 'fahnhirpmeraopenlnsr',\n", + " 'foairoypssondeennrns',\n", + " 'roamrsfpssnnytrnnsnd',\n", + " 'faerylipsaheioenseno',\n", + " 'faaihnypsmoendennrla',\n", + " 'faaoiropsmhonoennern',\n", + " 'raarnaspsmnofyrnnnep',\n", + " 'ranaaajpsrfetnrnnpni',\n", + " 'pnnftsndnsdwmttaccon',\n", + " 'pnnhtsndnslamttaccin',\n", + " 'fnstorypnoceheearaue',\n", + " 'gaorasgjtrenmhniaeen',\n", + " 'raonhvopterauoriutsr',\n", + " 'garnuecjtehhtanieacv',\n", + " 'faeiltoptnoiureirror',\n", + " 'gaeororjtareaanisaee',\n", + " 'ranhusfptrahndritsct',\n", + " 'faloceeptnsaaseirnle',\n", + " 'raheltaptatiuiristor',\n", + " 'rahelfrptatidnristoc',\n", + " 'raaalonpftmiohrpinog',\n", + " 'raahnylpftaoenrpisen',\n", + " 'raahnoapftaoomrpiseg',\n", + " 'raaoisrpfeeemnrpnurn',\n", + " 'friintrppooruvedhrtr',\n", + " 'frahiltppmaoiuednsro',\n", + " 'frahiltppmaoiuednsro',\n", + " 'frarilsppmnoimednnro',\n", + " 'frsninsppnsoamedtcri',\n", + " 'frhonrrppaerieedsuno',\n", + " 'fiirohrpoeneaeerrnus',\n", + " 'roaliyrpefneevruprrn',\n", + " 'foadyhepeloeraeueonp',\n", + " 'foeaasepeatemgeusinn',\n", + " 'foeaastpeatemceusinn',\n", + " 'rreavespeatuhmresirk',\n", + " 'fonprlsperrpnmeutidr',\n", + " 'filrtovponphsverrdan',\n", + " 'gaantcrjetevasnniaul',\n", + " 'rlanvrapitruanroitrl',\n", + " 'raarvylpntvueireivrn',\n", + " 'raanntapetroosrniner',\n", + " 'gaahoaujetagernnisfe',\n", + " 'rlahiylpitahenroisin',\n", + " 'ftashnapwtnenmeoiela',\n", + " 'rlaneynpitatehroiivn',\n", + " 'raaejyfpnfrnetreppon',\n", + " 'farnrlspepriimendnoo',\n", + " 'flientrpionhuheorrar',\n", + " 'flaahcnpistaaseolisl',\n", + " 'gaavttajesvaiennloie',\n", + " 'flareoepispndaeonres',\n", + " 'fapjrrrpsrnehaelioee',\n", + " 'rrlailvptnfeivrhrpro',\n", + " 'rrlaponptnfdrtrhrpts',\n", + " 'faorgropsnpjeaelhdne',\n", + " 'fharroapemppnselndrh',\n", + " 'rhaansrpemfrnprlnpne',\n", + " 'rhaahanpemfatrrlnpsi',\n", + " 'fhaphthpemdruaelntpr',\n", + " 'prlhrofdtnaisdthrson',\n", + " 'phahfnedemadrgtlnscn',\n", + " 'paorafndesnsdstennnc',\n", + " 'ransreopshnetdrlatev',\n", + " 'frneofoptrgetdehnhur',\n", + " 'fhnaorepenmapselaned',\n", + " 'rhaaniupesmrerrlnnnr',\n", + " 'rhnraudpeenmrorlsnni',\n", + " 'rlanoonpntrrehrritau',\n", + " 'rlanoonpntrrehrritau',\n", + " 'foanpospntrrelehitiu',\n", + " 'rlanuvrpntrluarritir',\n", + " 'roakfrfpnfgttsrhpjuh',\n", + " 'gohyfuvjnreshunhpnrc',\n", + " 'gohyahfjnrenetnhpnes',\n", + " 'gohyahfjnrenetnhpnes',\n", + " 'forynhepsperatendnns',\n", + " 'farrlnopmpacooendlee',\n", + " 'farlahepmposraendsnp',\n", + " 'glroanejnerthgnreaia',\n", + " 'rooaeeapnefarerhupsp',\n", + " 'gotnfecjnuedranhrrcp',\n", + " 'flinurrpnohleherraie',\n", + " 'fairoffpmonestenrnur',\n", + " 'flohdydpneaoeeeruson',\n", + " 'ponfnradsndspstnaccr',\n", + " 'roamrsfpssnnytrnnsnd',\n", + " 'roamrsfpssnnytrnnsnd',\n", + " 'faeryltpsaheiwenseno',\n", + " 'fartdrypsnneedennrge',\n", + " 'fartdonpsnnedsennrgs',\n", + " 'fnstorypnoceheearaue',\n", + " 'raalfhspteidcmrinoch',\n", + " 'gaanrfijtnheponieaee',\n", + " 'fanhusiptrahnoeitsct',\n", + " 'frahiltppmaoiuednsro',\n", + " 'rahrnnopfaerodrpsene',\n", + " 'roaliyrpefneevruprrn',\n", + " 'foailsopeeoeyoeunrsd',\n", + " 'roeavtspeatusmrusiry',\n", + " 'grohosujenrryhnehpad',\n", + " 'frlrrolpenppeeeerdru',\n", + " 'rooasahpenflmeruhpln',\n", + " 'gaanhfejnterttneirpr',\n", + " 'raajafapetnftnrniopr',\n", + " 'raarvylpntvueireivrn',\n", + " 'gartptfjnerdwtneevto',\n", + " 'flientrpionhuheorrar',\n", + " 'flareoepispndaeonres',\n", + " 'fharohepempnlaelndhc',\n", + " 'paneoafdshgeedtlahun',\n", + " 'rlanoonpntrrehrritau',\n", + " 'raarcvapmfpevsrnpdho',\n", + " 'rlarnerpnfarrprrplie',\n", + " 'flinurrpnohleherraie',\n", + " 'fahoroopmeannoenlenh',\n", + " 'raallrmpftnianrpirol',\n", + " 'rlanvrapitruanroitrl',\n", + " 'faonpfcpeeedtaenuatr',\n", + " 'raallrmpftnianrpirol']" + ] + }, + "execution_count": 39, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "[cadenus_decipher(first_chunk, w, keycolumn)[:20] for w in hinted_keywords]" + ] + }, + { + "cell_type": "code", + "execution_count": 40, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "[]" + ] + }, + "execution_count": 40, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "[w for w in hinted_keywords if cadenus_decipher(first_chunk, w, keycolumn).startswith('phaseseven')]" + ] + }, + { + "cell_type": "code", + "execution_count": 41, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "def cadenus_break_worker(message, keyword, keycolumn, fitness):\n", + " message_chunks = chunks(message, 175)\n", + " plaintext = ''.join(cadenus_decipher(c, keyword, keycolumn) for c in message_chunks)\n", + " fit = fitness(plaintext)\n", + " return (keyword, keycolumn), fit" + ] + }, + { + "cell_type": "code", + "execution_count": 42, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "def cadenus_break(message, words=keywords, fitness=Pbigrams):\n", + " c = make_cadenus_keycolumn(reverse=True)\n", + " results = starmap(cadenus_break_worker, [(message, \n", + " w, \n", + " make_cadenus_keycolumn(doubled_letters='vw', start=s, reverse=r), \n", + " fitness)\n", + " for w in words for s in string.ascii_lowercase for r in [True, False]])\n", + " # return list(results)\n", + " return max(results, key=lambda k: k[1])" + ] + }, + { + "cell_type": "code", + "execution_count": 43, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(('finalist',\n", + " {'a': 6,\n", + " 'b': 5,\n", + " 'c': 4,\n", + " 'd': 3,\n", + " 'e': 2,\n", + " 'f': 1,\n", + " 'g': 0,\n", + " 'h': 24,\n", + " 'i': 23,\n", + " 'j': 22,\n", + " 'k': 21,\n", + " 'l': 20,\n", + " 'm': 19,\n", + " 'n': 18,\n", + " 'o': 17,\n", + " 'p': 16,\n", + " 'q': 15,\n", + " 'r': 14,\n", + " 's': 13,\n", + " 't': 12,\n", + " 'u': 11,\n", + " 'v': 10,\n", + " 'w': 10,\n", + " 'x': 9,\n", + " 'y': 8,\n", + " 'z': 7}),\n", + " -5286.197562931952)" + ] + }, + "execution_count": 43, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "key8b, fitness = cadenus_break(c8bl, words=hinted_keywords, fitness=Ptrigrams)\n", + "key8b, fitness" + ] + }, + { + "cell_type": "code", + "execution_count": 44, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'wledgctftrojhrtheonovoresoovrpanegoarerufofinaltnportiuhertiorafthehasdwarenncompleeeandoastestssoveconlrudedtlsreisnntignfrrrthesinaaltranlicthaaehesecisityseemiceshuneanykhf'" + ] + }, + "execution_count": 44, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "cadenus_decipher(first_chunk, key8b[0], key8b[1])" + ] + }, + { + "cell_type": "code", + "execution_count": 50, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "[('finalist', 'z', 'az', True),\n", + " ('finalist', 'a', 'no', True),\n", + " ('finalist', 'n', 'no', True),\n", + " ('finalist', 'a', 'nu', True),\n", + " ('finalist', 'n', 'nu', True),\n", + " ('finalist', 'a', 'nz', True),\n", + " ('finalist', 'n', 'nz', True),\n", + " ('finalist', 'a', 'op', True),\n", + " ('finalist', 'o', 'op', True),\n", + " ('finalist', 'a', 'oq', True),\n", + " ('finalist', 'o', 'oq', True),\n", + " ('finalist', 'a', 'or', True),\n", + " ('finalist', 'o', 'or', True),\n", + " ('finalist', 'a', 'os', True),\n", + " ('finalist', 'o', 'os', True),\n", + " ('finalist', 'a', 'ot', True),\n", + " ('finalist', 'o', 'ot', True),\n", + " ('finalist', 'a', 'ou', True),\n", + " ('finalist', 'o', 'ou', True),\n", + " ('finalist', 'a', 'ov', True),\n", + " ('finalist', 'o', 'ov', True),\n", + " ('finalist', 'a', 'ow', True),\n", + " ('finalist', 'o', 'ow', True),\n", + " ('finalist', 'a', 'ox', True),\n", + " ('finalist', 'o', 'ox', True),\n", + " ('finalist', 'a', 'oy', True),\n", + " ('finalist', 'o', 'oy', True),\n", + " ('finalist', 'a', 'oz', True),\n", + " ('finalist', 'o', 'oz', True),\n", + " ('finalist', 'a', 'pq', True),\n", + " ('finalist', 'p', 'pq', True),\n", + " ('finalist', 'a', 'pr', True),\n", + " ('finalist', 'p', 'pr', True),\n", + " ('finalist', 'a', 'ps', True),\n", + " ('finalist', 'p', 'ps', True),\n", + " ('finalist', 'a', 'pt', True),\n", + " ('finalist', 'p', 'pt', True),\n", + " ('finalist', 'a', 'pu', True),\n", + " ('finalist', 'p', 'pu', True),\n", + " ('finalist', 'a', 'pv', True),\n", + " ('finalist', 'p', 'pv', True),\n", + " ('finalist', 'a', 'pw', True),\n", + " ('finalist', 'p', 'pw', True),\n", + " ('finalist', 'a', 'px', True),\n", + " ('finalist', 'p', 'px', True),\n", + " ('finalist', 'a', 'py', True),\n", + " ('finalist', 'p', 'py', True),\n", + " ('finalist', 'a', 'pz', True),\n", + " ('finalist', 'p', 'pz', True),\n", + " ('finalist', 'a', 'qr', True),\n", + " ('finalist', 'q', 'qr', True),\n", + " ('finalist', 'a', 'qs', True),\n", + " ('finalist', 'q', 'qs', True),\n", + " ('finalist', 'a', 'qt', True),\n", + " ('finalist', 'q', 'qt', True),\n", + " ('finalist', 'a', 'qu', True),\n", + " ('finalist', 'q', 'qu', True),\n", + " ('finalist', 'a', 'qv', True),\n", + " ('finalist', 'q', 'qv', True),\n", + " ('finalist', 'a', 'qw', True),\n", + " ('finalist', 'q', 'qw', True),\n", + " ('finalist', 'a', 'qx', True),\n", + " ('finalist', 'q', 'qx', True),\n", + " ('finalist', 'a', 'qy', True),\n", + " ('finalist', 'q', 'qy', True),\n", + " ('finalist', 'a', 'qz', True),\n", + " ('finalist', 'q', 'qz', True),\n", + " ('finalist', 'a', 'rs', True),\n", + " ('finalist', 'r', 'rs', True),\n", + " ('finalist', 'a', 'rt', True),\n", + " ('finalist', 'r', 'rt', True),\n", + " ('finalist', 'a', 'ru', True),\n", + " ('finalist', 'r', 'ru', True),\n", + " ('finalist', 'a', 'rv', True),\n", + " ('finalist', 'r', 'rv', True),\n", + " ('finalist', 'a', 'rw', True),\n", + " ('finalist', 'r', 'rw', True),\n", + " ('finalist', 'a', 'rx', True),\n", + " ('finalist', 'r', 'rx', True),\n", + " ('finalist', 'a', 'ry', True),\n", + " ('finalist', 'r', 'ry', True),\n", + " ('finalist', 'a', 'rz', True),\n", + " ('finalist', 'r', 'rz', True),\n", + " ('finalist', 'a', 'st', True),\n", + " ('finalist', 's', 'st', True),\n", + " ('finalist', 'a', 'su', True),\n", + " ('finalist', 's', 'su', True),\n", + " ('finalist', 'a', 'sv', True),\n", + " ('finalist', 's', 'sv', True),\n", + " ('finalist', 'a', 'sw', True),\n", + " ('finalist', 's', 'sw', True),\n", + " ('finalist', 'a', 'sx', True),\n", + " ('finalist', 's', 'sx', True),\n", + " ('finalist', 'a', 'sy', True),\n", + " ('finalist', 's', 'sy', True),\n", + " ('finalist', 'a', 'sz', True),\n", + " ('finalist', 's', 'sz', True),\n", + " ('finalist', 'a', 'tu', True),\n", + " ('finalist', 't', 'tu', True),\n", + " ('finalist', 'a', 'tv', True),\n", + " ('finalist', 't', 'tv', True),\n", + " ('finalist', 'a', 'tw', True),\n", + " ('finalist', 't', 'tw', True),\n", + " ('finalist', 'a', 'tx', True),\n", + " ('finalist', 't', 'tx', True),\n", + " ('finalist', 'a', 'ty', True),\n", + " ('finalist', 't', 'ty', True),\n", + " ('finalist', 'a', 'tz', True),\n", + " ('finalist', 't', 'tz', True),\n", + " ('finalist', 'a', 'uv', True),\n", + " ('finalist', 'u', 'uv', True),\n", + " ('finalist', 'a', 'uw', True),\n", + " ('finalist', 'u', 'uw', True),\n", + " ('finalist', 'a', 'ux', True),\n", + " ('finalist', 'u', 'ux', True),\n", + " ('finalist', 'a', 'uy', True),\n", + " ('finalist', 'u', 'uy', True),\n", + " ('finalist', 'a', 'uz', True),\n", + " ('finalist', 'u', 'uz', True),\n", + " ('finalist', 'a', 'vw', True),\n", + " ('finalist', 'v', 'vw', True),\n", + " ('finalist', 'a', 'vx', True),\n", + " ('finalist', 'v', 'vx', True),\n", + " ('finalist', 'a', 'vy', True),\n", + " ('finalist', 'v', 'vy', True),\n", + " ('finalist', 'a', 'vz', True),\n", + " ('finalist', 'v', 'vz', True),\n", + " ('finalist', 'a', 'wx', True),\n", + " ('finalist', 'w', 'wx', True),\n", + " ('finalist', 'a', 'wy', True),\n", + " ('finalist', 'w', 'wy', True),\n", + " ('finalist', 'a', 'wz', True),\n", + " ('finalist', 'w', 'wz', True),\n", + " ('finalist', 'a', 'xy', True),\n", + " ('finalist', 'x', 'xy', True),\n", + " ('finalist', 'a', 'xz', True),\n", + " ('finalist', 'x', 'xz', True),\n", + " ('finalist', 'a', 'yz', True),\n", + " ('finalist', 'y', 'yz', True),\n", + " ('finality', 'z', 'az', True),\n", + " ('finality', 'a', 'no', True),\n", + " ('finality', 'n', 'no', True),\n", + " ('finality', 'a', 'nu', True),\n", + " ('finality', 'n', 'nu', True),\n", + " ('finality', 'a', 'nz', True),\n", + " ('finality', 'n', 'nz', True),\n", + " ('finality', 'a', 'op', True),\n", + " ('finality', 'o', 'op', True),\n", + " ('finality', 'a', 'oq', True),\n", + " ('finality', 'o', 'oq', True),\n", + " ('finality', 'a', 'or', True),\n", + " ('finality', 'o', 'or', True),\n", + " ('finality', 'a', 'os', True),\n", + " ('finality', 'o', 'os', True),\n", + " ('finality', 'a', 'ot', True),\n", + " ('finality', 'o', 'ot', True),\n", + " ('finality', 'a', 'ou', True),\n", + " ('finality', 'o', 'ou', True),\n", + " ('finality', 'a', 'ov', True),\n", + " ('finality', 'o', 'ov', True),\n", + " ('finality', 'a', 'ow', True),\n", + " ('finality', 'o', 'ow', True),\n", + " ('finality', 'a', 'ox', True),\n", + " ('finality', 'o', 'ox', True),\n", + " ('finality', 'a', 'oy', True),\n", + " ('finality', 'o', 'oy', True),\n", + " ('finality', 'a', 'oz', True),\n", + " ('finality', 'o', 'oz', True),\n", + " ('finality', 'a', 'pq', True),\n", + " ('finality', 'p', 'pq', True),\n", + " ('finality', 'a', 'pr', True),\n", + " ('finality', 'p', 'pr', True),\n", + " ('finality', 'a', 'ps', True),\n", + " ('finality', 'p', 'ps', True),\n", + " ('finality', 'a', 'pt', True),\n", + " ('finality', 'p', 'pt', True),\n", + " ('finality', 'a', 'pu', True),\n", + " ('finality', 'p', 'pu', True),\n", + " ('finality', 'a', 'pv', True),\n", + " ('finality', 'p', 'pv', True),\n", + " ('finality', 'a', 'pw', True),\n", + " ('finality', 'p', 'pw', True),\n", + " ('finality', 'a', 'px', True),\n", + " ('finality', 'p', 'px', True),\n", + " ('finality', 'a', 'py', True),\n", + " ('finality', 'p', 'py', True),\n", + " ('finality', 'a', 'pz', True),\n", + " ('finality', 'p', 'pz', True),\n", + " ('finality', 'a', 'qr', True),\n", + " ('finality', 'q', 'qr', True),\n", + " ('finality', 'a', 'qs', True),\n", + " ('finality', 'q', 'qs', True),\n", + " ('finality', 'a', 'qt', True),\n", + " ('finality', 'q', 'qt', True),\n", + " ('finality', 'a', 'qu', True),\n", + " ('finality', 'q', 'qu', True),\n", + " ('finality', 'a', 'qv', True),\n", + " ('finality', 'q', 'qv', True),\n", + " ('finality', 'a', 'qw', True),\n", + " ('finality', 'q', 'qw', True),\n", + " ('finality', 'a', 'qx', True),\n", + " ('finality', 'q', 'qx', True),\n", + " ('finality', 'a', 'qy', True),\n", + " ('finality', 'q', 'qy', True),\n", + " ('finality', 'a', 'qz', True),\n", + " ('finality', 'q', 'qz', True),\n", + " ('finality', 'a', 'rs', True),\n", + " ('finality', 'r', 'rs', True),\n", + " ('finality', 'a', 'rt', True),\n", + " ('finality', 'r', 'rt', True),\n", + " ('finality', 'a', 'ru', True),\n", + " ('finality', 'r', 'ru', True),\n", + " ('finality', 'a', 'rv', True),\n", + " ('finality', 'r', 'rv', True),\n", + " ('finality', 'a', 'rw', True),\n", + " ('finality', 'r', 'rw', True),\n", + " ('finality', 'a', 'rx', True),\n", + " ('finality', 'r', 'rx', True),\n", + " ('finality', 'a', 'ry', True),\n", + " ('finality', 'r', 'ry', True),\n", + " ('finality', 'a', 'rz', True),\n", + " ('finality', 'r', 'rz', True),\n", + " ('finality', 'a', 'st', True),\n", + " ('finality', 's', 'st', True),\n", + " ('finality', 'a', 'su', True),\n", + " ('finality', 's', 'su', True),\n", + " ('finality', 'a', 'sv', True),\n", + " ('finality', 's', 'sv', True),\n", + " ('finality', 'a', 'sw', True),\n", + " ('finality', 's', 'sw', True),\n", + " ('finality', 'a', 'sx', True),\n", + " ('finality', 's', 'sx', True),\n", + " ('finality', 'a', 'sy', True),\n", + " ('finality', 's', 'sy', True),\n", + " ('finality', 'a', 'sz', True),\n", + " ('finality', 's', 'sz', True),\n", + " ('finality', 'a', 'tu', True),\n", + " ('finality', 't', 'tu', True),\n", + " ('finality', 'a', 'tv', True),\n", + " ('finality', 't', 'tv', True),\n", + " ('finality', 'a', 'tw', True),\n", + " ('finality', 't', 'tw', True),\n", + " ('finality', 'a', 'tx', True),\n", + " ('finality', 't', 'tx', True),\n", + " ('finality', 'a', 'ty', True),\n", + " ('finality', 't', 'ty', True),\n", + " ('finality', 'a', 'tz', True),\n", + " ('finality', 't', 'tz', True),\n", + " ('finality', 'a', 'uv', True),\n", + " ('finality', 'u', 'uv', True),\n", + " ('finality', 'a', 'uw', True),\n", + " ('finality', 'u', 'uw', True),\n", + " ('finality', 'a', 'ux', True),\n", + " ('finality', 'u', 'ux', True),\n", + " ('finality', 'a', 'uy', True),\n", + " ('finality', 'u', 'uy', True),\n", + " ('finality', 'a', 'uz', True),\n", + " ('finality', 'u', 'uz', True),\n", + " ('finality', 'a', 'vw', True),\n", + " ('finality', 'v', 'vw', True),\n", + " ('finality', 'a', 'vx', True),\n", + " ('finality', 'v', 'vx', True),\n", + " ('finality', 'a', 'vy', True),\n", + " ('finality', 'v', 'vy', True),\n", + " ('finality', 'a', 'vz', True),\n", + " ('finality', 'v', 'vz', True),\n", + " ('finality', 'a', 'wx', True),\n", + " ('finality', 'w', 'wx', True),\n", + " ('finality', 'a', 'wy', True),\n", + " ('finality', 'w', 'wy', True),\n", + " ('finality', 'a', 'wz', True),\n", + " ('finality', 'w', 'wz', True),\n", + " ('finality', 'a', 'xy', True),\n", + " ('finality', 'x', 'xy', True),\n", + " ('finality', 'a', 'xz', True),\n", + " ('finality', 'x', 'xz', True),\n", + " ('finality', 'a', 'yz', True),\n", + " ('finality', 'y', 'yz', True),\n", + " ('foulness', 'x', 'ov', True),\n", + " ('finalists', 'z', 'az', True),\n", + " ('finalists', 'a', 'no', True),\n", + " ('finalists', 'n', 'no', True),\n", + " ('finalists', 'a', 'nu', True),\n", + " ('finalists', 'n', 'nu', True),\n", + " ('finalists', 'a', 'nz', True),\n", + " ('finalists', 'n', 'nz', True),\n", + " ('finalists', 'a', 'op', True),\n", + " ('finalists', 'o', 'op', True),\n", + " ('finalists', 'a', 'oq', True),\n", + " ('finalists', 'o', 'oq', True),\n", + " ('finalists', 'a', 'or', True),\n", + " ('finalists', 'o', 'or', True),\n", + " ('finalists', 'a', 'os', True),\n", + " ('finalists', 'o', 'os', True),\n", + " ('finalists', 'a', 'ot', True),\n", + " ('finalists', 'o', 'ot', True),\n", + " ('finalists', 'a', 'ou', True),\n", + " ('finalists', 'o', 'ou', True),\n", + " ('finalists', 'a', 'ov', True),\n", + " ('finalists', 'o', 'ov', True),\n", + " ('finalists', 'a', 'ow', True),\n", + " ('finalists', 'o', 'ow', True),\n", + " ('finalists', 'a', 'ox', True),\n", + " ('finalists', 'o', 'ox', True),\n", + " ('finalists', 'a', 'oy', True),\n", + " ('finalists', 'o', 'oy', True),\n", + " ('finalists', 'a', 'oz', True),\n", + " ('finalists', 'o', 'oz', True),\n", + " ('finalists', 'a', 'pq', True),\n", + " ('finalists', 'p', 'pq', True),\n", + " ('finalists', 'a', 'pr', True),\n", + " ('finalists', 'p', 'pr', True),\n", + " ('finalists', 'a', 'ps', True),\n", + " ('finalists', 'p', 'ps', True),\n", + " ('finalists', 'a', 'pt', True),\n", + " ('finalists', 'p', 'pt', True),\n", + " ('finalists', 'a', 'pu', True),\n", + " ('finalists', 'p', 'pu', True),\n", + " ('finalists', 'a', 'pv', True),\n", + " ('finalists', 'p', 'pv', True),\n", + " ('finalists', 'a', 'pw', True),\n", + " ('finalists', 'p', 'pw', True),\n", + " ('finalists', 'a', 'px', True),\n", + " ('finalists', 'p', 'px', True),\n", + " ('finalists', 'a', 'py', True),\n", + " ('finalists', 'p', 'py', True),\n", + " ('finalists', 'a', 'pz', True),\n", + " ('finalists', 'p', 'pz', True),\n", + " ('finalists', 'a', 'qr', True),\n", + " ('finalists', 'q', 'qr', True),\n", + " ('finalists', 'a', 'qs', True),\n", + " ('finalists', 'q', 'qs', True),\n", + " ('finalists', 'a', 'qt', True),\n", + " ('finalists', 'q', 'qt', True),\n", + " ('finalists', 'a', 'qu', True),\n", + " ('finalists', 'q', 'qu', True),\n", + " ('finalists', 'a', 'qv', True),\n", + " ('finalists', 'q', 'qv', True),\n", + " ('finalists', 'a', 'qw', True),\n", + " ('finalists', 'q', 'qw', True),\n", + " ('finalists', 'a', 'qx', True),\n", + " ('finalists', 'q', 'qx', True),\n", + " ('finalists', 'a', 'qy', True),\n", + " ('finalists', 'q', 'qy', True),\n", + " ('finalists', 'a', 'qz', True),\n", + " ('finalists', 'q', 'qz', True),\n", + " ('finalists', 'a', 'rs', True),\n", + " ('finalists', 'r', 'rs', True),\n", + " ('finalists', 'a', 'rt', True),\n", + " ('finalists', 'r', 'rt', True),\n", + " ('finalists', 'a', 'ru', True),\n", + " ('finalists', 'r', 'ru', True),\n", + " ('finalists', 'a', 'rv', True),\n", + " ('finalists', 'r', 'rv', True),\n", + " ('finalists', 'a', 'rw', True),\n", + " ('finalists', 'r', 'rw', True),\n", + " ('finalists', 'a', 'rx', True),\n", + " ('finalists', 'r', 'rx', True),\n", + " ('finalists', 'a', 'ry', True),\n", + " ('finalists', 'r', 'ry', True),\n", + " ('finalists', 'a', 'rz', True),\n", + " ('finalists', 'r', 'rz', True),\n", + " ('finalists', 'a', 'st', True),\n", + " ('finalists', 's', 'st', True),\n", + " ('finalists', 'a', 'su', True),\n", + " ('finalists', 's', 'su', True),\n", + " ('finalists', 'a', 'sv', True),\n", + " ('finalists', 's', 'sv', True),\n", + " ('finalists', 'a', 'sw', True),\n", + " ('finalists', 's', 'sw', True),\n", + " ('finalists', 'a', 'sx', True),\n", + " ('finalists', 's', 'sx', True),\n", + " ('finalists', 'a', 'sy', True),\n", + " ('finalists', 's', 'sy', True),\n", + " ('finalists', 'a', 'sz', True),\n", + " ('finalists', 's', 'sz', True),\n", + " ('finalists', 'a', 'tu', True),\n", + " ('finalists', 't', 'tu', True),\n", + " ('finalists', 'a', 'tv', True),\n", + " ('finalists', 't', 'tv', True),\n", + " ('finalists', 'a', 'tw', True),\n", + " ('finalists', 't', 'tw', True),\n", + " ('finalists', 'a', 'tx', True),\n", + " ('finalists', 't', 'tx', True),\n", + " ('finalists', 'a', 'ty', True),\n", + " ('finalists', 't', 'ty', True),\n", + " ('finalists', 'a', 'tz', True),\n", + " ('finalists', 't', 'tz', True),\n", + " ('finalists', 'a', 'uv', True),\n", + " ('finalists', 'u', 'uv', True),\n", + " ('finalists', 'a', 'uw', True),\n", + " ('finalists', 'u', 'uw', True),\n", + " ('finalists', 'a', 'ux', True),\n", + " ('finalists', 'u', 'ux', True),\n", + " ('finalists', 'a', 'uy', True),\n", + " ('finalists', 'u', 'uy', True),\n", + " ('finalists', 'a', 'uz', True),\n", + " ('finalists', 'u', 'uz', True),\n", + " ('finalists', 'a', 'vw', True),\n", + " ('finalists', 'v', 'vw', True),\n", + " ('finalists', 'a', 'vx', True),\n", + " ('finalists', 'v', 'vx', True),\n", + " ('finalists', 'a', 'vy', True),\n", + " ('finalists', 'v', 'vy', True),\n", + " ('finalists', 'a', 'vz', True),\n", + " ('finalists', 'v', 'vz', True),\n", + " ('finalists', 'a', 'wx', True),\n", + " ('finalists', 'w', 'wx', True),\n", + " ('finalists', 'a', 'wy', True),\n", + " ('finalists', 'w', 'wy', True),\n", + " ('finalists', 'a', 'wz', True),\n", + " ('finalists', 'w', 'wz', True),\n", + " ('finalists', 'a', 'xy', True),\n", + " ('finalists', 'x', 'xy', True),\n", + " ('finalists', 'a', 'xz', True),\n", + " ('finalists', 'x', 'xz', True),\n", + " ('finalists', 'a', 'yz', True),\n", + " ('finalists', 'y', 'yz', True),\n", + " ('foulnesss', 'x', 'ov', True)]" + ] + }, + "execution_count": 50, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "[(w, s, d1+d2, r)\n", + " for w in hinted_keywords \n", + " for d1 in string.ascii_lowercase[:25]\n", + " for d2 in string.ascii_lowercase\n", + " for s in string.ascii_lowercase \n", + " for r in [True, False]\n", + " if d2 > d1\n", + " if cadenus_decipher(first_chunk, w, \n", + " make_cadenus_keycolumn(doubled_letters=d1+d2, start=s, reverse=r)).startswith('finalreport')]" + ] + }, + { + "cell_type": "code", + "execution_count": 55, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "[]" + ] + }, + "execution_count": 55, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "[(w, s, d1+d2, r, cadenus_decipher(first_chunk, w, \n", + " make_cadenus_keycolumn(doubled_letters=d1+d2, start=s, reverse=r))[:50])\n", + " for w in hinted_keywords \n", + " for d1 in string.ascii_lowercase[:25]\n", + " for d2 in string.ascii_lowercase\n", + " for s in string.ascii_lowercase \n", + " for r in [True, False]\n", + " if d2 > d1\n", + " if cadenus_decipher(first_chunk, w, \n", + " make_cadenus_keycolumn(doubled_letters=d1+d2, start=s, reverse=r)).startswith('finalreport')]" + ] + }, + { + "cell_type": "code", + "execution_count": 52, + "metadata": { + "collapsed": false, + "scrolled": true + }, + "outputs": [ + { + "data": { + "text/plain": [ + "[('finalist', 'a', 'no', True),\n", + " ('finalist', 'n', 'no', True),\n", + " ('finalist', 'a', 'op', True),\n", + " ('finalist', 'o', 'op', True),\n", + " ('finalist', 'a', 'pq', True),\n", + " ('finalist', 'p', 'pq', True),\n", + " ('finalist', 'a', 'qr', True),\n", + " ('finalist', 'q', 'qr', True),\n", + " ('finalist', 'a', 'rs', True),\n", + " ('finalist', 'r', 'rs', True),\n", + " ('finalist', 'a', 'st', True),\n", + " ('finalist', 's', 'st', True),\n", + " ('finalist', 'a', 'tu', True),\n", + " ('finalist', 't', 'tu', True),\n", + " ('finalist', 'a', 'uv', True),\n", + " ('finalist', 'u', 'uv', True),\n", + " ('finalist', 'a', 'vw', True),\n", + " ('finalist', 'v', 'vw', True),\n", + " ('finalist', 'a', 'wx', True),\n", + " ('finalist', 'w', 'wx', True),\n", + " ('finalist', 'a', 'xy', True),\n", + " ('finalist', 'x', 'xy', True),\n", + " ('finalist', 'a', 'yz', True),\n", + " ('finalist', 'y', 'yz', True),\n", + " ('finality', 'a', 'no', True),\n", + " ('finality', 'n', 'no', True),\n", + " ('finality', 'a', 'op', True),\n", + " ('finality', 'o', 'op', True),\n", + " ('finality', 'a', 'pq', True),\n", + " ('finality', 'p', 'pq', True),\n", + " ('finality', 'a', 'qr', True),\n", + " ('finality', 'q', 'qr', True),\n", + " ('finality', 'a', 'rs', True),\n", + " ('finality', 'r', 'rs', True),\n", + " ('finality', 'a', 'st', True),\n", + " ('finality', 's', 'st', True),\n", + " ('finality', 'a', 'tu', True),\n", + " ('finality', 't', 'tu', True),\n", + " ('finality', 'a', 'uv', True),\n", + " ('finality', 'u', 'uv', True),\n", + " ('finality', 'a', 'vw', True),\n", + " ('finality', 'v', 'vw', True),\n", + " ('finality', 'a', 'wx', True),\n", + " ('finality', 'w', 'wx', True),\n", + " ('finality', 'a', 'xy', True),\n", + " ('finality', 'x', 'xy', True),\n", + " ('finality', 'a', 'yz', True),\n", + " ('finality', 'y', 'yz', True),\n", + " ('finalists', 'a', 'no', True),\n", + " ('finalists', 'n', 'no', True),\n", + " ('finalists', 'a', 'op', True),\n", + " ('finalists', 'o', 'op', True),\n", + " ('finalists', 'a', 'pq', True),\n", + " ('finalists', 'p', 'pq', True),\n", + " ('finalists', 'a', 'qr', True),\n", + " ('finalists', 'q', 'qr', True),\n", + " ('finalists', 'a', 'rs', True),\n", + " ('finalists', 'r', 'rs', True),\n", + " ('finalists', 'a', 'st', True),\n", + " ('finalists', 's', 'st', True),\n", + " ('finalists', 'a', 'tu', True),\n", + " ('finalists', 't', 'tu', True),\n", + " ('finalists', 'a', 'uv', True),\n", + " ('finalists', 'u', 'uv', True),\n", + " ('finalists', 'a', 'vw', True),\n", + " ('finalists', 'v', 'vw', True),\n", + " ('finalists', 'a', 'wx', True),\n", + " ('finalists', 'w', 'wx', True),\n", + " ('finalists', 'a', 'xy', True),\n", + " ('finalists', 'x', 'xy', True),\n", + " ('finalists', 'a', 'yz', True),\n", + " ('finalists', 'y', 'yz', True)]" + ] + }, + "execution_count": 52, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "[(w, s, d1+chr(ord(d1)+1), r)\n", + " for w in hinted_keywords \n", + " for d1 in string.ascii_lowercase[:25]\n", + " # for d2 in string.ascii_lowercase\n", + " for s in string.ascii_lowercase \n", + " for r in [True, False]\n", + " # if d2 > d1\n", + " if cadenus_decipher(first_chunk, w, make_cadenus_keycolumn(doubled_letters=d1+chr(ord(d1)+1), start=s, reverse=r)).startswith('final')]" + ] + }, + { + "cell_type": "code", + "execution_count": 53, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'phasennrkmffnhignsdaaojsrcisrncheentoeetueweisvhsounsucoaleyrhreitdioseotototdhsoagreeysifaglenhtlhonriuelseairscnrteameteiwnntneefefcrartataieposrlandrlvtartalvhctofnorehdpro'" + ] + }, + "execution_count": 53, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "cadenus_decipher(first_chunk, 'filbert', make_cadenus_keycolumn(doubled_letters='lu', start='m', reverse=False))" + ] + }, + { + "cell_type": "code", + "execution_count": 54, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "['afcaeuottacthrioletcserthshtrahkyorpfrgeoadppjnglternefeofiortsddoeeumscruernfetlaafstwientrvoonerhuahravereetsvsielhlostdoaloyaesmnndignnrhohhtsnaoilncnssicreanneeiiierwtanes']" + ] + }, + "execution_count": 54, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "chunks(first_chunk, 175)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.4.3" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/2015-challenge1.ipynb b/2015-challenge1.ipynb deleted file mode 100644 index f565f7b..0000000 --- a/2015-challenge1.ipynb +++ /dev/null @@ -1,138 +0,0 @@ -{ - "cells": [ - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [], - "source": [ - "import matplotlib.pyplot as plt\n", - "%matplotlib inline\n", - "\n", - "from cipherbreak import *\n", - "\n", - "c1a = open('2015/1a.ciphertext').read()\n", - "c1b = open('2015/1b.ciphertext').read()" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "text/plain": [ - "(12, -883.4816832492597)" - ] - }, - "execution_count": 2, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "key_a, score = caesar_break(c1a)\n", - "key_a, score" - ] - }, - { - "cell_type": "code", - "execution_count": 7, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "HARRY, SORRY TO DRAG YOU BACK IN , WE WERE HOPING TO GIVE YOU SOME TIME OFF AFTER THE LAST CASE, BUT SOMETHING CAME UP AND WE NEED YOUR HELP. \n", - "\n", - "AT A MEETING OF THE FOUR POWERS ALLIED CONTROL COUNCIL TWO WEEKS AGO THE FRENCH ACCUSED THE RUSSIANS OF SHELTERING A NAZI MEDIC KNOWN AS THE REICHSDOKTOR. APPARENTLY THEY INTERCEPTED A MORSE CODE RADIO BROADCAST FROM THE RUSSIAN SECTOR OF BERLIN IN WHICH THE DOCTOR WAS OFFERING INTELLIGENCE ABOUT THE RATLINES IN EXCHANGE FOR ASYLUM. THE RUSSIANS CLAIMED NOT TO KNOW ANYTHING ABOUT IT, AND MAYBE THEY ARE TELLING THE TRUTH, BUT THINGS HAVE BEEN A LITTLE FROSTY SINCE TRUMAN'S SPEECH ON MARCH TWELFTH AND WE REALLY DON'T NEED MORE CONFLICT RIGHT NOW. WE FIGURE WITH YOUR CONTACTS OVER HERE YOU MIGHT BE ABLE TO FIND OUT IF THE RUSSIANS ARE TELLING THE TRUTH. I HAVE ATTACHED THE ENCRYPTED TRANSCRIPT OF THE BROADCAST. \n", - "CHARLIE\n" - ] - } - ], - "source": [ - "print(caesar_decipher(c1a, key_a))" - ] - }, - { - "cell_type": "code", - "execution_count": 8, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "text/plain": [ - "(14, -403.53308240183975)" - ] - }, - "execution_count": 8, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "key_b, score = caesar_break(c1b)\n", - "key_b, score" - ] - }, - { - "cell_type": "code", - "execution_count": 9, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "if you want to know the secret of the rat lines i maybe able to help but the price will be high and is not negotiable life herein berlin has lost its lustre and i want sanctuary in a more congenial climate with security for my future i can provide details of personnel policy security and routes and can furnish you with documentary evidence of the reach of the organization the reichs doktor\n" - ] - } - ], - "source": [ - "print(' '.join(segment(sanitise(caesar_decipher(c1b, key_b)))))" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": false - }, - "outputs": [], - "source": [] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.4.3" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/2015-challenge2.ipynb b/2015-challenge2.ipynb deleted file mode 100644 index 8a55515..0000000 --- a/2015-challenge2.ipynb +++ /dev/null @@ -1,138 +0,0 @@ -{ - "cells": [ - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [], - "source": [ - "import matplotlib.pyplot as plt\n", - "%matplotlib inline\n", - "\n", - "from cipherbreak import *\n", - "\n", - "c2a = open('2015/2a.ciphertext').read()\n", - "c2b = open('2015/2b.ciphertext').read()" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "text/plain": [ - "(15, -1150.5844346071483)" - ] - }, - "execution_count": 2, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "key_a, score = caesar_break(c2a)\n", - "key_a, score" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "CHARLIE, NO NEED TO APOLOGISE, LIFE WAS GETTING DULL BEHIND A DESK AND I WAS GLAD TO HAVE AN EXCUSE TO FLY BACK TO EUROPE. I AM INTRIGUED ABOUT THE REICHSDOKTOR - I HADN'T COME ACROSS THIS BEFORE, WHEN DID YOU FIRST COME HEAR OF IT? \n", - "I THINK I MAY ALREADY BE MAKING SOME PROGRESS. ON ARRIVAL I FOUND A POSTCARD WAITING FOR ME ON THE MAT AT THE EMBASSY WITH NO MESSAGE ON IT . AT LEAST THAT'S WHAT IT LOOKED LIKE AT FIRST. I DID NOTICE THAT THE LETTERS ON THE FRONT COULD BE HIGHLIGHTED TO PICK OUT THE PHRASE THE REICHSDOKTOR SO UNLESS THAT IS AN EXTRAORDINARY COINCIDENCE I FIGURED IT MUST BE RELATED TO OUR INVESTIGATION. THE STRANGEST THING WAS THAT THE POSTCARD HAD A STAMP BUT NO POSTMARK ON IT, SO IT CAN'T HAVE BEEN POSTED. SINCE IT WASN'T SIGNED I ASSUME THEY WANTED TO STAY ANONYMOUS AND I COULDN'T SEE WHY THEY WOULD HAVE TAKEN THE RISK OF HAND DELIVERING IT, BUT IN THE END I WORKED IT OUT. THERE WAS A HIDDEN MESSAGE. I'LL LEAVE IT TO YOU TO FIGURE OUT WHERE IT WAS HIDDEN. ANYWAY I'VE ATTACHED THE MESSAGE I FOUND. I KNOW THAT RELATIONS WITH THREE OF THE FOUR POWERS ARE RELATIVELY STABLE, BUT I THINK WE NEED TO KEEP THIS TO OURSELVES FOR NOW. ALL THE BEST, \n", - "HARRY\n", - "\n" - ] - } - ], - "source": [ - "print(caesar_decipher(c2a, key_a))" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "text/plain": [ - "(21, -574.2402792119872)" - ] - }, - "execution_count": 4, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "key_b, score = caesar_break(c2b)\n", - "key_b, score" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "if you really want to get in the middle of this you will have to pay i know you will be hunting me and i can forgive the arrogance but i will not forgive your ignorance before you can learn more about the rat lines from me you will have to ask your colleagues in french and british intelligence what they already know powerful forces are working to keep the rat lines running and we both need to know who our enemies are before we can meet you should understand that without me your investigations will gain little negotiations with me may gain everything\n" - ] - } - ], - "source": [ - "print(' '.join(segment(sanitise(caesar_decipher(c2b, key_b)))))" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": false - }, - "outputs": [], - "source": [] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.4.3" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/2015-challenge3.ipynb b/2015-challenge3.ipynb deleted file mode 100644 index 2b81441..0000000 --- a/2015-challenge3.ipynb +++ /dev/null @@ -1,136 +0,0 @@ -{ - "cells": [ - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [], - "source": [ - "import matplotlib.pyplot as plt\n", - "%matplotlib inline\n", - "\n", - "from cipherbreak import *\n", - "\n", - "c3a = open('2015/3a.ciphertext').read()\n", - "c3b = open('2015/3b.ciphertext').read()" - ] - }, - { - "cell_type": "code", - "execution_count": 6, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "text/plain": [ - "((3, 5, True), -901.37737042341)" - ] - }, - "execution_count": 6, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "(key_a_m, key_a_a, key_a_o), score = affine_break(c3a)\n", - "(key_a_m, key_a_a, key_a_o), score" - ] - }, - { - "cell_type": "code", - "execution_count": 7, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "HARRY, THE PUZZLE OF THE STAMPED POSTCARD HAD ME FOOLED FOR A WHILE, BUT I THINK I FIGURED IT OUT. WAS THE MESSAGE ON THE BACK OF THE STAMP? I AM GUESSING YOU STEAMED IT OFF AND FOUND IT THERE. IT WAS A PRETTY INGENIOUS PLOY. MY MASTERS BACK IN WASHINGTON ARE INCREASINGLY WORRIED ABOUT OUR RELATIONSHIP WITH THE REST OF THE FOUR POWERS. FOLLOWING THE BREAKDOWN IN TRUST WITH THE SOVIETS THEY ARE COUNTING ON THE UK AND FRANCE AS ALLIES. IF THEY ARE GOING BEHIND OUR BACKS WITH THIS REICHSDOKTOR, THAT DOES NOT BODE WELL FOR FUTURE DIPLOMACY. DO YOU HAVE CONTACTS THERE YOU CAN EXPLOIT TO FIND OUT WHAT THEY ARE INTENDING? WE REALLY CANNOT AFFORD TO FALL OUT RIGHT NOW. THE ATTACHED MESSAGE IS ANOTHER INTERCEPT, THIS TIME FROM THE BRITISH EMBASSY WIRELESS. WHILE THINGS ARE DICEY I DON’T FEEL I CAN ASK THEM ABOUT IT, MAYBE YOU COULD CRACK IT FOR US. DOES IT MENTION THE RATLINES? BEST, CHARLIE\n", - "\n" - ] - } - ], - "source": [ - "print(affine_decipher(c3a, multiplier=key_a_m, adder=key_a_a, one_based=key_a_o))" - ] - }, - { - "cell_type": "code", - "execution_count": 10, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "text/plain": [ - "((5, 7, True), -574.5522852453349)" - ] - }, - "execution_count": 10, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "(key_b_m, key_b_a, key_b_o), score = affine_break(c3b)\n", - "(key_b_m, key_b_a, key_b_o), score" - ] - }, - { - "cell_type": "code", - "execution_count": 12, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "eyes only rumours of a source in berlin with access to the rat lines source seems to go by name of reichs doktor russian intercepts suggest has been seen in vicinity of us embassy not clear how to make direct contact also not clear why our us friends are keeping this to themselves detailed info about rat i lines hard to obtain but high value could lead to arrest of major targets of nuremberg investigations vital we reach reichs doktor at earliest opportunity discreet enquiries in french and us sectors only request funds for further investigation\n" - ] - } - ], - "source": [ - "print(' '.join(segment(sanitise(affine_decipher(c3b, multiplier=key_b_m, adder=key_b_a, one_based=key_b_o)))))" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": false - }, - "outputs": [], - "source": [] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.4.3" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/2015-challenge4.ipynb b/2015-challenge4.ipynb deleted file mode 100644 index ec3147a..0000000 --- a/2015-challenge4.ipynb +++ /dev/null @@ -1,260 +0,0 @@ -{ - "cells": [ - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [], - "source": [ - "import matplotlib.pyplot as plt\n", - "%matplotlib inline\n", - "\n", - "from cipherbreak import *\n", - "\n", - "c4a = open('2015/4a.ciphertext').read()\n", - "c4b = open('2015/4b.ciphertext').read()" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "text/plain": [ - "(('reanimates', ), -911.6411317751041)" - ] - }, - "execution_count": 2, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "(key_a_word, key_a_wrap), score = keyword_break_mp(c4a)\n", - "(key_a_word, key_a_wrap), score" - ] - }, - { - "cell_type": "code", - "execution_count": 8, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "gharlie, the attaghew note fas ledt in one od my weaw wrops last nibht anw appears to ce drom our mysterious sourge. it gontains tfo really sibnidigant pieges od intellibenge. the dirst is that the rieghswoktor mibht not reder to an inwiviwual adter all. it seems to ce the gowename dor the orbanization runninb the ratlines. aggorwinb to my other sourges this is a gollegtion od routes, abents anw sade houses usew to transport nazi sympathisers anw far griminals out od bermany anw on to south ameriga. fe have knofn that sugh an orbanisation exists singe the enw od the far, cut this is the dirst time i have seen it namew. the other piege od indormation is mugh more suctle. i am cebinninb to fonwer id our sourge is gloser to home than fe haw realisew. anw i am not rederrinb to drangois! see id you gan spot the tfo thinbs i notigew. cy the fay, fho transgricew the rawio intergept you sent me last feek? harry\n", - "\n" - ] - } - ], - "source": [ - "print(keyword_decipher(c4a, key_a_word, wrap_alphabet=key_a_wrap))" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "text/plain": [ - "{'a': 'c',\n", - " 'b': 'o',\n", - " 'c': 'p',\n", - " 'd': 'q',\n", - " 'e': 'b',\n", - " 'f': 'r',\n", - " 'g': 's',\n", - " 'h': 't',\n", - " 'i': 'e',\n", - " 'j': 'u',\n", - " 'k': 'v',\n", - " 'l': 'w',\n", - " 'm': 'f',\n", - " 'n': 'd',\n", - " 'o': 'x',\n", - " 'p': 'y',\n", - " 'q': 'z',\n", - " 'r': 'a',\n", - " 's': 'h',\n", - " 't': 'g',\n", - " 'u': 'i',\n", - " 'v': 'j',\n", - " 'w': 'k',\n", - " 'x': 'l',\n", - " 'y': 'm',\n", - " 'z': 'n'}" - ] - }, - "execution_count": 3, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "trans = ''.maketrans(keyword_cipher_alphabet_of(key_a_word, wrap_alphabet=key_a_wrap), string.ascii_lowercase)\n", - "t2 = {chr(c): chr(trans[c]) for c in trans}\n", - "t2" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "text/plain": [ - "[('r', 'a'),\n", - " ('a', 'b'),\n", - " ('t', 'c'),\n", - " ('l', 'd'),\n", - " ('i', 'e'),\n", - " ('n', 'f'),\n", - " ('e', 'g'),\n", - " ('s', 'h'),\n", - " ('u', 'i'),\n", - " ('v', 'j'),\n", - " ('w', 'k'),\n", - " ('x', 'l'),\n", - " ('y', 'm'),\n", - " ('z', 'n'),\n", - " ('b', 'o'),\n", - " ('c', 'p'),\n", - " ('d', 'q'),\n", - " ('f', 'r'),\n", - " ('g', 's'),\n", - " ('h', 't'),\n", - " ('j', 'u'),\n", - " ('k', 'v'),\n", - " ('m', 'w'),\n", - " ('o', 'x'),\n", - " ('p', 'y'),\n", - " ('q', 'z')]" - ] - }, - "execution_count": 4, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "t2['t'] = 'c'\n", - "t2['a'] = 'b'\n", - "t2['e'] = 'g'\n", - "\n", - "t2['l'] = 'd'\n", - "t2['n'] = 'f'\n", - "t2['m'] = 'w'\n", - "\n", - "sorted(((c, t2[c]) for c in t2), key=lambda p: p[1])" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "charlie, the attached note was left in one of my dead drops last night and appears to be from our mysterious source. it contains two really significant pieces of intelligence. the first is that the riechsdoktor might not refer to an individual after all. it seems to be the codename for the organization running the ratlines. according to my other sources this is a collection of routes, agents and safe houses used to transport nazi sympathisers and war criminals out of germany and on to south america. we have known that such an organisation exists since the end of the war, but this is the first time i have seen it named. the other piece of information is much more subtle. i am beginning to wonder if our source is closer to home than we had realised. and i am not referring to francois! see if you can spot the two things i noticed. by the way, who transcribed the radio intercept you sent me last week? harry\n", - "\n" - ] - } - ], - "source": [ - "print(keyword_decipher(c4a, 'ratlines', wrap_alphabet=key_a_wrap))" - ] - }, - { - "cell_type": "code", - "execution_count": 6, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "text/plain": [ - "(('francois', ), -1082.7018217012803)" - ] - }, - "execution_count": 6, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "(key_b_word, key_b_wrap), score =keyword_break_mp(c4b)\n", - "(key_b_word, key_b_wrap), score" - ] - }, - { - "cell_type": "code", - "execution_count": 7, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "the french maybe your allies but they are not your friends they plan to infiltrate the rat i lines and to try to turn the high value targets for themselves they have a particular interest in nazi scientists from the die alchemist en project if you want to break the reichs doktor network before they can do so take care not to share any intelligence with them you have been warned i think it is time to begin negotiations i have a number in mind and i think once you know what i am offering you will find it very reasonable as a sign of good faith ioffer you the following information one of the local rat i line coordinators will be leaving the us sector tomorrow night in a black limousine under the backseat of his car you will find hidden a juniors s officer who is trying to escape and in the trunk you will find a number of papers relating to stolen artworks that he hopes to trade to the french for his freedom you might want to consider carefully whether you can trust your friend charlie with this information after all her husband francois is french\n" - ] - } - ], - "source": [ - "print(' '.join(segment(sanitise(keyword_decipher(c4b, key_b_word, wrap_alphabet=key_b_wrap)))))" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": true - }, - "outputs": [], - "source": [] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.4.3" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/2015-challenge5.ipynb b/2015-challenge5.ipynb deleted file mode 100644 index 12ba698..0000000 --- a/2015-challenge5.ipynb +++ /dev/null @@ -1,144 +0,0 @@ -{ - "cells": [ - { - "cell_type": "code", - "execution_count": 3, - "metadata": { - "collapsed": false - }, - "outputs": [], - "source": [ - "import matplotlib.pyplot as plt\n", - "%matplotlib inline\n", - "\n", - "from cipherbreak import *\n", - "\n", - "c5a = open('2015/5a.ciphertext').read()\n", - "c5b = open('2015/5b.ciphertext').read()" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "text/plain": [ - "(('cornfield', ), -1557.5551917175146)" - ] - }, - "execution_count": 4, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "(key_a_word, key_a_wrap), score = keyword_break_mp(c5a)\n", - "(key_a_word, key_a_wrap), score" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "harry, i checked out who transcribed the radio transmission like you asked. it was a junior cipher clerk in room 5. i would have offered to set up a meeting with her, but she has disappeared and hasn’t been seen since last friday. the marines saw her leave at her usual time, and she was booked out for some leave on monday and tuesday so no one noticed she was missing until today. we sent an officer out to her usual haunts and i will get back to you if we find anything. what made you ask? did you have a reason to believe she was involved in something? \n", - "\n", - "i took another look at the messages. were you referring to the typos? the word ratlines keeps being spelt as ratilines. is that important? what did you mean about our source being close to home? \n", - "\n", - "also did some digging about the reichsdoktor. seems you were right and it refers to an underground nazi organisation dedicated to rebuilding the reich. maybe they think of it as healing? a bunch of rich nazi sympathisers took over the ratlines from a group of ss officers who set them up at the tail of the war and have been active in shipping scientists, engineers and soldiers to towns across south america. if our source has inside information then maybe we could intercept the lines and pick up some of the high value targets the french are after. what was “die alchemisten project”? \n", - "\n", - "the enclosed message was handed to the marines, but they didn’t get a name. initial analysis shows it must be a vigenere cipher with period two so it should be reasonably straightforward to crack. \n", - "\n", - "all the best, charlie \n", - "\n" - ] - } - ], - "source": [ - "print(keyword_decipher(c5a, key_a_word, wrap_alphabet=key_a_wrap))" - ] - }, - { - "cell_type": "code", - "execution_count": 10, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "text/plain": [ - "('de', -885.6842458313828)" - ] - }, - "execution_count": 10, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "key_b, score = vigenere_frequency_break(c5b, max_key_length=2)\n", - "key_b, score" - ] - }, - { - "cell_type": "code", - "execution_count": 21, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "the first item in our little auction will be the location of a safehouse in the uk sector of berlin it is a minor stopover on the rat lines but you never know you might get lucky and find someone interesting hiding there at the very least you will inconvenience the reichs doktor if you take possession of it how much would that be worth to you do i hear a bid of five hundred thousand francs from our french friends perhaps the british would pay more or maybe they can not afford to i wonder how they feel about that perhaps you should ask them if you want to outbid your so called friends then leave the money in unmarked treasury bills in locker at the far end of the platform in friedrichstrasse i will leave the details in locker you will find the key in do not try to double cross me it will not work and our little game will end before it has even properly begun\n" - ] - } - ], - "source": [ - "print(' '.join(segment(sanitise(vigenere_decipher(sanitise(c4b), key_b)))))" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": true - }, - "outputs": [], - "source": [] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.4.3" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/2015-challenge6.ipynb b/2015-challenge6.ipynb deleted file mode 100644 index 09214d2..0000000 --- a/2015-challenge6.ipynb +++ /dev/null @@ -1,270 +0,0 @@ -{ - "cells": [ - { - "cell_type": "code", - "execution_count": 4, - "metadata": { - "collapsed": false - }, - "outputs": [], - "source": [ - "import matplotlib.pyplot as plt\n", - "%matplotlib inline\n", - "\n", - "from cipherbreak import *\n", - "\n", - "c6a = sanitise(open('2015/6a.ciphertext').read())\n", - "c6b = sanitise(open('2015/6b.ciphertext').read())" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "text/plain": [ - "(('hammering', ), -2247.716859509375)" - ] - }, - "execution_count": 2, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "(key_a_word, key_a_wrap), score = keyword_break_mp(c6a)\n", - "(key_a_word, key_a_wrap), score" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "freslitiacehartaypoinseailinthareagevtiaeceyiaepptestwboarinartayptwmthhegthctpifktwupenwinartasenhfsipaodartsewiomthhegtpstaayunliktlyfoinfiwtnfthoidigustyousjuniosfiprtsfltskcehinvolvtwmigrabtcosarfrtfkingrtsbefkgsounwenwbenkeffounahareaihellimtenacrtniheiwarthousftcehflohtaoromtbuaarinkingebouaiaiemnoahustiamekthhtnhtaoarinkhrtceharthousftartmthhegthhaillkttpfomingenwiemguthhingareahrtrehgonthoartstmuhabthomtoartshousftdosousinatlligtnfthomtaringihboartsingmtebouaartaontodartmthhegthcrywothousenaegonihakttpaeunainguhebouaousellithiaihnoaliktartaringhctestbtingehktwaobiwdosestaringhctestliktlyaoriwtdsomontenoartsedatsellenyceyidolloctwontodousdstnfrfollteguthaodsitwsifrhasehhtenwceafrtwrtsasyaopifkupartktydsomlofktshttmhaorevtbttnefonifoulwnaflteslyhttcreacehgoingonbuahrtwiwnahttmaobtebltaooptnlofktsenwltdaobviouhlyuphtaedatshrtrewgontiaookelookealofktsiarehedelhtbefkhoiemguthhingartmontycehaektnbuanoaringpsoviwtwintxfrengtfoulwyouwigesounwciaryousfonaefahinartbsiaihrenwsuhhientmbehhithenwhttidartyestgtaaingarthemthosaodfommunifeaionhmeybtyoufoulwcesnartmbyartceywitelfrtmihatnpsojtfacehartfowtnemtdosartnezieaombombtddosairewesuninciarartmwusingartcescrtnctctstasyingaokttpartisrenwhoddartrtevyceatshupplystmtmbtsartbombinginvtmoskareacehuhosseartsousnoswifellithenyceyiaihhaillaophtfstahoartdefaouspsoaegonihaknochebouaiaihhignidifenaihuhptfaartktyaoarihcroltmyhatsylithinartisiwtnaiayidctkntccroartyctstcoskingdosctmigrabtebltaodigustouacreaartyestupaoontlehaaringefaingonerunfriaookelookeahomtodartdstnfrwtewwsophedatsartdsitwsifrhasehhtinfiwtnaenwdounwarteaaefrtwfommunifeaionirevtnarewaimtaofsefkiabuaiarinkiameybtevigtntstegeinbuairevtnarewefrenftaoasybebbegthasifkoniaytagivtiaaoyousblefkfrembtsenwhttcreaartyfenmektodiaellartbtharessy\n" - ] - } - ], - "source": [ - "print(keyword_decipher(c6a, key_a_word, wrap_alphabet=key_a_wrap))" - ] - }, - { - "cell_type": "code", - "execution_count": 8, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "text/plain": [ - "'icrdvsfshmrghcfhpzysxdrhsvsxfghcrhnrkfshrmrpshrzzfrdflayhcsxhcfhpzflwfggrnfgmfzsiufljzrxlsxhcfhdrxgidszhyehcfdrlsywfggrnfzdfhhpjxvsufvpiysxislfxifgysesnjdfpyjdtjxsydiszcfdivfdumrgsxkyvkflwsnchafmydhcicfiusxncfdariundyjxlrxlarxuriiyjxhghcrhsgrvvswfrxhmcfxsgrslhcfgyjdifmrgivygfhycywfajhhcsxusxnrayjhshsrwxyhgjdfshwrufggfxgfhyhcsxugcfmrghcfgyjdifhcfwfggrnfgghsvvuffziywsxnrxlsrwnjfggsxnhcrhgcfcrgnyxfgyhcfdfwjghafgywfyhcfdgyjdifeydyjdsxhfvvsnfxifgywfhcsxnsgayhcfdsxnwfrayjhhcfhyxfyehcfwfggrnfgmcplyfgyjdrxhrnyxsghuffzhrjxhsxnjgrayjhyjdrvvsfgshsgxyhvsufhcfhcsxngmfrdfafsxnrguflhyasleydrdfhcsxngmfrdfvsufvphycslfedywyxfrxyhcfdrehfdrvvrxpmrpseyvvymflyxfyeyjdedfxiciyvvfrnjfghyedsfldsicghdrggfrxlmrhicflcfdhdphyzsiujzhcfufpedywvyiufdgffwghycrkfaffxriyxsiyjvlxhivfrdvpgffmcrhmrgnysxnyxajhgcflslxhgffwhyafravfhyyzfxvyiufdrxlvfehyaksyjgvpjzgfhrehfdgcfcrlnyxfshyyurvyyurhvyiufdshcrgrervgfariugysrwnjfggsxnhcfwyxfpmrghrufxajhxyhcsxnzdykslflsxfoicrxnfiyjvlpyjlsnrdyjxlmshcpyjdiyxhrihgsxhcfadshsgcrxldjggsrxfwarggsfgrxlgffsehcfprdfnfhhsxnhcfgrwfgydhyeiywwjxsirhsyxgwrpafpyjiyjvlmrdxhcfwaphcfmrplsfrvicfwsghfxzdytfihmrghcfiylfxrwfeydhcfxrqsrhywaywafeeydhscrlrdjxsxmshchcfwljdsxnhcfmrdmcfxmfmfdfhdpsxnhyuffzhcfsdcrxlgyeehcfcfrkpmrhfdgjzzvpdfwfwafdhcfaywasxnsxkfwyduhcrhmrgjgyddrhcfdyjdxydlsirvvsfgrxpmrpshsgghsvvhyzgfidfhgyhcferihyjdzdyhrnyxsghuxymgrayjhshsggsnxsesirxhsgjgzfihhcfufphyhcsgmcyvfwpghfdpvsfgsxhcfsdslfxhshpsemfuxfmmcyhcfpmfdfmydusxneydmfwsnchafravfhyesnjdfyjhmcrhhcfprdfjzhyyxfvrghhcsxnrihsxnyxrcjxicshyyurvyyurhgywfyehcfedfxiclfrlldyzgrehfdhcfedsfldsicghdrggfsxislfxhrxleyjxlhcfrhhricfliywwjxsirhsyxscrkfxhcrlhswfhyidriushajhshcsxushwrpafrksnfxfdfrnrsxajhscrkfxhcrlricrxifhyhdparaarnfghdsiuyxshpfhnskfshhypyjdavriuicrwafdrxlgffmcrhhcfpirxwrufyeshrvvhcfafghcrddp'" - ] - }, - "execution_count": 8, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "c6a" - ] - }, - { - "cell_type": "code", - "execution_count": 24, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "text/plain": [ - "'CHARLIE IT WAS THE TYPO IN RAT I LINES THAT GAVE IT AWAY IT APPEARED BOTH IN THE TYPED MESSAGES WE PICKED UP AND IN THE TRANSCRIPT OF THE RADIO MESSAGE PRETTY UNLIKELY COINCIDENCE SO I FIGURE YOUR JUNIOR CIPHER CLERK WAS INVOLVED MIGHT BE WORTH CHECKING HER BACKGROUND AND BANK ACCOUNTS THAT IS ALL I MEANT WHEN I SAID THE SOURCE WAS CLOSE TO HOME BUT THINKING ABOUT IT I AM NOT SURE IT MAKES SENSE TO THINK SHE WAS THE SOURCE THE MESSAGES STILL KEEP COMING AND I AM GUESSING THAT SHE HAS GONE SO THERE MUST BE SOME OTHER SOURCE FOR OUR INTELLIGENCE SOMETHING IS BOTHERING ME ABOUT THE TONE OF THE MESSAGES WHY DOES OUR ANTAGONIST KEEP TAUNTING US ABOUT OUR ALLIES IT IS NOT LIKE THE THINGS WE ARE BEING ASKED TO BID FOR ARE THINGS WE ARE LIKELY TO HIDE FROM ONE ANOTHER AFTER ALL ANYWAY I FOLLOWED ONE OF OUR FRENCH COLLEAGUES TO FRIEDRICHSTRASSE AND WATCHED HER TRY TO PICKUP THE KEY FROM LOCKER SEEMS TO HAVE BEEN A CON I COULDNT CLEARLY SEE WHAT WAS GOING ON BUT SHE DIDNT SEEM TO BE ABLE TO OPEN LOCKER AND LEFT OBVIOUSLY UPSET AFTER SHE HAD GONE I TOOK A LOOK AT LOCKER IT HAS A FALSE BACK SO I AM GUESSING THE MONEY WAS TAKEN BUT NOTHING PROVIDED IN EXCHANGE COULD YOU DIG AROUND WITH YOUR CONTACTS IN THE BRITISH AND RUSSIAN EMBASSIES AND SEE IF THEY ARE GETTING THE SAME SORT OF COMMUNICATIONS MAYBE YOU COULD WARN THEM BY THE WAY DIE ALCHEMIST EN PROJECT WAS THE CODENAME FOR THE NAZI ATOM BOMB EFFORT I HAD A RUN IN WITH THEM DURING THE WAR WHEN WE WERE TRYING TO KEEP THEIR HANDS OFF THE HEAVY WATER SUPPLY REMEMBER THE BOMBING IN VE MORK THAT WAS US OR RATHER OUR NORDIC ALLIES ANYWAY IT IS STILL TOP SECRET SO THE FACT OUR PROTAGONIST KNOWS ABOUT IT IS SIGNIFICANT I SUSPECT THE KEY TO THIS WHOLE MYSTERY LIES IN THEIR IDENTITY IF WE KNEW WHO THEY WERE WORKING FOR WE MIGHT BE ABLE TO FIGURE OUT WHAT THEY ARE UP TO ONE LAST THING ACTING ON A HUNCH I TOOK A LOOK AT SOME OF THE FRENCH DEAD DROPS AFTER THE FRIEDRICHSTRASSE INCIDENT AND FOUND THE ATTACHED COMMUNICATION I HAVENT HAD TIME TO CRACK IT BUT I THINK IT MAYBE AVI GENERE AGAIN BUT I HAVENT HAD A CHANCE TO TRY BABBAGE STRICK ON IT YET GIVE IT TO YOUR BLACK CHAMBER AND SEE WHAT THEY CAN MAKE OF IT ALL THE BEST HARRY'" - ] - }, - "execution_count": 24, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "translations = {'c': 'H', 'r': 'A', 'd': 'R', 'p': 'Y', 'i': 'C', 'd': 'R', 'v': 'L', 's': 'I', 'f': 'E', \n", - " 'h': 'T', 'a': 'B', 'g': 'S', 'm': 'W', 'y': 'O', 'z': 'P', 'n': 'G', 'j': 'U', 't': 'J',\n", - " 'x': 'N', 'k': 'V', 'l': 'D', 'w': 'M', 'u': 'K', 'e': 'F', 'q': 'Z', 'o': 'X'}\n", - "translation_table = ''.maketrans(translations)\n", - "plaintext = ' '.join(segment(c6a.translate(translation_table)))\n", - "plaintext" - ] - }, - { - "cell_type": "code", - "execution_count": 28, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "text/plain": [ - "'BHRFESTCUVDWGXYZAIJKLMNOP'" - ] - }, - "execution_count": 28, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "''.join(translations[l] for l in sorted(translations))" - ] - }, - { - "cell_type": "code", - "execution_count": 34, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "text/plain": [ - "'railfencstuvwxyzdghjkmopq'" - ] - }, - "execution_count": 34, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "inverted_translations = {translations[a]: a for a in translations}\n", - "''.join(inverted_translations[l] for l in sorted(inverted_translations))" - ] - }, - { - "cell_type": "code", - "execution_count": 37, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "text/plain": [ - "'railfencstuvwxyzbdghjkmopq'" - ] - }, - "execution_count": 37, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "keyword_cipher_alphabet_of('railfences', wrap_alphabet=KeywordWrapAlphabet.from_last)" - ] - }, - { - "cell_type": "code", - "execution_count": 39, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "charlie it was the typo in rat i lines that gave it away it appeared both in the typed messages we picked up and in the transcript of the radio message pretty unlikely coincidence so i figure your junior cipher clerk was involved might be worth checking her background and bank accounts that is all i meant when i said the source was close to home but thinking about it i am not sure it makes sense to think she was the source the messages still keep coming and i am guessing that she has gone so there must be some other source for our intelligence something is bothering me about the tone of the messages why does our antagonist keep taunting us about our allies it is not like the things we are being asked to bid for are things we are likely to hide from one another after all anyway i followed one of our french colleagues to friedrichstrasse and watched her try to pickup the key from locker seems to have been a con i couldnt clearly see what was going on but she didnt seem to be able to open locker and left obviously upset after she had gone i took a look at locker it has a false back so i am guessing the money was taken but nothing provided in exchange could you dig around with your contacts in the british and russian embassies and see if they are getting the same sort of communications maybe you could warn them by the way die alchemist en project was the codename for the nazi atom bomb effort i had a run in with them during the war when we were trying to keep their hands off the heavy water supply remember the bombing in ve mork that was us or rather our nordic allies anyway it is still top secret so the fact our protagonist knows about it is significant i suspect the key to this whole mystery lies in their identity if we knew who they were working for we might be able to figure out what they are up to one last thing acting on a hunch i took a look at some of the french dead drops after the friedrichstrasse incident and found the attached communication i havent had time to crack it but i think it maybe avi genere again but i havent had a chance to try babbage strick on it yet give it to your black chamber and see what they can make of it all the best harry\n" - ] - } - ], - "source": [ - "print(' '.join(segment(keyword_decipher(c6a, 'railfences', wrap_alphabet=KeywordWrapAlphabet.from_last))))" - ] - }, - { - "cell_type": "code", - "execution_count": 31, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "text/plain": [ - "('kremlin', -908.5396262316657)" - ] - }, - "execution_count": 31, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "key_b, score = vigenere_frequency_break(c6b)\n", - "key_b, score" - ] - }, - { - "cell_type": "code", - "execution_count": 32, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "the americans have robbed you rather than trying to outbid you they got to the lockers first and arranged to steal your money and the valuable intelligence i provided for you they can not be trusted none of your allies can be trusted they believe that they can cheat you but they do not understand that you can only cheat in a game and this is not a game if you try to playa game of chess like your allies we will find ourselves in a stalemate you have been warned so let us start again i can let you have the address of another safehouse at a small discount on our original price and i will include the identity of a british double agent working in your embassy shall we say four hundred thousand francs to be paid directly to an account of my choosing if you want to know more about the treachery of your so called friends then let us meet in the park by the british embassy on friday at eleven\n" - ] - } - ], - "source": [ - "print(' '.join(segment(sanitise(vigenere_decipher(sanitise(c6b), key_b)))))" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": true - }, - "outputs": [], - "source": [] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.4.3" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/2015-challenge7.ipynb b/2015-challenge7.ipynb deleted file mode 100644 index 23259d8..0000000 --- a/2015-challenge7.ipynb +++ /dev/null @@ -1,1575 +0,0 @@ -{ - "cells": [ - { - "cell_type": "code", - "execution_count": 7, - "metadata": { - "collapsed": false - }, - "outputs": [], - "source": [ - "import matplotlib.pyplot as plt\n", - "%matplotlib inline\n", - "\n", - "from cipherbreak import *\n", - "\n", - "c7a = sanitise(open('2015/7a.ciphertext').read())\n", - "c7b = sanitise(open('2015/7b.ciphertext').read())" - ] - }, - { - "cell_type": "code", - "execution_count": 8, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "text/plain": [ - "(('annmarie', ), -1865.8708508162845)" - ] - }, - "execution_count": 8, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "(key_a_word, key_a_wrap), score = keyword_break_mp(c7a)\n", - "(key_a_word, key_a_wrap), score" - ] - }, - { - "cell_type": "code", - "execution_count": 9, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "dhorlieithinkiknacchotisgainganfutineewtadhedkobecthingsfebareirepartcemoyhoveonappartunityhereidhedkewthedipherdlerksfodkgraunwonwitturnsautsheischiterussionherbomilylebtmasdacinfutshehosrelotivesinthegulogotpermshedleorlyhosnalavebarthesavietgavernmentsaiomstillnatsurechashecoscarkingbarfutithinkthisiskeyintelligendeinthemeontimeihovefeencotdhingthefritstheyseemtahovefeenindantodtcithaurbrienwsinthereidhswaktaronwtheyinturnhovefeencotdhingthebrendhitseemslikeceoreollcarkingogoinstaneonatherchidhireollywiwntexpedtonwgivenchotcereowinthebrendhwadumentlostceekiwantthinkthotisodaindiwendemyacnguessisthottherussionsknacchotisgainganonwthotaurfesthapeabundaveringitistafreokintatheirhqonwtrytabinwsamethingthereunbartunotelyoddarwingtamysaurdeyuritheyhovetokentausingonecdiphersalitoirebarordhivestarogeabtapsedretbilessaevenibcemonogetasteoltherelevontbileitcilltokeolatabdamputingtafreokthedipheriottodhofriebmessogebramyuriendryptewusingonomsdadipherkeycarwlengthissixinchidhhewesdrifesthedipheritisverydleversimpletaimplementfutoweviltadrodkonwmyanehapeisthotcedonolsabinwthedipherkeychileinthehqarotleostportabitiplontaenterintcaceeksanwedemfersixteenththerussionsorehastingolorgeprapogonwoeventosportabtheinternotianolefouousstellungcithleowingpalitfuramemfersinottenwondemastabthesedurityteomcillfeaddupiewciththotonwhqseduritycillferelotivelylightcithludkicillgetinonwautciththebilesceneewthotnightonwthencedongettathefattamabthechalereidhswaktarstrotogemollthefesthorry\n" - ] - } - ], - "source": [ - "print(keyword_decipher(c7a, key_a_word, wrap_alphabet=key_a_wrap))" - ] - }, - { - "cell_type": "code", - "execution_count": 10, - "metadata": { - "collapsed": false, - "scrolled": true - }, - "outputs": [ - { - "data": { - "text/plain": [ - "{'A': 'a',\n", - " 'B': 'o',\n", - " 'C': 'p',\n", - " 'D': 'q',\n", - " 'E': 'f',\n", - " 'F': 'r',\n", - " 'G': 's',\n", - " 'H': 't',\n", - " 'I': 'e',\n", - " 'J': 'u',\n", - " 'K': 'v',\n", - " 'L': 'w',\n", - " 'M': 'c',\n", - " 'N': 'b',\n", - " 'O': 'x',\n", - " 'P': 'y',\n", - " 'Q': 'z',\n", - " 'R': 'd',\n", - " 'S': 'g',\n", - " 'T': 'h',\n", - " 'U': 'i',\n", - " 'V': 'j',\n", - " 'W': 'k',\n", - " 'X': 'l',\n", - " 'Y': 'm',\n", - " 'Z': 'n'}" - ] - }, - "execution_count": 10, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "trans_a = {p.upper(): c for p, c in zip(keyword_cipher_alphabet_of(key_a_word, wrap_alphabet=key_a_wrap), string.ascii_lowercase, )}\n", - "trans_a" - ] - }, - { - "cell_type": "code", - "execution_count": 11, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "text/plain": [ - "'charlie i think i know what is going on but i need to check a few things before i report we may have an opportunity here i checked the cipher clerks background and it turns out she is white russian her family left moscow in but she has relatives in the gulag at perm she clearly has no love for the soviet government so i am still not sure who she was working for but i think this is key intelligence in the meantime i have been watching the brits they seem to have been in contact with our friends in the reichs doktor and they in turn have been watching the french it seems like we are all working against one another which i really didnt expect and given what we read in the french document last week i dont think that is a coincidence my own guess is that the russians know what is going on and that our best hope of uncovering it is to break into their hq and try to find something there unfortunately according to my source yuri they have taken to using a new cipher solitaire for archive storage of top secret files so even if we manage to steal the relevant file it will take alot of computing to break the cipher i attach a brief message from yuri encrypted using an amsco cipher keyword length is six in which he describes the cipher it is very clever simple to implement but a devil to crack and my one hope is that we can also find the cipher key while in the hq or atleast part of it i plan to enter in two weeks on december sixteenth the russians are hosting a large propaganda event as part of the international ebau ausstellung with leading politburo members in attendance most of the security team will be occupied with that and hq security will be relatively light with luck i will get in and out with the files we need that night and then we can get to the bottom of the whole reichs doktor stratagem all the best harry'" - ] - }, - "execution_count": 11, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "translations = {\n", - " 'A': 'o',\n", - " 'B': 'a',\n", - " 'C': 'p',\n", - " 'D': 'q',\n", - " 'E': 'b',\n", - " 'F': 'r',\n", - " 'G': 's',\n", - " 'H': 't',\n", - " 'I': 'e',\n", - " 'J': 'u',\n", - " 'K': 'v',\n", - " 'L': 'd',\n", - " 'M': 'w',\n", - " 'N': 'f',\n", - " 'O': 'x',\n", - " 'P': 'y',\n", - " 'Q': 'z',\n", - " 'R': 'c',\n", - " 'S': 'g',\n", - " 'T': 'h',\n", - " 'U': 'i',\n", - " 'V': 'j',\n", - " 'W': 'k',\n", - " 'X': 'l',\n", - " 'Y': 'm',\n", - " 'Z': 'n'}\n", - "translation_table = ''.maketrans(translations)\n", - "plaintext = ' '.join(segment(c7a.upper().translate(translation_table)))\n", - "plaintext" - ] - }, - { - "cell_type": "code", - "execution_count": 12, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "text/plain": [ - "'oapqbrsteuvdwfxyzcghijklmn'" - ] - }, - "execution_count": 12, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "''.join(translations[l] for l in sorted(translations))" - ] - }, - { - "cell_type": "code", - "execution_count": 13, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "text/plain": [ - "'BERLINSTUVWXYZACDFGHJKMOPQ'" - ] - }, - "execution_count": 13, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "inverted_translations = {translations[a]: a for a in translations}\n", - "''.join(inverted_translations[l] for l in sorted(inverted_translations))" - ] - }, - { - "cell_type": "code", - "execution_count": 14, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "text/plain": [ - "'berlinstuvwxyzacdfghjkmopq'" - ] - }, - "execution_count": 14, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "keyword_cipher_alphabet_of('berlin', wrap_alphabet=KeywordWrapAlphabet.from_largest)" - ] - }, - { - "cell_type": "code", - "execution_count": 15, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "charlie i think i know what is going on but i need to check a few things before i report we may have an opportunity here i checked the cipher clerks background and it turns out she is white russian her family left moscow in but she has relatives in the gulag at perm she clearly has no love for the soviet government so i am still not sure who she was working for but i think this is key intelligence in the meantime i have been watching the brits they seem to have been in contact with our friends in the reichs doktor and they in turn have been watching the french it seems like we are all working against one another which i really didnt expect and given what we read in the french document last week i dont think that is a coincidence my own guess is that the russians know what is going on and that our best hope of uncovering it is to break into their hq and try to find something there unfortunately according to my source yuri they have taken to using a new cipher solitaire for archive storage of top secret files so even if we manage to steal the relevant file it will take alot of computing to break the cipher i attach a brief message from yuri encrypted using an amsco cipher keyword length is six in which he describes the cipher it is very clever simple to implement but a devil to crack and my one hope is that we can also find the cipher key while in the hq or atleast part of it i plan to enter in two weeks on december sixteenth the russians are hosting a large propaganda event as part of the international ebau ausstellung with leading politburo members in attendance most of the security team will be occupied with that and hq security will be relatively light with luck i will get in and out with the files we need that night and then we can get to the bottom of the whole reichs doktor stratagem all the best harry\n" - ] - } - ], - "source": [ - "print(' '.join(segment(keyword_decipher(c7a, 'berlin', wrap_alphabet=KeywordWrapAlphabet.from_largest))))" - ] - }, - { - "cell_type": "code", - "execution_count": 16, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "text/plain": [ - "{(0, 1, 2, 3, 4, 5): (0, 1, 2, 3, 4, 5),\n", - " (0, 1, 2, 3, 5, 4): (0, 1, 2, 3, 5, 4),\n", - " (0, 1, 2, 4, 3, 5): (0, 1, 2, 4, 3, 5),\n", - " (0, 1, 2, 4, 5, 3): (0, 1, 2, 4, 5, 3),\n", - " (0, 1, 2, 5, 3, 4): (0, 1, 2, 5, 3, 4),\n", - " (0, 1, 2, 5, 4, 3): (0, 1, 2, 5, 4, 3),\n", - " (0, 1, 3, 2, 4, 5): (0, 1, 3, 2, 4, 5),\n", - " (0, 1, 3, 2, 5, 4): (0, 1, 3, 2, 5, 4),\n", - " (0, 1, 3, 4, 2, 5): (0, 1, 3, 4, 2, 5),\n", - " (0, 1, 3, 4, 5, 2): (0, 1, 3, 4, 5, 2),\n", - " (0, 1, 3, 5, 2, 4): (0, 1, 3, 5, 2, 4),\n", - " (0, 1, 3, 5, 4, 2): (0, 1, 3, 5, 4, 2),\n", - " (0, 1, 4, 2, 3, 5): (0, 1, 4, 2, 3, 5),\n", - " (0, 1, 4, 2, 5, 3): (0, 1, 4, 2, 5, 3),\n", - " (0, 1, 4, 3, 2, 5): (0, 1, 4, 3, 2, 5),\n", - " (0, 1, 4, 3, 5, 2): (0, 1, 4, 3, 5, 2),\n", - " (0, 1, 4, 5, 2, 3): (0, 1, 4, 5, 2, 3),\n", - " (0, 1, 4, 5, 3, 2): (0, 1, 4, 5, 3, 2),\n", - " (0, 1, 5, 2, 3, 4): (0, 1, 5, 2, 3, 4),\n", - " (0, 1, 5, 2, 4, 3): (0, 1, 5, 2, 4, 3),\n", - " (0, 1, 5, 3, 2, 4): (0, 1, 5, 3, 2, 4),\n", - " (0, 1, 5, 3, 4, 2): (0, 1, 5, 3, 4, 2),\n", - " (0, 1, 5, 4, 2, 3): (0, 1, 5, 4, 2, 3),\n", - " (0, 1, 5, 4, 3, 2): (0, 1, 5, 4, 3, 2),\n", - " (0, 2, 1, 3, 4, 5): (0, 2, 1, 3, 4, 5),\n", - " (0, 2, 1, 3, 5, 4): (0, 2, 1, 3, 5, 4),\n", - " (0, 2, 1, 4, 3, 5): (0, 2, 1, 4, 3, 5),\n", - " (0, 2, 1, 4, 5, 3): (0, 2, 1, 4, 5, 3),\n", - " (0, 2, 1, 5, 3, 4): (0, 2, 1, 5, 3, 4),\n", - " (0, 2, 1, 5, 4, 3): (0, 2, 1, 5, 4, 3),\n", - " (0, 2, 3, 1, 4, 5): (0, 2, 3, 1, 4, 5),\n", - " (0, 2, 3, 1, 5, 4): (0, 2, 3, 1, 5, 4),\n", - " (0, 2, 3, 4, 1, 5): (0, 2, 3, 4, 1, 5),\n", - " (0, 2, 3, 4, 5, 1): (0, 2, 3, 4, 5, 1),\n", - " (0, 2, 3, 5, 1, 4): (0, 2, 3, 5, 1, 4),\n", - " (0, 2, 3, 5, 4, 1): (0, 2, 3, 5, 4, 1),\n", - " (0, 2, 4, 1, 3, 5): (0, 2, 4, 1, 3, 5),\n", - " (0, 2, 4, 1, 5, 3): (0, 2, 4, 1, 5, 3),\n", - " (0, 2, 4, 3, 1, 5): (0, 2, 4, 3, 1, 5),\n", - " (0, 2, 4, 3, 5, 1): (0, 2, 4, 3, 5, 1),\n", - " (0, 2, 4, 5, 1, 3): (0, 2, 4, 5, 1, 3),\n", - " (0, 2, 4, 5, 3, 1): (0, 2, 4, 5, 3, 1),\n", - " (0, 2, 5, 1, 3, 4): (0, 2, 5, 1, 3, 4),\n", - " (0, 2, 5, 1, 4, 3): (0, 2, 5, 1, 4, 3),\n", - " (0, 2, 5, 3, 1, 4): (0, 2, 5, 3, 1, 4),\n", - " (0, 2, 5, 3, 4, 1): (0, 2, 5, 3, 4, 1),\n", - " (0, 2, 5, 4, 1, 3): (0, 2, 5, 4, 1, 3),\n", - " (0, 2, 5, 4, 3, 1): (0, 2, 5, 4, 3, 1),\n", - " (0, 3, 1, 2, 4, 5): (0, 3, 1, 2, 4, 5),\n", - " (0, 3, 1, 2, 5, 4): (0, 3, 1, 2, 5, 4),\n", - " (0, 3, 1, 4, 2, 5): (0, 3, 1, 4, 2, 5),\n", - " (0, 3, 1, 4, 5, 2): (0, 3, 1, 4, 5, 2),\n", - " (0, 3, 1, 5, 2, 4): (0, 3, 1, 5, 2, 4),\n", - " (0, 3, 1, 5, 4, 2): (0, 3, 1, 5, 4, 2),\n", - " (0, 3, 2, 1, 4, 5): (0, 3, 2, 1, 4, 5),\n", - " (0, 3, 2, 1, 5, 4): (0, 3, 2, 1, 5, 4),\n", - " (0, 3, 2, 4, 1, 5): (0, 3, 2, 4, 1, 5),\n", - " (0, 3, 2, 4, 5, 1): (0, 3, 2, 4, 5, 1),\n", - " (0, 3, 2, 5, 1, 4): (0, 3, 2, 5, 1, 4),\n", - " (0, 3, 2, 5, 4, 1): (0, 3, 2, 5, 4, 1),\n", - " (0, 3, 4, 1, 2, 5): (0, 3, 4, 1, 2, 5),\n", - " (0, 3, 4, 1, 5, 2): (0, 3, 4, 1, 5, 2),\n", - " (0, 3, 4, 2, 1, 5): (0, 3, 4, 2, 1, 5),\n", - " (0, 3, 4, 2, 5, 1): (0, 3, 4, 2, 5, 1),\n", - " (0, 3, 4, 5, 1, 2): (0, 3, 4, 5, 1, 2),\n", - " (0, 3, 4, 5, 2, 1): (0, 3, 4, 5, 2, 1),\n", - " (0, 3, 5, 1, 2, 4): (0, 3, 5, 1, 2, 4),\n", - " (0, 3, 5, 1, 4, 2): (0, 3, 5, 1, 4, 2),\n", - " (0, 3, 5, 2, 1, 4): (0, 3, 5, 2, 1, 4),\n", - " (0, 3, 5, 2, 4, 1): (0, 3, 5, 2, 4, 1),\n", - " (0, 3, 5, 4, 1, 2): (0, 3, 5, 4, 1, 2),\n", - " (0, 3, 5, 4, 2, 1): (0, 3, 5, 4, 2, 1),\n", - " (0, 4, 1, 2, 3, 5): (0, 4, 1, 2, 3, 5),\n", - " (0, 4, 1, 2, 5, 3): (0, 4, 1, 2, 5, 3),\n", - " (0, 4, 1, 3, 2, 5): (0, 4, 1, 3, 2, 5),\n", - " (0, 4, 1, 3, 5, 2): (0, 4, 1, 3, 5, 2),\n", - " (0, 4, 1, 5, 2, 3): (0, 4, 1, 5, 2, 3),\n", - " (0, 4, 1, 5, 3, 2): (0, 4, 1, 5, 3, 2),\n", - " (0, 4, 2, 1, 3, 5): (0, 4, 2, 1, 3, 5),\n", - " (0, 4, 2, 1, 5, 3): (0, 4, 2, 1, 5, 3),\n", - " (0, 4, 2, 3, 1, 5): (0, 4, 2, 3, 1, 5),\n", - " (0, 4, 2, 3, 5, 1): (0, 4, 2, 3, 5, 1),\n", - " (0, 4, 2, 5, 1, 3): (0, 4, 2, 5, 1, 3),\n", - " (0, 4, 2, 5, 3, 1): (0, 4, 2, 5, 3, 1),\n", - " (0, 4, 3, 1, 2, 5): (0, 4, 3, 1, 2, 5),\n", - " (0, 4, 3, 1, 5, 2): (0, 4, 3, 1, 5, 2),\n", - " (0, 4, 3, 2, 1, 5): (0, 4, 3, 2, 1, 5),\n", - " (0, 4, 3, 2, 5, 1): (0, 4, 3, 2, 5, 1),\n", - " (0, 4, 3, 5, 1, 2): (0, 4, 3, 5, 1, 2),\n", - " (0, 4, 3, 5, 2, 1): (0, 4, 3, 5, 2, 1),\n", - " (0, 4, 5, 1, 2, 3): (0, 4, 5, 1, 2, 3),\n", - " (0, 4, 5, 1, 3, 2): (0, 4, 5, 1, 3, 2),\n", - " (0, 4, 5, 2, 1, 3): (0, 4, 5, 2, 1, 3),\n", - " (0, 4, 5, 2, 3, 1): (0, 4, 5, 2, 3, 1),\n", - " (0, 4, 5, 3, 1, 2): (0, 4, 5, 3, 1, 2),\n", - " (0, 4, 5, 3, 2, 1): (0, 4, 5, 3, 2, 1),\n", - " (0, 5, 1, 2, 3, 4): (0, 5, 1, 2, 3, 4),\n", - " (0, 5, 1, 2, 4, 3): (0, 5, 1, 2, 4, 3),\n", - " (0, 5, 1, 3, 2, 4): (0, 5, 1, 3, 2, 4),\n", - " (0, 5, 1, 3, 4, 2): (0, 5, 1, 3, 4, 2),\n", - " (0, 5, 1, 4, 2, 3): (0, 5, 1, 4, 2, 3),\n", - " (0, 5, 1, 4, 3, 2): (0, 5, 1, 4, 3, 2),\n", - " (0, 5, 2, 1, 3, 4): (0, 5, 2, 1, 3, 4),\n", - " (0, 5, 2, 1, 4, 3): (0, 5, 2, 1, 4, 3),\n", - " (0, 5, 2, 3, 1, 4): (0, 5, 2, 3, 1, 4),\n", - " (0, 5, 2, 3, 4, 1): (0, 5, 2, 3, 4, 1),\n", - " (0, 5, 2, 4, 1, 3): (0, 5, 2, 4, 1, 3),\n", - " (0, 5, 2, 4, 3, 1): (0, 5, 2, 4, 3, 1),\n", - " (0, 5, 3, 1, 2, 4): (0, 5, 3, 1, 2, 4),\n", - " (0, 5, 3, 1, 4, 2): (0, 5, 3, 1, 4, 2),\n", - " (0, 5, 3, 2, 1, 4): (0, 5, 3, 2, 1, 4),\n", - " (0, 5, 3, 2, 4, 1): (0, 5, 3, 2, 4, 1),\n", - " (0, 5, 3, 4, 1, 2): (0, 5, 3, 4, 1, 2),\n", - " (0, 5, 3, 4, 2, 1): (0, 5, 3, 4, 2, 1),\n", - " (0, 5, 4, 1, 2, 3): (0, 5, 4, 1, 2, 3),\n", - " (0, 5, 4, 1, 3, 2): (0, 5, 4, 1, 3, 2),\n", - " (0, 5, 4, 2, 1, 3): (0, 5, 4, 2, 1, 3),\n", - " (0, 5, 4, 2, 3, 1): (0, 5, 4, 2, 3, 1),\n", - " (0, 5, 4, 3, 1, 2): (0, 5, 4, 3, 1, 2),\n", - " (0, 5, 4, 3, 2, 1): (0, 5, 4, 3, 2, 1),\n", - " (1, 0, 2, 3, 4, 5): (1, 0, 2, 3, 4, 5),\n", - " (1, 0, 2, 3, 5, 4): (1, 0, 2, 3, 5, 4),\n", - " (1, 0, 2, 4, 3, 5): (1, 0, 2, 4, 3, 5),\n", - " (1, 0, 2, 4, 5, 3): (1, 0, 2, 4, 5, 3),\n", - " (1, 0, 2, 5, 3, 4): (1, 0, 2, 5, 3, 4),\n", - " (1, 0, 2, 5, 4, 3): (1, 0, 2, 5, 4, 3),\n", - " (1, 0, 3, 2, 4, 5): (1, 0, 3, 2, 4, 5),\n", - " (1, 0, 3, 2, 5, 4): (1, 0, 3, 2, 5, 4),\n", - " (1, 0, 3, 4, 2, 5): (1, 0, 3, 4, 2, 5),\n", - " (1, 0, 3, 4, 5, 2): (1, 0, 3, 4, 5, 2),\n", - " (1, 0, 3, 5, 2, 4): (1, 0, 3, 5, 2, 4),\n", - " (1, 0, 3, 5, 4, 2): (1, 0, 3, 5, 4, 2),\n", - " (1, 0, 4, 2, 3, 5): (1, 0, 4, 2, 3, 5),\n", - " (1, 0, 4, 2, 5, 3): (1, 0, 4, 2, 5, 3),\n", - " (1, 0, 4, 3, 2, 5): (1, 0, 4, 3, 2, 5),\n", - " (1, 0, 4, 3, 5, 2): (1, 0, 4, 3, 5, 2),\n", - " (1, 0, 4, 5, 2, 3): (1, 0, 4, 5, 2, 3),\n", - " (1, 0, 4, 5, 3, 2): (1, 0, 4, 5, 3, 2),\n", - " (1, 0, 5, 2, 3, 4): (1, 0, 5, 2, 3, 4),\n", - " (1, 0, 5, 2, 4, 3): (1, 0, 5, 2, 4, 3),\n", - " (1, 0, 5, 3, 2, 4): (1, 0, 5, 3, 2, 4),\n", - " (1, 0, 5, 3, 4, 2): (1, 0, 5, 3, 4, 2),\n", - " (1, 0, 5, 4, 2, 3): (1, 0, 5, 4, 2, 3),\n", - " (1, 0, 5, 4, 3, 2): (1, 0, 5, 4, 3, 2),\n", - " (1, 2, 0, 3, 4, 5): (1, 2, 0, 3, 4, 5),\n", - " (1, 2, 0, 3, 5, 4): (1, 2, 0, 3, 5, 4),\n", - " (1, 2, 0, 4, 3, 5): (1, 2, 0, 4, 3, 5),\n", - " (1, 2, 0, 4, 5, 3): (1, 2, 0, 4, 5, 3),\n", - " (1, 2, 0, 5, 3, 4): (1, 2, 0, 5, 3, 4),\n", - " (1, 2, 0, 5, 4, 3): (1, 2, 0, 5, 4, 3),\n", - " (1, 2, 3, 0, 4, 5): (1, 2, 3, 0, 4, 5),\n", - " (1, 2, 3, 0, 5, 4): (1, 2, 3, 0, 5, 4),\n", - " (1, 2, 3, 4, 0, 5): (1, 2, 3, 4, 0, 5),\n", - " (1, 2, 3, 4, 5, 0): (1, 2, 3, 4, 5, 0),\n", - " (1, 2, 3, 5, 0, 4): (1, 2, 3, 5, 0, 4),\n", - " (1, 2, 3, 5, 4, 0): (1, 2, 3, 5, 4, 0),\n", - " (1, 2, 4, 0, 3, 5): (1, 2, 4, 0, 3, 5),\n", - " (1, 2, 4, 0, 5, 3): (1, 2, 4, 0, 5, 3),\n", - " (1, 2, 4, 3, 0, 5): (1, 2, 4, 3, 0, 5),\n", - " (1, 2, 4, 3, 5, 0): (1, 2, 4, 3, 5, 0),\n", - " (1, 2, 4, 5, 0, 3): (1, 2, 4, 5, 0, 3),\n", - " (1, 2, 4, 5, 3, 0): (1, 2, 4, 5, 3, 0),\n", - " (1, 2, 5, 0, 3, 4): (1, 2, 5, 0, 3, 4),\n", - " (1, 2, 5, 0, 4, 3): (1, 2, 5, 0, 4, 3),\n", - " (1, 2, 5, 3, 0, 4): (1, 2, 5, 3, 0, 4),\n", - " (1, 2, 5, 3, 4, 0): (1, 2, 5, 3, 4, 0),\n", - " (1, 2, 5, 4, 0, 3): (1, 2, 5, 4, 0, 3),\n", - " (1, 2, 5, 4, 3, 0): (1, 2, 5, 4, 3, 0),\n", - " (1, 3, 0, 2, 4, 5): (1, 3, 0, 2, 4, 5),\n", - " (1, 3, 0, 2, 5, 4): (1, 3, 0, 2, 5, 4),\n", - " (1, 3, 0, 4, 2, 5): (1, 3, 0, 4, 2, 5),\n", - " (1, 3, 0, 4, 5, 2): (1, 3, 0, 4, 5, 2),\n", - " (1, 3, 0, 5, 2, 4): (1, 3, 0, 5, 2, 4),\n", - " (1, 3, 0, 5, 4, 2): (1, 3, 0, 5, 4, 2),\n", - " (1, 3, 2, 0, 4, 5): (1, 3, 2, 0, 4, 5),\n", - " (1, 3, 2, 0, 5, 4): (1, 3, 2, 0, 5, 4),\n", - " (1, 3, 2, 4, 0, 5): (1, 3, 2, 4, 0, 5),\n", - " (1, 3, 2, 4, 5, 0): (1, 3, 2, 4, 5, 0),\n", - " (1, 3, 2, 5, 0, 4): (1, 3, 2, 5, 0, 4),\n", - " (1, 3, 2, 5, 4, 0): (1, 3, 2, 5, 4, 0),\n", - " (1, 3, 4, 0, 2, 5): (1, 3, 4, 0, 2, 5),\n", - " (1, 3, 4, 0, 5, 2): (1, 3, 4, 0, 5, 2),\n", - " (1, 3, 4, 2, 0, 5): (1, 3, 4, 2, 0, 5),\n", - " (1, 3, 4, 2, 5, 0): (1, 3, 4, 2, 5, 0),\n", - " (1, 3, 4, 5, 0, 2): (1, 3, 4, 5, 0, 2),\n", - " (1, 3, 4, 5, 2, 0): (1, 3, 4, 5, 2, 0),\n", - " (1, 3, 5, 0, 2, 4): (1, 3, 5, 0, 2, 4),\n", - " (1, 3, 5, 0, 4, 2): (1, 3, 5, 0, 4, 2),\n", - " (1, 3, 5, 2, 0, 4): (1, 3, 5, 2, 0, 4),\n", - " (1, 3, 5, 2, 4, 0): (1, 3, 5, 2, 4, 0),\n", - " (1, 3, 5, 4, 0, 2): (1, 3, 5, 4, 0, 2),\n", - " (1, 3, 5, 4, 2, 0): (1, 3, 5, 4, 2, 0),\n", - " (1, 4, 0, 2, 3, 5): (1, 4, 0, 2, 3, 5),\n", - " (1, 4, 0, 2, 5, 3): (1, 4, 0, 2, 5, 3),\n", - " (1, 4, 0, 3, 2, 5): (1, 4, 0, 3, 2, 5),\n", - " (1, 4, 0, 3, 5, 2): (1, 4, 0, 3, 5, 2),\n", - " (1, 4, 0, 5, 2, 3): (1, 4, 0, 5, 2, 3),\n", - " (1, 4, 0, 5, 3, 2): (1, 4, 0, 5, 3, 2),\n", - " (1, 4, 2, 0, 3, 5): (1, 4, 2, 0, 3, 5),\n", - " (1, 4, 2, 0, 5, 3): (1, 4, 2, 0, 5, 3),\n", - " (1, 4, 2, 3, 0, 5): (1, 4, 2, 3, 0, 5),\n", - " (1, 4, 2, 3, 5, 0): (1, 4, 2, 3, 5, 0),\n", - " (1, 4, 2, 5, 0, 3): (1, 4, 2, 5, 0, 3),\n", - " (1, 4, 2, 5, 3, 0): (1, 4, 2, 5, 3, 0),\n", - " (1, 4, 3, 0, 2, 5): (1, 4, 3, 0, 2, 5),\n", - " (1, 4, 3, 0, 5, 2): (1, 4, 3, 0, 5, 2),\n", - " (1, 4, 3, 2, 0, 5): (1, 4, 3, 2, 0, 5),\n", - " (1, 4, 3, 2, 5, 0): (1, 4, 3, 2, 5, 0),\n", - " (1, 4, 3, 5, 0, 2): (1, 4, 3, 5, 0, 2),\n", - " (1, 4, 3, 5, 2, 0): (1, 4, 3, 5, 2, 0),\n", - " (1, 4, 5, 0, 2, 3): (1, 4, 5, 0, 2, 3),\n", - " (1, 4, 5, 0, 3, 2): (1, 4, 5, 0, 3, 2),\n", - " (1, 4, 5, 2, 0, 3): (1, 4, 5, 2, 0, 3),\n", - " (1, 4, 5, 2, 3, 0): (1, 4, 5, 2, 3, 0),\n", - " (1, 4, 5, 3, 0, 2): (1, 4, 5, 3, 0, 2),\n", - " (1, 4, 5, 3, 2, 0): (1, 4, 5, 3, 2, 0),\n", - " (1, 5, 0, 2, 3, 4): (1, 5, 0, 2, 3, 4),\n", - " (1, 5, 0, 2, 4, 3): (1, 5, 0, 2, 4, 3),\n", - " (1, 5, 0, 3, 2, 4): (1, 5, 0, 3, 2, 4),\n", - " (1, 5, 0, 3, 4, 2): (1, 5, 0, 3, 4, 2),\n", - " (1, 5, 0, 4, 2, 3): (1, 5, 0, 4, 2, 3),\n", - " (1, 5, 0, 4, 3, 2): (1, 5, 0, 4, 3, 2),\n", - " (1, 5, 2, 0, 3, 4): (1, 5, 2, 0, 3, 4),\n", - " (1, 5, 2, 0, 4, 3): (1, 5, 2, 0, 4, 3),\n", - " (1, 5, 2, 3, 0, 4): (1, 5, 2, 3, 0, 4),\n", - " (1, 5, 2, 3, 4, 0): (1, 5, 2, 3, 4, 0),\n", - " (1, 5, 2, 4, 0, 3): (1, 5, 2, 4, 0, 3),\n", - " (1, 5, 2, 4, 3, 0): (1, 5, 2, 4, 3, 0),\n", - " (1, 5, 3, 0, 2, 4): (1, 5, 3, 0, 2, 4),\n", - " (1, 5, 3, 0, 4, 2): (1, 5, 3, 0, 4, 2),\n", - " (1, 5, 3, 2, 0, 4): (1, 5, 3, 2, 0, 4),\n", - " (1, 5, 3, 2, 4, 0): (1, 5, 3, 2, 4, 0),\n", - " (1, 5, 3, 4, 0, 2): (1, 5, 3, 4, 0, 2),\n", - " (1, 5, 3, 4, 2, 0): (1, 5, 3, 4, 2, 0),\n", - " (1, 5, 4, 0, 2, 3): (1, 5, 4, 0, 2, 3),\n", - " (1, 5, 4, 0, 3, 2): (1, 5, 4, 0, 3, 2),\n", - " (1, 5, 4, 2, 0, 3): (1, 5, 4, 2, 0, 3),\n", - " (1, 5, 4, 2, 3, 0): (1, 5, 4, 2, 3, 0),\n", - " (1, 5, 4, 3, 0, 2): (1, 5, 4, 3, 0, 2),\n", - " (1, 5, 4, 3, 2, 0): (1, 5, 4, 3, 2, 0),\n", - " (2, 0, 1, 3, 4, 5): (2, 0, 1, 3, 4, 5),\n", - " (2, 0, 1, 3, 5, 4): (2, 0, 1, 3, 5, 4),\n", - " (2, 0, 1, 4, 3, 5): (2, 0, 1, 4, 3, 5),\n", - " (2, 0, 1, 4, 5, 3): (2, 0, 1, 4, 5, 3),\n", - " (2, 0, 1, 5, 3, 4): (2, 0, 1, 5, 3, 4),\n", - " (2, 0, 1, 5, 4, 3): (2, 0, 1, 5, 4, 3),\n", - " (2, 0, 3, 1, 4, 5): (2, 0, 3, 1, 4, 5),\n", - " (2, 0, 3, 1, 5, 4): (2, 0, 3, 1, 5, 4),\n", - " (2, 0, 3, 4, 1, 5): (2, 0, 3, 4, 1, 5),\n", - " (2, 0, 3, 4, 5, 1): (2, 0, 3, 4, 5, 1),\n", - " (2, 0, 3, 5, 1, 4): (2, 0, 3, 5, 1, 4),\n", - " (2, 0, 3, 5, 4, 1): (2, 0, 3, 5, 4, 1),\n", - " (2, 0, 4, 1, 3, 5): (2, 0, 4, 1, 3, 5),\n", - " (2, 0, 4, 1, 5, 3): (2, 0, 4, 1, 5, 3),\n", - " (2, 0, 4, 3, 1, 5): (2, 0, 4, 3, 1, 5),\n", - " (2, 0, 4, 3, 5, 1): (2, 0, 4, 3, 5, 1),\n", - " (2, 0, 4, 5, 1, 3): (2, 0, 4, 5, 1, 3),\n", - " (2, 0, 4, 5, 3, 1): (2, 0, 4, 5, 3, 1),\n", - " (2, 0, 5, 1, 3, 4): (2, 0, 5, 1, 3, 4),\n", - " (2, 0, 5, 1, 4, 3): (2, 0, 5, 1, 4, 3),\n", - " (2, 0, 5, 3, 1, 4): (2, 0, 5, 3, 1, 4),\n", - " (2, 0, 5, 3, 4, 1): (2, 0, 5, 3, 4, 1),\n", - " (2, 0, 5, 4, 1, 3): (2, 0, 5, 4, 1, 3),\n", - " (2, 0, 5, 4, 3, 1): (2, 0, 5, 4, 3, 1),\n", - " (2, 1, 0, 3, 4, 5): (2, 1, 0, 3, 4, 5),\n", - " (2, 1, 0, 3, 5, 4): (2, 1, 0, 3, 5, 4),\n", - " (2, 1, 0, 4, 3, 5): (2, 1, 0, 4, 3, 5),\n", - " (2, 1, 0, 4, 5, 3): (2, 1, 0, 4, 5, 3),\n", - " (2, 1, 0, 5, 3, 4): (2, 1, 0, 5, 3, 4),\n", - " (2, 1, 0, 5, 4, 3): (2, 1, 0, 5, 4, 3),\n", - " (2, 1, 3, 0, 4, 5): (2, 1, 3, 0, 4, 5),\n", - " (2, 1, 3, 0, 5, 4): (2, 1, 3, 0, 5, 4),\n", - " (2, 1, 3, 4, 0, 5): (2, 1, 3, 4, 0, 5),\n", - " (2, 1, 3, 4, 5, 0): (2, 1, 3, 4, 5, 0),\n", - " (2, 1, 3, 5, 0, 4): (2, 1, 3, 5, 0, 4),\n", - " (2, 1, 3, 5, 4, 0): (2, 1, 3, 5, 4, 0),\n", - " (2, 1, 4, 0, 3, 5): (2, 1, 4, 0, 3, 5),\n", - " (2, 1, 4, 0, 5, 3): (2, 1, 4, 0, 5, 3),\n", - " (2, 1, 4, 3, 0, 5): (2, 1, 4, 3, 0, 5),\n", - " (2, 1, 4, 3, 5, 0): (2, 1, 4, 3, 5, 0),\n", - " (2, 1, 4, 5, 0, 3): (2, 1, 4, 5, 0, 3),\n", - " (2, 1, 4, 5, 3, 0): (2, 1, 4, 5, 3, 0),\n", - " (2, 1, 5, 0, 3, 4): (2, 1, 5, 0, 3, 4),\n", - " (2, 1, 5, 0, 4, 3): (2, 1, 5, 0, 4, 3),\n", - " (2, 1, 5, 3, 0, 4): (2, 1, 5, 3, 0, 4),\n", - " (2, 1, 5, 3, 4, 0): (2, 1, 5, 3, 4, 0),\n", - " (2, 1, 5, 4, 0, 3): (2, 1, 5, 4, 0, 3),\n", - " (2, 1, 5, 4, 3, 0): (2, 1, 5, 4, 3, 0),\n", - " (2, 3, 0, 1, 4, 5): (2, 3, 0, 1, 4, 5),\n", - " (2, 3, 0, 1, 5, 4): (2, 3, 0, 1, 5, 4),\n", - " (2, 3, 0, 4, 1, 5): (2, 3, 0, 4, 1, 5),\n", - " (2, 3, 0, 4, 5, 1): (2, 3, 0, 4, 5, 1),\n", - " (2, 3, 0, 5, 1, 4): (2, 3, 0, 5, 1, 4),\n", - " (2, 3, 0, 5, 4, 1): (2, 3, 0, 5, 4, 1),\n", - " (2, 3, 1, 0, 4, 5): (2, 3, 1, 0, 4, 5),\n", - " (2, 3, 1, 0, 5, 4): (2, 3, 1, 0, 5, 4),\n", - " (2, 3, 1, 4, 0, 5): (2, 3, 1, 4, 0, 5),\n", - " (2, 3, 1, 4, 5, 0): (2, 3, 1, 4, 5, 0),\n", - " (2, 3, 1, 5, 0, 4): (2, 3, 1, 5, 0, 4),\n", - " (2, 3, 1, 5, 4, 0): (2, 3, 1, 5, 4, 0),\n", - " (2, 3, 4, 0, 1, 5): (2, 3, 4, 0, 1, 5),\n", - " (2, 3, 4, 0, 5, 1): (2, 3, 4, 0, 5, 1),\n", - " (2, 3, 4, 1, 0, 5): (2, 3, 4, 1, 0, 5),\n", - " (2, 3, 4, 1, 5, 0): (2, 3, 4, 1, 5, 0),\n", - " (2, 3, 4, 5, 0, 1): (2, 3, 4, 5, 0, 1),\n", - " (2, 3, 4, 5, 1, 0): (2, 3, 4, 5, 1, 0),\n", - " (2, 3, 5, 0, 1, 4): (2, 3, 5, 0, 1, 4),\n", - " (2, 3, 5, 0, 4, 1): (2, 3, 5, 0, 4, 1),\n", - " (2, 3, 5, 1, 0, 4): (2, 3, 5, 1, 0, 4),\n", - " (2, 3, 5, 1, 4, 0): (2, 3, 5, 1, 4, 0),\n", - " (2, 3, 5, 4, 0, 1): (2, 3, 5, 4, 0, 1),\n", - " (2, 3, 5, 4, 1, 0): (2, 3, 5, 4, 1, 0),\n", - " (2, 4, 0, 1, 3, 5): (2, 4, 0, 1, 3, 5),\n", - " (2, 4, 0, 1, 5, 3): (2, 4, 0, 1, 5, 3),\n", - " (2, 4, 0, 3, 1, 5): (2, 4, 0, 3, 1, 5),\n", - " (2, 4, 0, 3, 5, 1): (2, 4, 0, 3, 5, 1),\n", - " (2, 4, 0, 5, 1, 3): (2, 4, 0, 5, 1, 3),\n", - " (2, 4, 0, 5, 3, 1): (2, 4, 0, 5, 3, 1),\n", - " (2, 4, 1, 0, 3, 5): (2, 4, 1, 0, 3, 5),\n", - " (2, 4, 1, 0, 5, 3): (2, 4, 1, 0, 5, 3),\n", - " (2, 4, 1, 3, 0, 5): (2, 4, 1, 3, 0, 5),\n", - " (2, 4, 1, 3, 5, 0): (2, 4, 1, 3, 5, 0),\n", - " (2, 4, 1, 5, 0, 3): (2, 4, 1, 5, 0, 3),\n", - " (2, 4, 1, 5, 3, 0): (2, 4, 1, 5, 3, 0),\n", - " (2, 4, 3, 0, 1, 5): (2, 4, 3, 0, 1, 5),\n", - " (2, 4, 3, 0, 5, 1): (2, 4, 3, 0, 5, 1),\n", - " (2, 4, 3, 1, 0, 5): (2, 4, 3, 1, 0, 5),\n", - " (2, 4, 3, 1, 5, 0): (2, 4, 3, 1, 5, 0),\n", - " (2, 4, 3, 5, 0, 1): (2, 4, 3, 5, 0, 1),\n", - " (2, 4, 3, 5, 1, 0): (2, 4, 3, 5, 1, 0),\n", - " (2, 4, 5, 0, 1, 3): (2, 4, 5, 0, 1, 3),\n", - " (2, 4, 5, 0, 3, 1): (2, 4, 5, 0, 3, 1),\n", - " (2, 4, 5, 1, 0, 3): (2, 4, 5, 1, 0, 3),\n", - " (2, 4, 5, 1, 3, 0): (2, 4, 5, 1, 3, 0),\n", - " (2, 4, 5, 3, 0, 1): (2, 4, 5, 3, 0, 1),\n", - " (2, 4, 5, 3, 1, 0): (2, 4, 5, 3, 1, 0),\n", - " (2, 5, 0, 1, 3, 4): (2, 5, 0, 1, 3, 4),\n", - " (2, 5, 0, 1, 4, 3): (2, 5, 0, 1, 4, 3),\n", - " (2, 5, 0, 3, 1, 4): (2, 5, 0, 3, 1, 4),\n", - " (2, 5, 0, 3, 4, 1): (2, 5, 0, 3, 4, 1),\n", - " (2, 5, 0, 4, 1, 3): (2, 5, 0, 4, 1, 3),\n", - " (2, 5, 0, 4, 3, 1): (2, 5, 0, 4, 3, 1),\n", - " (2, 5, 1, 0, 3, 4): (2, 5, 1, 0, 3, 4),\n", - " (2, 5, 1, 0, 4, 3): (2, 5, 1, 0, 4, 3),\n", - " (2, 5, 1, 3, 0, 4): (2, 5, 1, 3, 0, 4),\n", - " (2, 5, 1, 3, 4, 0): (2, 5, 1, 3, 4, 0),\n", - " (2, 5, 1, 4, 0, 3): (2, 5, 1, 4, 0, 3),\n", - " (2, 5, 1, 4, 3, 0): (2, 5, 1, 4, 3, 0),\n", - " (2, 5, 3, 0, 1, 4): (2, 5, 3, 0, 1, 4),\n", - " (2, 5, 3, 0, 4, 1): (2, 5, 3, 0, 4, 1),\n", - " (2, 5, 3, 1, 0, 4): (2, 5, 3, 1, 0, 4),\n", - " (2, 5, 3, 1, 4, 0): (2, 5, 3, 1, 4, 0),\n", - " (2, 5, 3, 4, 0, 1): (2, 5, 3, 4, 0, 1),\n", - " (2, 5, 3, 4, 1, 0): (2, 5, 3, 4, 1, 0),\n", - " (2, 5, 4, 0, 1, 3): (2, 5, 4, 0, 1, 3),\n", - " (2, 5, 4, 0, 3, 1): (2, 5, 4, 0, 3, 1),\n", - " (2, 5, 4, 1, 0, 3): (2, 5, 4, 1, 0, 3),\n", - " (2, 5, 4, 1, 3, 0): (2, 5, 4, 1, 3, 0),\n", - " (2, 5, 4, 3, 0, 1): (2, 5, 4, 3, 0, 1),\n", - " (2, 5, 4, 3, 1, 0): (2, 5, 4, 3, 1, 0),\n", - " (3, 0, 1, 2, 4, 5): (3, 0, 1, 2, 4, 5),\n", - " (3, 0, 1, 2, 5, 4): (3, 0, 1, 2, 5, 4),\n", - " (3, 0, 1, 4, 2, 5): (3, 0, 1, 4, 2, 5),\n", - " (3, 0, 1, 4, 5, 2): (3, 0, 1, 4, 5, 2),\n", - " (3, 0, 1, 5, 2, 4): (3, 0, 1, 5, 2, 4),\n", - " (3, 0, 1, 5, 4, 2): (3, 0, 1, 5, 4, 2),\n", - " (3, 0, 2, 1, 4, 5): (3, 0, 2, 1, 4, 5),\n", - " (3, 0, 2, 1, 5, 4): (3, 0, 2, 1, 5, 4),\n", - " (3, 0, 2, 4, 1, 5): (3, 0, 2, 4, 1, 5),\n", - " (3, 0, 2, 4, 5, 1): (3, 0, 2, 4, 5, 1),\n", - " (3, 0, 2, 5, 1, 4): (3, 0, 2, 5, 1, 4),\n", - " (3, 0, 2, 5, 4, 1): (3, 0, 2, 5, 4, 1),\n", - " (3, 0, 4, 1, 2, 5): (3, 0, 4, 1, 2, 5),\n", - " (3, 0, 4, 1, 5, 2): (3, 0, 4, 1, 5, 2),\n", - " (3, 0, 4, 2, 1, 5): (3, 0, 4, 2, 1, 5),\n", - " (3, 0, 4, 2, 5, 1): (3, 0, 4, 2, 5, 1),\n", - " (3, 0, 4, 5, 1, 2): (3, 0, 4, 5, 1, 2),\n", - " (3, 0, 4, 5, 2, 1): (3, 0, 4, 5, 2, 1),\n", - " (3, 0, 5, 1, 2, 4): (3, 0, 5, 1, 2, 4),\n", - " (3, 0, 5, 1, 4, 2): (3, 0, 5, 1, 4, 2),\n", - " (3, 0, 5, 2, 1, 4): (3, 0, 5, 2, 1, 4),\n", - " (3, 0, 5, 2, 4, 1): (3, 0, 5, 2, 4, 1),\n", - " (3, 0, 5, 4, 1, 2): (3, 0, 5, 4, 1, 2),\n", - " (3, 0, 5, 4, 2, 1): (3, 0, 5, 4, 2, 1),\n", - " (3, 1, 0, 2, 4, 5): (3, 1, 0, 2, 4, 5),\n", - " (3, 1, 0, 2, 5, 4): (3, 1, 0, 2, 5, 4),\n", - " (3, 1, 0, 4, 2, 5): (3, 1, 0, 4, 2, 5),\n", - " (3, 1, 0, 4, 5, 2): (3, 1, 0, 4, 5, 2),\n", - " (3, 1, 0, 5, 2, 4): (3, 1, 0, 5, 2, 4),\n", - " (3, 1, 0, 5, 4, 2): (3, 1, 0, 5, 4, 2),\n", - " (3, 1, 2, 0, 4, 5): (3, 1, 2, 0, 4, 5),\n", - " (3, 1, 2, 0, 5, 4): (3, 1, 2, 0, 5, 4),\n", - " (3, 1, 2, 4, 0, 5): (3, 1, 2, 4, 0, 5),\n", - " (3, 1, 2, 4, 5, 0): (3, 1, 2, 4, 5, 0),\n", - " (3, 1, 2, 5, 0, 4): (3, 1, 2, 5, 0, 4),\n", - " (3, 1, 2, 5, 4, 0): (3, 1, 2, 5, 4, 0),\n", - " (3, 1, 4, 0, 2, 5): (3, 1, 4, 0, 2, 5),\n", - " (3, 1, 4, 0, 5, 2): (3, 1, 4, 0, 5, 2),\n", - " (3, 1, 4, 2, 0, 5): (3, 1, 4, 2, 0, 5),\n", - " (3, 1, 4, 2, 5, 0): (3, 1, 4, 2, 5, 0),\n", - " (3, 1, 4, 5, 0, 2): (3, 1, 4, 5, 0, 2),\n", - " (3, 1, 4, 5, 2, 0): (3, 1, 4, 5, 2, 0),\n", - " (3, 1, 5, 0, 2, 4): (3, 1, 5, 0, 2, 4),\n", - " (3, 1, 5, 0, 4, 2): (3, 1, 5, 0, 4, 2),\n", - " (3, 1, 5, 2, 0, 4): (3, 1, 5, 2, 0, 4),\n", - " (3, 1, 5, 2, 4, 0): (3, 1, 5, 2, 4, 0),\n", - " (3, 1, 5, 4, 0, 2): (3, 1, 5, 4, 0, 2),\n", - " (3, 1, 5, 4, 2, 0): (3, 1, 5, 4, 2, 0),\n", - " (3, 2, 0, 1, 4, 5): (3, 2, 0, 1, 4, 5),\n", - " (3, 2, 0, 1, 5, 4): (3, 2, 0, 1, 5, 4),\n", - " (3, 2, 0, 4, 1, 5): (3, 2, 0, 4, 1, 5),\n", - " (3, 2, 0, 4, 5, 1): (3, 2, 0, 4, 5, 1),\n", - " (3, 2, 0, 5, 1, 4): (3, 2, 0, 5, 1, 4),\n", - " (3, 2, 0, 5, 4, 1): (3, 2, 0, 5, 4, 1),\n", - " (3, 2, 1, 0, 4, 5): (3, 2, 1, 0, 4, 5),\n", - " (3, 2, 1, 0, 5, 4): (3, 2, 1, 0, 5, 4),\n", - " (3, 2, 1, 4, 0, 5): (3, 2, 1, 4, 0, 5),\n", - " (3, 2, 1, 4, 5, 0): (3, 2, 1, 4, 5, 0),\n", - " (3, 2, 1, 5, 0, 4): (3, 2, 1, 5, 0, 4),\n", - " (3, 2, 1, 5, 4, 0): (3, 2, 1, 5, 4, 0),\n", - " (3, 2, 4, 0, 1, 5): (3, 2, 4, 0, 1, 5),\n", - " (3, 2, 4, 0, 5, 1): (3, 2, 4, 0, 5, 1),\n", - " (3, 2, 4, 1, 0, 5): (3, 2, 4, 1, 0, 5),\n", - " (3, 2, 4, 1, 5, 0): (3, 2, 4, 1, 5, 0),\n", - " (3, 2, 4, 5, 0, 1): (3, 2, 4, 5, 0, 1),\n", - " (3, 2, 4, 5, 1, 0): (3, 2, 4, 5, 1, 0),\n", - " (3, 2, 5, 0, 1, 4): (3, 2, 5, 0, 1, 4),\n", - " (3, 2, 5, 0, 4, 1): (3, 2, 5, 0, 4, 1),\n", - " (3, 2, 5, 1, 0, 4): (3, 2, 5, 1, 0, 4),\n", - " (3, 2, 5, 1, 4, 0): (3, 2, 5, 1, 4, 0),\n", - " (3, 2, 5, 4, 0, 1): (3, 2, 5, 4, 0, 1),\n", - " (3, 2, 5, 4, 1, 0): (3, 2, 5, 4, 1, 0),\n", - " (3, 4, 0, 1, 2, 5): (3, 4, 0, 1, 2, 5),\n", - " (3, 4, 0, 1, 5, 2): (3, 4, 0, 1, 5, 2),\n", - " (3, 4, 0, 2, 1, 5): (3, 4, 0, 2, 1, 5),\n", - " (3, 4, 0, 2, 5, 1): (3, 4, 0, 2, 5, 1),\n", - " (3, 4, 0, 5, 1, 2): (3, 4, 0, 5, 1, 2),\n", - " (3, 4, 0, 5, 2, 1): (3, 4, 0, 5, 2, 1),\n", - " (3, 4, 1, 0, 2, 5): (3, 4, 1, 0, 2, 5),\n", - " (3, 4, 1, 0, 5, 2): (3, 4, 1, 0, 5, 2),\n", - " (3, 4, 1, 2, 0, 5): (3, 4, 1, 2, 0, 5),\n", - " (3, 4, 1, 2, 5, 0): (3, 4, 1, 2, 5, 0),\n", - " (3, 4, 1, 5, 0, 2): (3, 4, 1, 5, 0, 2),\n", - " (3, 4, 1, 5, 2, 0): (3, 4, 1, 5, 2, 0),\n", - " (3, 4, 2, 0, 1, 5): (3, 4, 2, 0, 1, 5),\n", - " (3, 4, 2, 0, 5, 1): (3, 4, 2, 0, 5, 1),\n", - " (3, 4, 2, 1, 0, 5): (3, 4, 2, 1, 0, 5),\n", - " (3, 4, 2, 1, 5, 0): (3, 4, 2, 1, 5, 0),\n", - " (3, 4, 2, 5, 0, 1): (3, 4, 2, 5, 0, 1),\n", - " (3, 4, 2, 5, 1, 0): (3, 4, 2, 5, 1, 0),\n", - " (3, 4, 5, 0, 1, 2): (3, 4, 5, 0, 1, 2),\n", - " (3, 4, 5, 0, 2, 1): (3, 4, 5, 0, 2, 1),\n", - " (3, 4, 5, 1, 0, 2): (3, 4, 5, 1, 0, 2),\n", - " (3, 4, 5, 1, 2, 0): (3, 4, 5, 1, 2, 0),\n", - " (3, 4, 5, 2, 0, 1): (3, 4, 5, 2, 0, 1),\n", - " (3, 4, 5, 2, 1, 0): (3, 4, 5, 2, 1, 0),\n", - " (3, 5, 0, 1, 2, 4): (3, 5, 0, 1, 2, 4),\n", - " (3, 5, 0, 1, 4, 2): (3, 5, 0, 1, 4, 2),\n", - " (3, 5, 0, 2, 1, 4): (3, 5, 0, 2, 1, 4),\n", - " (3, 5, 0, 2, 4, 1): (3, 5, 0, 2, 4, 1),\n", - " (3, 5, 0, 4, 1, 2): (3, 5, 0, 4, 1, 2),\n", - " (3, 5, 0, 4, 2, 1): (3, 5, 0, 4, 2, 1),\n", - " (3, 5, 1, 0, 2, 4): (3, 5, 1, 0, 2, 4),\n", - " (3, 5, 1, 0, 4, 2): (3, 5, 1, 0, 4, 2),\n", - " (3, 5, 1, 2, 0, 4): (3, 5, 1, 2, 0, 4),\n", - " (3, 5, 1, 2, 4, 0): (3, 5, 1, 2, 4, 0),\n", - " (3, 5, 1, 4, 0, 2): (3, 5, 1, 4, 0, 2),\n", - " (3, 5, 1, 4, 2, 0): (3, 5, 1, 4, 2, 0),\n", - " (3, 5, 2, 0, 1, 4): (3, 5, 2, 0, 1, 4),\n", - " (3, 5, 2, 0, 4, 1): (3, 5, 2, 0, 4, 1),\n", - " (3, 5, 2, 1, 0, 4): (3, 5, 2, 1, 0, 4),\n", - " (3, 5, 2, 1, 4, 0): (3, 5, 2, 1, 4, 0),\n", - " (3, 5, 2, 4, 0, 1): (3, 5, 2, 4, 0, 1),\n", - " (3, 5, 2, 4, 1, 0): (3, 5, 2, 4, 1, 0),\n", - " (3, 5, 4, 0, 1, 2): (3, 5, 4, 0, 1, 2),\n", - " (3, 5, 4, 0, 2, 1): (3, 5, 4, 0, 2, 1),\n", - " (3, 5, 4, 1, 0, 2): (3, 5, 4, 1, 0, 2),\n", - " (3, 5, 4, 1, 2, 0): (3, 5, 4, 1, 2, 0),\n", - " (3, 5, 4, 2, 0, 1): (3, 5, 4, 2, 0, 1),\n", - " (3, 5, 4, 2, 1, 0): (3, 5, 4, 2, 1, 0),\n", - " (4, 0, 1, 2, 3, 5): (4, 0, 1, 2, 3, 5),\n", - " (4, 0, 1, 2, 5, 3): (4, 0, 1, 2, 5, 3),\n", - " (4, 0, 1, 3, 2, 5): (4, 0, 1, 3, 2, 5),\n", - " (4, 0, 1, 3, 5, 2): (4, 0, 1, 3, 5, 2),\n", - " (4, 0, 1, 5, 2, 3): (4, 0, 1, 5, 2, 3),\n", - " (4, 0, 1, 5, 3, 2): (4, 0, 1, 5, 3, 2),\n", - " (4, 0, 2, 1, 3, 5): (4, 0, 2, 1, 3, 5),\n", - " (4, 0, 2, 1, 5, 3): (4, 0, 2, 1, 5, 3),\n", - " (4, 0, 2, 3, 1, 5): (4, 0, 2, 3, 1, 5),\n", - " (4, 0, 2, 3, 5, 1): (4, 0, 2, 3, 5, 1),\n", - " (4, 0, 2, 5, 1, 3): (4, 0, 2, 5, 1, 3),\n", - " (4, 0, 2, 5, 3, 1): (4, 0, 2, 5, 3, 1),\n", - " (4, 0, 3, 1, 2, 5): (4, 0, 3, 1, 2, 5),\n", - " (4, 0, 3, 1, 5, 2): (4, 0, 3, 1, 5, 2),\n", - " (4, 0, 3, 2, 1, 5): (4, 0, 3, 2, 1, 5),\n", - " (4, 0, 3, 2, 5, 1): (4, 0, 3, 2, 5, 1),\n", - " (4, 0, 3, 5, 1, 2): (4, 0, 3, 5, 1, 2),\n", - " (4, 0, 3, 5, 2, 1): (4, 0, 3, 5, 2, 1),\n", - " (4, 0, 5, 1, 2, 3): (4, 0, 5, 1, 2, 3),\n", - " (4, 0, 5, 1, 3, 2): (4, 0, 5, 1, 3, 2),\n", - " (4, 0, 5, 2, 1, 3): (4, 0, 5, 2, 1, 3),\n", - " (4, 0, 5, 2, 3, 1): (4, 0, 5, 2, 3, 1),\n", - " (4, 0, 5, 3, 1, 2): (4, 0, 5, 3, 1, 2),\n", - " (4, 0, 5, 3, 2, 1): (4, 0, 5, 3, 2, 1),\n", - " (4, 1, 0, 2, 3, 5): (4, 1, 0, 2, 3, 5),\n", - " (4, 1, 0, 2, 5, 3): (4, 1, 0, 2, 5, 3),\n", - " (4, 1, 0, 3, 2, 5): (4, 1, 0, 3, 2, 5),\n", - " (4, 1, 0, 3, 5, 2): (4, 1, 0, 3, 5, 2),\n", - " (4, 1, 0, 5, 2, 3): (4, 1, 0, 5, 2, 3),\n", - " (4, 1, 0, 5, 3, 2): (4, 1, 0, 5, 3, 2),\n", - " (4, 1, 2, 0, 3, 5): (4, 1, 2, 0, 3, 5),\n", - " (4, 1, 2, 0, 5, 3): (4, 1, 2, 0, 5, 3),\n", - " (4, 1, 2, 3, 0, 5): (4, 1, 2, 3, 0, 5),\n", - " (4, 1, 2, 3, 5, 0): (4, 1, 2, 3, 5, 0),\n", - " (4, 1, 2, 5, 0, 3): (4, 1, 2, 5, 0, 3),\n", - " (4, 1, 2, 5, 3, 0): (4, 1, 2, 5, 3, 0),\n", - " (4, 1, 3, 0, 2, 5): (4, 1, 3, 0, 2, 5),\n", - " (4, 1, 3, 0, 5, 2): (4, 1, 3, 0, 5, 2),\n", - " (4, 1, 3, 2, 0, 5): (4, 1, 3, 2, 0, 5),\n", - " (4, 1, 3, 2, 5, 0): (4, 1, 3, 2, 5, 0),\n", - " (4, 1, 3, 5, 0, 2): (4, 1, 3, 5, 0, 2),\n", - " (4, 1, 3, 5, 2, 0): (4, 1, 3, 5, 2, 0),\n", - " (4, 1, 5, 0, 2, 3): (4, 1, 5, 0, 2, 3),\n", - " (4, 1, 5, 0, 3, 2): (4, 1, 5, 0, 3, 2),\n", - " (4, 1, 5, 2, 0, 3): (4, 1, 5, 2, 0, 3),\n", - " (4, 1, 5, 2, 3, 0): (4, 1, 5, 2, 3, 0),\n", - " (4, 1, 5, 3, 0, 2): (4, 1, 5, 3, 0, 2),\n", - " (4, 1, 5, 3, 2, 0): (4, 1, 5, 3, 2, 0),\n", - " (4, 2, 0, 1, 3, 5): (4, 2, 0, 1, 3, 5),\n", - " (4, 2, 0, 1, 5, 3): (4, 2, 0, 1, 5, 3),\n", - " (4, 2, 0, 3, 1, 5): (4, 2, 0, 3, 1, 5),\n", - " (4, 2, 0, 3, 5, 1): (4, 2, 0, 3, 5, 1),\n", - " (4, 2, 0, 5, 1, 3): (4, 2, 0, 5, 1, 3),\n", - " (4, 2, 0, 5, 3, 1): (4, 2, 0, 5, 3, 1),\n", - " (4, 2, 1, 0, 3, 5): (4, 2, 1, 0, 3, 5),\n", - " (4, 2, 1, 0, 5, 3): (4, 2, 1, 0, 5, 3),\n", - " (4, 2, 1, 3, 0, 5): (4, 2, 1, 3, 0, 5),\n", - " (4, 2, 1, 3, 5, 0): (4, 2, 1, 3, 5, 0),\n", - " (4, 2, 1, 5, 0, 3): (4, 2, 1, 5, 0, 3),\n", - " (4, 2, 1, 5, 3, 0): (4, 2, 1, 5, 3, 0),\n", - " (4, 2, 3, 0, 1, 5): (4, 2, 3, 0, 1, 5),\n", - " (4, 2, 3, 0, 5, 1): (4, 2, 3, 0, 5, 1),\n", - " (4, 2, 3, 1, 0, 5): (4, 2, 3, 1, 0, 5),\n", - " (4, 2, 3, 1, 5, 0): (4, 2, 3, 1, 5, 0),\n", - " (4, 2, 3, 5, 0, 1): (4, 2, 3, 5, 0, 1),\n", - " (4, 2, 3, 5, 1, 0): (4, 2, 3, 5, 1, 0),\n", - " (4, 2, 5, 0, 1, 3): (4, 2, 5, 0, 1, 3),\n", - " (4, 2, 5, 0, 3, 1): (4, 2, 5, 0, 3, 1),\n", - " (4, 2, 5, 1, 0, 3): (4, 2, 5, 1, 0, 3),\n", - " (4, 2, 5, 1, 3, 0): (4, 2, 5, 1, 3, 0),\n", - " (4, 2, 5, 3, 0, 1): (4, 2, 5, 3, 0, 1),\n", - " (4, 2, 5, 3, 1, 0): (4, 2, 5, 3, 1, 0),\n", - " (4, 3, 0, 1, 2, 5): (4, 3, 0, 1, 2, 5),\n", - " (4, 3, 0, 1, 5, 2): (4, 3, 0, 1, 5, 2),\n", - " (4, 3, 0, 2, 1, 5): (4, 3, 0, 2, 1, 5),\n", - " (4, 3, 0, 2, 5, 1): (4, 3, 0, 2, 5, 1),\n", - " (4, 3, 0, 5, 1, 2): (4, 3, 0, 5, 1, 2),\n", - " (4, 3, 0, 5, 2, 1): (4, 3, 0, 5, 2, 1),\n", - " (4, 3, 1, 0, 2, 5): (4, 3, 1, 0, 2, 5),\n", - " (4, 3, 1, 0, 5, 2): (4, 3, 1, 0, 5, 2),\n", - " (4, 3, 1, 2, 0, 5): (4, 3, 1, 2, 0, 5),\n", - " (4, 3, 1, 2, 5, 0): (4, 3, 1, 2, 5, 0),\n", - " (4, 3, 1, 5, 0, 2): (4, 3, 1, 5, 0, 2),\n", - " (4, 3, 1, 5, 2, 0): (4, 3, 1, 5, 2, 0),\n", - " (4, 3, 2, 0, 1, 5): (4, 3, 2, 0, 1, 5),\n", - " (4, 3, 2, 0, 5, 1): (4, 3, 2, 0, 5, 1),\n", - " (4, 3, 2, 1, 0, 5): (4, 3, 2, 1, 0, 5),\n", - " (4, 3, 2, 1, 5, 0): (4, 3, 2, 1, 5, 0),\n", - " (4, 3, 2, 5, 0, 1): (4, 3, 2, 5, 0, 1),\n", - " (4, 3, 2, 5, 1, 0): (4, 3, 2, 5, 1, 0),\n", - " (4, 3, 5, 0, 1, 2): (4, 3, 5, 0, 1, 2),\n", - " (4, 3, 5, 0, 2, 1): (4, 3, 5, 0, 2, 1),\n", - " (4, 3, 5, 1, 0, 2): (4, 3, 5, 1, 0, 2),\n", - " (4, 3, 5, 1, 2, 0): (4, 3, 5, 1, 2, 0),\n", - " (4, 3, 5, 2, 0, 1): (4, 3, 5, 2, 0, 1),\n", - " (4, 3, 5, 2, 1, 0): (4, 3, 5, 2, 1, 0),\n", - " (4, 5, 0, 1, 2, 3): (4, 5, 0, 1, 2, 3),\n", - " (4, 5, 0, 1, 3, 2): (4, 5, 0, 1, 3, 2),\n", - " (4, 5, 0, 2, 1, 3): (4, 5, 0, 2, 1, 3),\n", - " (4, 5, 0, 2, 3, 1): (4, 5, 0, 2, 3, 1),\n", - " (4, 5, 0, 3, 1, 2): (4, 5, 0, 3, 1, 2),\n", - " (4, 5, 0, 3, 2, 1): (4, 5, 0, 3, 2, 1),\n", - " (4, 5, 1, 0, 2, 3): (4, 5, 1, 0, 2, 3),\n", - " (4, 5, 1, 0, 3, 2): (4, 5, 1, 0, 3, 2),\n", - " (4, 5, 1, 2, 0, 3): (4, 5, 1, 2, 0, 3),\n", - " (4, 5, 1, 2, 3, 0): (4, 5, 1, 2, 3, 0),\n", - " (4, 5, 1, 3, 0, 2): (4, 5, 1, 3, 0, 2),\n", - " (4, 5, 1, 3, 2, 0): (4, 5, 1, 3, 2, 0),\n", - " (4, 5, 2, 0, 1, 3): (4, 5, 2, 0, 1, 3),\n", - " (4, 5, 2, 0, 3, 1): (4, 5, 2, 0, 3, 1),\n", - " (4, 5, 2, 1, 0, 3): (4, 5, 2, 1, 0, 3),\n", - " (4, 5, 2, 1, 3, 0): (4, 5, 2, 1, 3, 0),\n", - " (4, 5, 2, 3, 0, 1): (4, 5, 2, 3, 0, 1),\n", - " (4, 5, 2, 3, 1, 0): (4, 5, 2, 3, 1, 0),\n", - " (4, 5, 3, 0, 1, 2): (4, 5, 3, 0, 1, 2),\n", - " (4, 5, 3, 0, 2, 1): (4, 5, 3, 0, 2, 1),\n", - " (4, 5, 3, 1, 0, 2): (4, 5, 3, 1, 0, 2),\n", - " (4, 5, 3, 1, 2, 0): (4, 5, 3, 1, 2, 0),\n", - " (4, 5, 3, 2, 0, 1): (4, 5, 3, 2, 0, 1),\n", - " (4, 5, 3, 2, 1, 0): (4, 5, 3, 2, 1, 0),\n", - " (5, 0, 1, 2, 3, 4): (5, 0, 1, 2, 3, 4),\n", - " (5, 0, 1, 2, 4, 3): (5, 0, 1, 2, 4, 3),\n", - " (5, 0, 1, 3, 2, 4): (5, 0, 1, 3, 2, 4),\n", - " (5, 0, 1, 3, 4, 2): (5, 0, 1, 3, 4, 2),\n", - " (5, 0, 1, 4, 2, 3): (5, 0, 1, 4, 2, 3),\n", - " (5, 0, 1, 4, 3, 2): (5, 0, 1, 4, 3, 2),\n", - " (5, 0, 2, 1, 3, 4): (5, 0, 2, 1, 3, 4),\n", - " (5, 0, 2, 1, 4, 3): (5, 0, 2, 1, 4, 3),\n", - " (5, 0, 2, 3, 1, 4): (5, 0, 2, 3, 1, 4),\n", - " (5, 0, 2, 3, 4, 1): (5, 0, 2, 3, 4, 1),\n", - " (5, 0, 2, 4, 1, 3): (5, 0, 2, 4, 1, 3),\n", - " (5, 0, 2, 4, 3, 1): (5, 0, 2, 4, 3, 1),\n", - " (5, 0, 3, 1, 2, 4): (5, 0, 3, 1, 2, 4),\n", - " (5, 0, 3, 1, 4, 2): (5, 0, 3, 1, 4, 2),\n", - " (5, 0, 3, 2, 1, 4): (5, 0, 3, 2, 1, 4),\n", - " (5, 0, 3, 2, 4, 1): (5, 0, 3, 2, 4, 1),\n", - " (5, 0, 3, 4, 1, 2): (5, 0, 3, 4, 1, 2),\n", - " (5, 0, 3, 4, 2, 1): (5, 0, 3, 4, 2, 1),\n", - " (5, 0, 4, 1, 2, 3): (5, 0, 4, 1, 2, 3),\n", - " (5, 0, 4, 1, 3, 2): (5, 0, 4, 1, 3, 2),\n", - " (5, 0, 4, 2, 1, 3): (5, 0, 4, 2, 1, 3),\n", - " (5, 0, 4, 2, 3, 1): (5, 0, 4, 2, 3, 1),\n", - " (5, 0, 4, 3, 1, 2): (5, 0, 4, 3, 1, 2),\n", - " (5, 0, 4, 3, 2, 1): (5, 0, 4, 3, 2, 1),\n", - " (5, 1, 0, 2, 3, 4): (5, 1, 0, 2, 3, 4),\n", - " (5, 1, 0, 2, 4, 3): (5, 1, 0, 2, 4, 3),\n", - " (5, 1, 0, 3, 2, 4): (5, 1, 0, 3, 2, 4),\n", - " (5, 1, 0, 3, 4, 2): (5, 1, 0, 3, 4, 2),\n", - " (5, 1, 0, 4, 2, 3): (5, 1, 0, 4, 2, 3),\n", - " (5, 1, 0, 4, 3, 2): (5, 1, 0, 4, 3, 2),\n", - " (5, 1, 2, 0, 3, 4): (5, 1, 2, 0, 3, 4),\n", - " (5, 1, 2, 0, 4, 3): (5, 1, 2, 0, 4, 3),\n", - " (5, 1, 2, 3, 0, 4): (5, 1, 2, 3, 0, 4),\n", - " (5, 1, 2, 3, 4, 0): (5, 1, 2, 3, 4, 0),\n", - " (5, 1, 2, 4, 0, 3): (5, 1, 2, 4, 0, 3),\n", - " (5, 1, 2, 4, 3, 0): (5, 1, 2, 4, 3, 0),\n", - " (5, 1, 3, 0, 2, 4): (5, 1, 3, 0, 2, 4),\n", - " (5, 1, 3, 0, 4, 2): (5, 1, 3, 0, 4, 2),\n", - " (5, 1, 3, 2, 0, 4): (5, 1, 3, 2, 0, 4),\n", - " (5, 1, 3, 2, 4, 0): (5, 1, 3, 2, 4, 0),\n", - " (5, 1, 3, 4, 0, 2): (5, 1, 3, 4, 0, 2),\n", - " (5, 1, 3, 4, 2, 0): (5, 1, 3, 4, 2, 0),\n", - " (5, 1, 4, 0, 2, 3): (5, 1, 4, 0, 2, 3),\n", - " (5, 1, 4, 0, 3, 2): (5, 1, 4, 0, 3, 2),\n", - " (5, 1, 4, 2, 0, 3): (5, 1, 4, 2, 0, 3),\n", - " (5, 1, 4, 2, 3, 0): (5, 1, 4, 2, 3, 0),\n", - " (5, 1, 4, 3, 0, 2): (5, 1, 4, 3, 0, 2),\n", - " (5, 1, 4, 3, 2, 0): (5, 1, 4, 3, 2, 0),\n", - " (5, 2, 0, 1, 3, 4): (5, 2, 0, 1, 3, 4),\n", - " (5, 2, 0, 1, 4, 3): (5, 2, 0, 1, 4, 3),\n", - " (5, 2, 0, 3, 1, 4): (5, 2, 0, 3, 1, 4),\n", - " (5, 2, 0, 3, 4, 1): (5, 2, 0, 3, 4, 1),\n", - " (5, 2, 0, 4, 1, 3): (5, 2, 0, 4, 1, 3),\n", - " (5, 2, 0, 4, 3, 1): (5, 2, 0, 4, 3, 1),\n", - " (5, 2, 1, 0, 3, 4): (5, 2, 1, 0, 3, 4),\n", - " (5, 2, 1, 0, 4, 3): (5, 2, 1, 0, 4, 3),\n", - " (5, 2, 1, 3, 0, 4): (5, 2, 1, 3, 0, 4),\n", - " (5, 2, 1, 3, 4, 0): (5, 2, 1, 3, 4, 0),\n", - " (5, 2, 1, 4, 0, 3): (5, 2, 1, 4, 0, 3),\n", - " (5, 2, 1, 4, 3, 0): (5, 2, 1, 4, 3, 0),\n", - " (5, 2, 3, 0, 1, 4): (5, 2, 3, 0, 1, 4),\n", - " (5, 2, 3, 0, 4, 1): (5, 2, 3, 0, 4, 1),\n", - " (5, 2, 3, 1, 0, 4): (5, 2, 3, 1, 0, 4),\n", - " (5, 2, 3, 1, 4, 0): (5, 2, 3, 1, 4, 0),\n", - " (5, 2, 3, 4, 0, 1): (5, 2, 3, 4, 0, 1),\n", - " (5, 2, 3, 4, 1, 0): (5, 2, 3, 4, 1, 0),\n", - " (5, 2, 4, 0, 1, 3): (5, 2, 4, 0, 1, 3),\n", - " (5, 2, 4, 0, 3, 1): (5, 2, 4, 0, 3, 1),\n", - " (5, 2, 4, 1, 0, 3): (5, 2, 4, 1, 0, 3),\n", - " (5, 2, 4, 1, 3, 0): (5, 2, 4, 1, 3, 0),\n", - " (5, 2, 4, 3, 0, 1): (5, 2, 4, 3, 0, 1),\n", - " (5, 2, 4, 3, 1, 0): (5, 2, 4, 3, 1, 0),\n", - " (5, 3, 0, 1, 2, 4): (5, 3, 0, 1, 2, 4),\n", - " (5, 3, 0, 1, 4, 2): (5, 3, 0, 1, 4, 2),\n", - " (5, 3, 0, 2, 1, 4): (5, 3, 0, 2, 1, 4),\n", - " (5, 3, 0, 2, 4, 1): (5, 3, 0, 2, 4, 1),\n", - " (5, 3, 0, 4, 1, 2): (5, 3, 0, 4, 1, 2),\n", - " (5, 3, 0, 4, 2, 1): (5, 3, 0, 4, 2, 1),\n", - " (5, 3, 1, 0, 2, 4): (5, 3, 1, 0, 2, 4),\n", - " (5, 3, 1, 0, 4, 2): (5, 3, 1, 0, 4, 2),\n", - " (5, 3, 1, 2, 0, 4): (5, 3, 1, 2, 0, 4),\n", - " (5, 3, 1, 2, 4, 0): (5, 3, 1, 2, 4, 0),\n", - " (5, 3, 1, 4, 0, 2): (5, 3, 1, 4, 0, 2),\n", - " (5, 3, 1, 4, 2, 0): (5, 3, 1, 4, 2, 0),\n", - " (5, 3, 2, 0, 1, 4): (5, 3, 2, 0, 1, 4),\n", - " (5, 3, 2, 0, 4, 1): (5, 3, 2, 0, 4, 1),\n", - " (5, 3, 2, 1, 0, 4): (5, 3, 2, 1, 0, 4),\n", - " (5, 3, 2, 1, 4, 0): (5, 3, 2, 1, 4, 0),\n", - " (5, 3, 2, 4, 0, 1): (5, 3, 2, 4, 0, 1),\n", - " (5, 3, 2, 4, 1, 0): (5, 3, 2, 4, 1, 0),\n", - " (5, 3, 4, 0, 1, 2): (5, 3, 4, 0, 1, 2),\n", - " (5, 3, 4, 0, 2, 1): (5, 3, 4, 0, 2, 1),\n", - " (5, 3, 4, 1, 0, 2): (5, 3, 4, 1, 0, 2),\n", - " (5, 3, 4, 1, 2, 0): (5, 3, 4, 1, 2, 0),\n", - " (5, 3, 4, 2, 0, 1): (5, 3, 4, 2, 0, 1),\n", - " (5, 3, 4, 2, 1, 0): (5, 3, 4, 2, 1, 0),\n", - " (5, 4, 0, 1, 2, 3): (5, 4, 0, 1, 2, 3),\n", - " (5, 4, 0, 1, 3, 2): (5, 4, 0, 1, 3, 2),\n", - " (5, 4, 0, 2, 1, 3): (5, 4, 0, 2, 1, 3),\n", - " (5, 4, 0, 2, 3, 1): (5, 4, 0, 2, 3, 1),\n", - " (5, 4, 0, 3, 1, 2): (5, 4, 0, 3, 1, 2),\n", - " (5, 4, 0, 3, 2, 1): (5, 4, 0, 3, 2, 1),\n", - " (5, 4, 1, 0, 2, 3): (5, 4, 1, 0, 2, 3),\n", - " (5, 4, 1, 0, 3, 2): (5, 4, 1, 0, 3, 2),\n", - " (5, 4, 1, 2, 0, 3): (5, 4, 1, 2, 0, 3),\n", - " (5, 4, 1, 2, 3, 0): (5, 4, 1, 2, 3, 0),\n", - " (5, 4, 1, 3, 0, 2): (5, 4, 1, 3, 0, 2),\n", - " (5, 4, 1, 3, 2, 0): (5, 4, 1, 3, 2, 0),\n", - " (5, 4, 2, 0, 1, 3): (5, 4, 2, 0, 1, 3),\n", - " (5, 4, 2, 0, 3, 1): (5, 4, 2, 0, 3, 1),\n", - " (5, 4, 2, 1, 0, 3): (5, 4, 2, 1, 0, 3),\n", - " (5, 4, 2, 1, 3, 0): (5, 4, 2, 1, 3, 0),\n", - " (5, 4, 2, 3, 0, 1): (5, 4, 2, 3, 0, 1),\n", - " (5, 4, 2, 3, 1, 0): (5, 4, 2, 3, 1, 0),\n", - " (5, 4, 3, 0, 1, 2): (5, 4, 3, 0, 1, 2),\n", - " (5, 4, 3, 0, 2, 1): (5, 4, 3, 0, 2, 1),\n", - " (5, 4, 3, 1, 0, 2): (5, 4, 3, 1, 0, 2),\n", - " (5, 4, 3, 1, 2, 0): (5, 4, 3, 1, 2, 0),\n", - " (5, 4, 3, 2, 0, 1): (5, 4, 3, 2, 0, 1),\n", - " (5, 4, 3, 2, 1, 0): (5, 4, 3, 2, 1, 0)}" - ] - }, - "execution_count": 16, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "transpositions6 = {t: t for t in set(itertools.permutations(list(range(6))))}\n", - "transpositions6" - ] - }, - { - "cell_type": "code", - "execution_count": 17, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "text/plain": [ - "(((2, 4, 3, 5, 0, 1), (1, 2), ),\n", - " -1437.9908206760847)" - ] - }, - "execution_count": 17, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "key_b, score = amsco_break(c7b, translist=transpositions6)\n", - "key_b, score" - ] - }, - { - "cell_type": "code", - "execution_count": 18, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "text/plain": [ - "[[AmscoSlice(index=0, start=0, end=1),\n", - " AmscoSlice(index=1, start=1, end=3),\n", - " AmscoSlice(index=2, start=3, end=4),\n", - " AmscoSlice(index=3, start=4, end=6),\n", - " AmscoSlice(index=4, start=6, end=7),\n", - " AmscoSlice(index=5, start=7, end=9)],\n", - " [AmscoSlice(index=6, start=9, end=11),\n", - " AmscoSlice(index=7, start=11, end=12),\n", - " AmscoSlice(index=8, start=12, end=14),\n", - " AmscoSlice(index=9, start=14, end=15),\n", - " AmscoSlice(index=10, start=15, end=17),\n", - " AmscoSlice(index=11, start=17, end=18)],\n", - " [AmscoSlice(index=12, start=18, end=19),\n", - " AmscoSlice(index=13, start=19, end=21),\n", - " AmscoSlice(index=14, start=21, end=22),\n", - " AmscoSlice(index=15, start=22, end=24),\n", - " AmscoSlice(index=16, start=24, end=25),\n", - " AmscoSlice(index=17, start=25, end=27)],\n", - " [AmscoSlice(index=18, start=27, end=29),\n", - " AmscoSlice(index=19, start=29, end=30),\n", - " AmscoSlice(index=20, start=30, end=32),\n", - " AmscoSlice(index=21, start=32, end=33),\n", - " AmscoSlice(index=22, start=33, end=35),\n", - " AmscoSlice(index=23, start=35, end=36)],\n", - " [AmscoSlice(index=24, start=36, end=37),\n", - " AmscoSlice(index=25, start=37, end=39),\n", - " AmscoSlice(index=26, start=39, end=40),\n", - " AmscoSlice(index=27, start=40, end=42),\n", - " AmscoSlice(index=28, start=42, end=43),\n", - " AmscoSlice(index=29, start=43, end=45)],\n", - " [AmscoSlice(index=30, start=45, end=47),\n", - " AmscoSlice(index=31, start=47, end=48),\n", - " AmscoSlice(index=32, start=48, end=50),\n", - " AmscoSlice(index=33, start=50, end=51),\n", - " AmscoSlice(index=34, start=51, end=53),\n", - " AmscoSlice(index=35, start=53, end=54)],\n", - " [AmscoSlice(index=36, start=54, end=55),\n", - " AmscoSlice(index=37, start=55, end=57),\n", - " AmscoSlice(index=38, start=57, end=58),\n", - " AmscoSlice(index=39, start=58, end=60),\n", - " AmscoSlice(index=40, start=60, end=61),\n", - " AmscoSlice(index=41, start=61, end=63)],\n", - " [AmscoSlice(index=42, start=63, end=65),\n", - " AmscoSlice(index=43, start=65, end=66),\n", - " AmscoSlice(index=44, start=66, end=68),\n", - " AmscoSlice(index=45, start=68, end=69),\n", - " AmscoSlice(index=46, start=69, end=71),\n", - " AmscoSlice(index=47, start=71, end=72)],\n", - " [AmscoSlice(index=48, start=72, end=73),\n", - " AmscoSlice(index=49, start=73, end=75),\n", - " AmscoSlice(index=50, start=75, end=76),\n", - " AmscoSlice(index=51, start=76, end=78),\n", - " AmscoSlice(index=52, start=78, end=79),\n", - " AmscoSlice(index=53, start=79, end=81)],\n", - " [AmscoSlice(index=54, start=81, end=83),\n", - " AmscoSlice(index=55, start=83, end=84),\n", - " AmscoSlice(index=56, start=84, end=86),\n", - " AmscoSlice(index=57, start=86, end=87),\n", - " AmscoSlice(index=58, start=87, end=89),\n", - " AmscoSlice(index=59, start=89, end=90)],\n", - " [AmscoSlice(index=60, start=90, end=91),\n", - " AmscoSlice(index=61, start=91, end=93),\n", - " AmscoSlice(index=62, start=93, end=94),\n", - " AmscoSlice(index=63, start=94, end=96),\n", - " AmscoSlice(index=64, start=96, end=97),\n", - " AmscoSlice(index=65, start=97, end=99)],\n", - " [AmscoSlice(index=66, start=99, end=101),\n", - " AmscoSlice(index=67, start=101, end=102),\n", - " AmscoSlice(index=68, start=102, end=104),\n", - " AmscoSlice(index=69, start=104, end=105),\n", - " AmscoSlice(index=70, start=105, end=107),\n", - " AmscoSlice(index=71, start=107, end=108)],\n", - " [AmscoSlice(index=72, start=108, end=109),\n", - " AmscoSlice(index=73, start=109, end=111),\n", - " AmscoSlice(index=74, start=111, end=112),\n", - " AmscoSlice(index=75, start=112, end=114),\n", - " AmscoSlice(index=76, start=114, end=115),\n", - " AmscoSlice(index=77, start=115, end=117)],\n", - " [AmscoSlice(index=78, start=117, end=119),\n", - " AmscoSlice(index=79, start=119, end=120),\n", - " AmscoSlice(index=80, start=120, end=122),\n", - " AmscoSlice(index=81, start=122, end=123),\n", - " AmscoSlice(index=82, start=123, end=125),\n", - " AmscoSlice(index=83, start=125, end=126)],\n", - " [AmscoSlice(index=84, start=126, end=127),\n", - " AmscoSlice(index=85, start=127, end=129),\n", - " AmscoSlice(index=86, start=129, end=130),\n", - " AmscoSlice(index=87, start=130, end=132),\n", - " AmscoSlice(index=88, start=132, end=133),\n", - " AmscoSlice(index=89, start=133, end=135)],\n", - " [AmscoSlice(index=90, start=135, end=137),\n", - " AmscoSlice(index=91, start=137, end=138),\n", - " AmscoSlice(index=92, start=138, end=140),\n", - " AmscoSlice(index=93, start=140, end=141),\n", - " AmscoSlice(index=94, start=141, end=143),\n", - " AmscoSlice(index=95, start=143, end=144)],\n", - " [AmscoSlice(index=96, start=144, end=145),\n", - " AmscoSlice(index=97, start=145, end=147),\n", - " AmscoSlice(index=98, start=147, end=148),\n", - " AmscoSlice(index=99, start=148, end=150),\n", - " AmscoSlice(index=100, start=150, end=151),\n", - " AmscoSlice(index=101, start=151, end=153)],\n", - " [AmscoSlice(index=102, start=153, end=155),\n", - " AmscoSlice(index=103, start=155, end=156),\n", - " AmscoSlice(index=104, start=156, end=158),\n", - " AmscoSlice(index=105, start=158, end=159),\n", - " AmscoSlice(index=106, start=159, end=161),\n", - " AmscoSlice(index=107, start=161, end=162)],\n", - " [AmscoSlice(index=108, start=162, end=163),\n", - " AmscoSlice(index=109, start=163, end=165),\n", - " AmscoSlice(index=110, start=165, end=166),\n", - " AmscoSlice(index=111, start=166, end=168),\n", - " AmscoSlice(index=112, start=168, end=169),\n", - " AmscoSlice(index=113, start=169, end=171)],\n", - " [AmscoSlice(index=114, start=171, end=173),\n", - " AmscoSlice(index=115, start=173, end=174),\n", - " AmscoSlice(index=116, start=174, end=176),\n", - " AmscoSlice(index=117, start=176, end=177),\n", - " AmscoSlice(index=118, start=177, end=179),\n", - " AmscoSlice(index=119, start=179, end=180)],\n", - " [AmscoSlice(index=120, start=180, end=181),\n", - " AmscoSlice(index=121, start=181, end=183),\n", - " AmscoSlice(index=122, start=183, end=184),\n", - " AmscoSlice(index=123, start=184, end=186),\n", - " AmscoSlice(index=124, start=186, end=187),\n", - " AmscoSlice(index=125, start=187, end=189)],\n", - " [AmscoSlice(index=126, start=189, end=191),\n", - " AmscoSlice(index=127, start=191, end=192),\n", - " AmscoSlice(index=128, start=192, end=194),\n", - " AmscoSlice(index=129, start=194, end=195),\n", - " AmscoSlice(index=130, start=195, end=197),\n", - " AmscoSlice(index=131, start=197, end=198)],\n", - " [AmscoSlice(index=132, start=198, end=199),\n", - " AmscoSlice(index=133, start=199, end=201),\n", - " AmscoSlice(index=134, start=201, end=202),\n", - " AmscoSlice(index=135, start=202, end=204),\n", - " AmscoSlice(index=136, start=204, end=205),\n", - " AmscoSlice(index=137, start=205, end=207)],\n", - " [AmscoSlice(index=138, start=207, end=209),\n", - " AmscoSlice(index=139, start=209, end=210),\n", - " AmscoSlice(index=140, start=210, end=212),\n", - " AmscoSlice(index=141, start=212, end=213),\n", - " AmscoSlice(index=142, start=213, end=215),\n", - " AmscoSlice(index=143, start=215, end=216)],\n", - " [AmscoSlice(index=144, start=216, end=217),\n", - " AmscoSlice(index=145, start=217, end=219),\n", - " AmscoSlice(index=146, start=219, end=220),\n", - " AmscoSlice(index=147, start=220, end=222),\n", - " AmscoSlice(index=148, start=222, end=223),\n", - " AmscoSlice(index=149, start=223, end=225)],\n", - " [AmscoSlice(index=150, start=225, end=227),\n", - " AmscoSlice(index=151, start=227, end=228),\n", - " AmscoSlice(index=152, start=228, end=230),\n", - " AmscoSlice(index=153, start=230, end=231),\n", - " AmscoSlice(index=154, start=231, end=233),\n", - " AmscoSlice(index=155, start=233, end=234)],\n", - " [AmscoSlice(index=156, start=234, end=235),\n", - " AmscoSlice(index=157, start=235, end=237),\n", - " AmscoSlice(index=158, start=237, end=238),\n", - " AmscoSlice(index=159, start=238, end=240),\n", - " AmscoSlice(index=160, start=240, end=241),\n", - " AmscoSlice(index=161, start=241, end=243)],\n", - " [AmscoSlice(index=162, start=243, end=245),\n", - " AmscoSlice(index=163, start=245, end=246),\n", - " AmscoSlice(index=164, start=246, end=248),\n", - " AmscoSlice(index=165, start=248, end=249),\n", - " AmscoSlice(index=166, start=249, end=251),\n", - " AmscoSlice(index=167, start=251, end=252)],\n", - " [AmscoSlice(index=168, start=252, end=253),\n", - " AmscoSlice(index=169, start=253, end=255),\n", - " AmscoSlice(index=170, start=255, end=256),\n", - " AmscoSlice(index=171, start=256, end=258),\n", - " AmscoSlice(index=172, start=258, end=259),\n", - " AmscoSlice(index=173, start=259, end=261)],\n", - " [AmscoSlice(index=174, start=261, end=263),\n", - " AmscoSlice(index=175, start=263, end=264),\n", - " AmscoSlice(index=176, start=264, end=266),\n", - " AmscoSlice(index=177, start=266, end=267),\n", - " AmscoSlice(index=178, start=267, end=269),\n", - " AmscoSlice(index=179, start=269, end=270)],\n", - " [AmscoSlice(index=180, start=270, end=271),\n", - " AmscoSlice(index=181, start=271, end=273),\n", - " AmscoSlice(index=182, start=273, end=274),\n", - " AmscoSlice(index=183, start=274, end=276),\n", - " AmscoSlice(index=184, start=276, end=277),\n", - " AmscoSlice(index=185, start=277, end=279)],\n", - " [AmscoSlice(index=186, start=279, end=281),\n", - " AmscoSlice(index=187, start=281, end=282),\n", - " AmscoSlice(index=188, start=282, end=284),\n", - " AmscoSlice(index=189, start=284, end=285),\n", - " AmscoSlice(index=190, start=285, end=287),\n", - " AmscoSlice(index=191, start=287, end=288)],\n", - " [AmscoSlice(index=192, start=288, end=289),\n", - " AmscoSlice(index=193, start=289, end=291),\n", - " AmscoSlice(index=194, start=291, end=292),\n", - " AmscoSlice(index=195, start=292, end=294),\n", - " AmscoSlice(index=196, start=294, end=295),\n", - " AmscoSlice(index=197, start=295, end=297)],\n", - " [AmscoSlice(index=198, start=297, end=299),\n", - " AmscoSlice(index=199, start=299, end=300),\n", - " AmscoSlice(index=200, start=300, end=302),\n", - " AmscoSlice(index=201, start=302, end=303),\n", - " AmscoSlice(index=202, start=303, end=305),\n", - " AmscoSlice(index=203, start=305, end=306)],\n", - " [AmscoSlice(index=204, start=306, end=307),\n", - " AmscoSlice(index=205, start=307, end=309),\n", - " AmscoSlice(index=206, start=309, end=310),\n", - " AmscoSlice(index=207, start=310, end=312),\n", - " AmscoSlice(index=208, start=312, end=313),\n", - " AmscoSlice(index=209, start=313, end=315)],\n", - " [AmscoSlice(index=210, start=315, end=317),\n", - " AmscoSlice(index=211, start=317, end=318),\n", - " AmscoSlice(index=212, start=318, end=320),\n", - " AmscoSlice(index=213, start=320, end=321),\n", - " AmscoSlice(index=214, start=321, end=323),\n", - " AmscoSlice(index=215, start=323, end=324)],\n", - " [AmscoSlice(index=216, start=324, end=325),\n", - " AmscoSlice(index=217, start=325, end=327),\n", - " AmscoSlice(index=218, start=327, end=328),\n", - " AmscoSlice(index=219, start=328, end=330),\n", - " AmscoSlice(index=220, start=330, end=331),\n", - " AmscoSlice(index=221, start=331, end=333)],\n", - " [AmscoSlice(index=222, start=333, end=335),\n", - " AmscoSlice(index=223, start=335, end=336),\n", - " AmscoSlice(index=224, start=336, end=338),\n", - " AmscoSlice(index=225, start=338, end=339),\n", - " AmscoSlice(index=226, start=339, end=341),\n", - " AmscoSlice(index=227, start=341, end=342)],\n", - " [AmscoSlice(index=228, start=342, end=343),\n", - " AmscoSlice(index=229, start=343, end=345),\n", - " AmscoSlice(index=230, start=345, end=346),\n", - " AmscoSlice(index=231, start=346, end=348),\n", - " AmscoSlice(index=232, start=348, end=349),\n", - " AmscoSlice(index=233, start=349, end=351)],\n", - " [AmscoSlice(index=234, start=351, end=353),\n", - " AmscoSlice(index=235, start=353, end=354),\n", - " AmscoSlice(index=236, start=354, end=356),\n", - " AmscoSlice(index=237, start=356, end=357),\n", - " AmscoSlice(index=238, start=357, end=359),\n", - " AmscoSlice(index=239, start=359, end=360)],\n", - " [AmscoSlice(index=240, start=360, end=361),\n", - " AmscoSlice(index=241, start=361, end=363),\n", - " AmscoSlice(index=242, start=363, end=364),\n", - " AmscoSlice(index=243, start=364, end=366),\n", - " AmscoSlice(index=244, start=366, end=367),\n", - " AmscoSlice(index=245, start=367, end=369)],\n", - " [AmscoSlice(index=246, start=369, end=371),\n", - " AmscoSlice(index=247, start=371, end=372),\n", - " AmscoSlice(index=248, start=372, end=374),\n", - " AmscoSlice(index=249, start=374, end=375),\n", - " AmscoSlice(index=250, start=375, end=377),\n", - " AmscoSlice(index=251, start=377, end=378)],\n", - " [AmscoSlice(index=252, start=378, end=379),\n", - " AmscoSlice(index=253, start=379, end=381),\n", - " AmscoSlice(index=254, start=381, end=382),\n", - " AmscoSlice(index=255, start=382, end=384),\n", - " AmscoSlice(index=256, start=384, end=385),\n", - " AmscoSlice(index=257, start=385, end=387)],\n", - " [AmscoSlice(index=258, start=387, end=389),\n", - " AmscoSlice(index=259, start=389, end=390),\n", - " AmscoSlice(index=260, start=390, end=392),\n", - " AmscoSlice(index=261, start=392, end=393),\n", - " AmscoSlice(index=262, start=393, end=395),\n", - " AmscoSlice(index=263, start=395, end=396)],\n", - " [AmscoSlice(index=264, start=396, end=397),\n", - " AmscoSlice(index=265, start=397, end=399),\n", - " AmscoSlice(index=266, start=399, end=400),\n", - " AmscoSlice(index=267, start=400, end=402),\n", - " AmscoSlice(index=268, start=402, end=403),\n", - " AmscoSlice(index=269, start=403, end=405)],\n", - " [AmscoSlice(index=270, start=405, end=407),\n", - " AmscoSlice(index=271, start=407, end=408),\n", - " AmscoSlice(index=272, start=408, end=410),\n", - " AmscoSlice(index=273, start=410, end=411),\n", - " AmscoSlice(index=274, start=411, end=413),\n", - " AmscoSlice(index=275, start=413, end=414)],\n", - " [AmscoSlice(index=276, start=414, end=415),\n", - " AmscoSlice(index=277, start=415, end=417),\n", - " AmscoSlice(index=278, start=417, end=418),\n", - " AmscoSlice(index=279, start=418, end=420),\n", - " AmscoSlice(index=280, start=420, end=421),\n", - " AmscoSlice(index=281, start=421, end=423)],\n", - " [AmscoSlice(index=282, start=423, end=425),\n", - " AmscoSlice(index=283, start=425, end=426),\n", - " AmscoSlice(index=284, start=426, end=428),\n", - " AmscoSlice(index=285, start=428, end=429),\n", - " AmscoSlice(index=286, start=429, end=431),\n", - " AmscoSlice(index=287, start=431, end=432)],\n", - " [AmscoSlice(index=288, start=432, end=433),\n", - " AmscoSlice(index=289, start=433, end=435),\n", - " AmscoSlice(index=290, start=435, end=436),\n", - " AmscoSlice(index=291, start=436, end=438),\n", - " AmscoSlice(index=292, start=438, end=439),\n", - " AmscoSlice(index=293, start=439, end=441)],\n", - " [AmscoSlice(index=294, start=441, end=443),\n", - " AmscoSlice(index=295, start=443, end=444),\n", - " AmscoSlice(index=296, start=444, end=446),\n", - " AmscoSlice(index=297, start=446, end=447),\n", - " AmscoSlice(index=298, start=447, end=449),\n", - " AmscoSlice(index=299, start=449, end=450)],\n", - " [AmscoSlice(index=300, start=450, end=451),\n", - " AmscoSlice(index=301, start=451, end=453),\n", - " AmscoSlice(index=302, start=453, end=454),\n", - " AmscoSlice(index=303, start=454, end=456),\n", - " AmscoSlice(index=304, start=456, end=457),\n", - " AmscoSlice(index=305, start=457, end=459)],\n", - " [AmscoSlice(index=306, start=459, end=461),\n", - " AmscoSlice(index=307, start=461, end=462),\n", - " AmscoSlice(index=308, start=462, end=464),\n", - " AmscoSlice(index=309, start=464, end=465),\n", - " AmscoSlice(index=310, start=465, end=467),\n", - " AmscoSlice(index=311, start=467, end=468)],\n", - " [AmscoSlice(index=312, start=468, end=469),\n", - " AmscoSlice(index=313, start=469, end=471),\n", - " AmscoSlice(index=314, start=471, end=472),\n", - " AmscoSlice(index=315, start=472, end=474),\n", - " AmscoSlice(index=316, start=474, end=475),\n", - " AmscoSlice(index=317, start=475, end=477)],\n", - " [AmscoSlice(index=318, start=477, end=479),\n", - " AmscoSlice(index=319, start=479, end=480),\n", - " AmscoSlice(index=320, start=480, end=482),\n", - " AmscoSlice(index=321, start=482, end=483),\n", - " AmscoSlice(index=322, start=483, end=485),\n", - " AmscoSlice(index=323, start=485, end=486)],\n", - " [AmscoSlice(index=324, start=486, end=487),\n", - " AmscoSlice(index=325, start=487, end=489),\n", - " AmscoSlice(index=326, start=489, end=490),\n", - " AmscoSlice(index=327, start=490, end=492),\n", - " AmscoSlice(index=328, start=492, end=493),\n", - " AmscoSlice(index=329, start=493, end=495)],\n", - " [AmscoSlice(index=330, start=495, end=497),\n", - " AmscoSlice(index=331, start=497, end=498),\n", - " AmscoSlice(index=332, start=498, end=500),\n", - " AmscoSlice(index=333, start=500, end=501),\n", - " AmscoSlice(index=334, start=501, end=503),\n", - " AmscoSlice(index=335, start=503, end=504)],\n", - " [AmscoSlice(index=336, start=504, end=505),\n", - " AmscoSlice(index=337, start=505, end=507),\n", - " AmscoSlice(index=338, start=507, end=508),\n", - " AmscoSlice(index=339, start=508, end=510),\n", - " AmscoSlice(index=340, start=510, end=511),\n", - " AmscoSlice(index=341, start=511, end=513)],\n", - " [AmscoSlice(index=342, start=513, end=515),\n", - " AmscoSlice(index=343, start=515, end=516),\n", - " AmscoSlice(index=344, start=516, end=518),\n", - " AmscoSlice(index=345, start=518, end=519),\n", - " AmscoSlice(index=346, start=519, end=521),\n", - " AmscoSlice(index=347, start=521, end=522)],\n", - " [AmscoSlice(index=348, start=522, end=523),\n", - " AmscoSlice(index=349, start=523, end=525),\n", - " AmscoSlice(index=350, start=525, end=526),\n", - " AmscoSlice(index=351, start=526, end=528),\n", - " AmscoSlice(index=352, start=528, end=529),\n", - " AmscoSlice(index=353, start=529, end=531)],\n", - " [AmscoSlice(index=354, start=531, end=533),\n", - " AmscoSlice(index=355, start=533, end=534),\n", - " AmscoSlice(index=356, start=534, end=536),\n", - " AmscoSlice(index=357, start=536, end=537),\n", - " AmscoSlice(index=358, start=537, end=539),\n", - " AmscoSlice(index=359, start=539, end=540)],\n", - " [AmscoSlice(index=360, start=540, end=541),\n", - " AmscoSlice(index=361, start=541, end=543),\n", - " AmscoSlice(index=362, start=543, end=544),\n", - " AmscoSlice(index=363, start=544, end=546),\n", - " AmscoSlice(index=364, start=546, end=547),\n", - " AmscoSlice(index=365, start=547, end=549)],\n", - " [AmscoSlice(index=366, start=549, end=551),\n", - " AmscoSlice(index=367, start=551, end=552),\n", - " AmscoSlice(index=368, start=552, end=554),\n", - " AmscoSlice(index=369, start=554, end=555),\n", - " AmscoSlice(index=370, start=555, end=557),\n", - " AmscoSlice(index=371, start=557, end=558)],\n", - " [AmscoSlice(index=372, start=558, end=559),\n", - " AmscoSlice(index=373, start=559, end=561),\n", - " AmscoSlice(index=374, start=561, end=562),\n", - " AmscoSlice(index=375, start=562, end=564),\n", - " AmscoSlice(index=376, start=564, end=565),\n", - " AmscoSlice(index=377, start=565, end=567)],\n", - " [AmscoSlice(index=378, start=567, end=569),\n", - " AmscoSlice(index=379, start=569, end=570),\n", - " AmscoSlice(index=380, start=570, end=572),\n", - " AmscoSlice(index=381, start=572, end=573),\n", - " AmscoSlice(index=382, start=573, end=575),\n", - " AmscoSlice(index=383, start=575, end=576)],\n", - " [AmscoSlice(index=384, start=576, end=577),\n", - " AmscoSlice(index=385, start=577, end=579),\n", - " AmscoSlice(index=386, start=579, end=580),\n", - " AmscoSlice(index=387, start=580, end=582),\n", - " AmscoSlice(index=388, start=582, end=583),\n", - " AmscoSlice(index=389, start=583, end=585)],\n", - " [AmscoSlice(index=390, start=585, end=587),\n", - " AmscoSlice(index=391, start=587, end=588),\n", - " AmscoSlice(index=392, start=588, end=590),\n", - " AmscoSlice(index=393, start=590, end=591),\n", - " AmscoSlice(index=394, start=591, end=593),\n", - " AmscoSlice(index=395, start=593, end=594)],\n", - " [AmscoSlice(index=396, start=594, end=595),\n", - " AmscoSlice(index=397, start=595, end=597),\n", - " AmscoSlice(index=398, start=597, end=598),\n", - " AmscoSlice(index=399, start=598, end=600),\n", - " AmscoSlice(index=400, start=600, end=601),\n", - " AmscoSlice(index=401, start=601, end=603)],\n", - " [AmscoSlice(index=402, start=603, end=605),\n", - " AmscoSlice(index=403, start=605, end=606),\n", - " AmscoSlice(index=404, start=606, end=608),\n", - " AmscoSlice(index=405, start=608, end=609),\n", - " AmscoSlice(index=406, start=609, end=611),\n", - " AmscoSlice(index=407, start=611, end=612)]]" - ] - }, - "execution_count": 18, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "amsco_transposition_positions(c7b, 'abcdef', \n", - " fillpattern=(1, 2),\n", - " fillstyle=AmscoFillStyle.reverse_each_row)" - ] - }, - { - "cell_type": "code", - "execution_count": 19, - "metadata": { - "collapsed": false, - "scrolled": true - }, - "outputs": [ - { - "data": { - "text/plain": [ - "['stager',\n", - " 'staler',\n", - " 'stalin',\n", - " 'stamen',\n", - " 'sucker',\n", - " 'tucker',\n", - " 'twangs',\n", - " 'twerps',\n", - " 'twirls',\n", - " 'staffer',\n", - " 'stagers',\n", - " 'stagger',\n", - " 'stalins',\n", - " 'stamens',\n", - " 'stamina',\n", - " 'stammer',\n", - " 'statler',\n", - " 'suckers',\n", - " 'sudsier',\n", - " 'swagger',\n", - " 'tubbier',\n", - " 'tycoons',\n", - " 'loadable',\n", - " 'noblemen',\n", - " 'rubidium',\n", - " 'staffers',\n", - " 'staggers',\n", - " 'staminas',\n", - " 'stammers',\n", - " 'standard',\n", - " 'steelier',\n", - " 'submerse',\n", - " 'swaggers',\n", - " 'tubbiest',\n", - " 'tuitions',\n", - " 'twenties',\n", - " 'stalemate',\n", - " 'staleness',\n", - " 'stalinist',\n", - " 'stammerer',\n", - " 'standards',\n", - " 'submerses',\n", - " 'swaggerer',\n", - " 'stalemates',\n", - " 'stalenesss',\n", - " 'stammerers',\n", - " 'stepsister',\n", - " 'succulence',\n", - " 'statistical',\n", - " 'stepsisters',\n", - " 'succulences',\n", - " 'statistician',\n", - " 'statisticians']" - ] - }, - "execution_count": 19, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "transpositions[key_b[0]]" - ] - }, - { - "cell_type": "code", - "execution_count": 20, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "security protocol solitaire comrades under a decree from moscow we are confined to using a new high security stream cipher stolen from the americans the solitaire cipher all files classified top secret and above are to be archived using this method this new field cipher has been tested and proven to match the security of the fi alka machine without the overhead of the technology you will need only a deck of cards to implement the cipher the key to be used will be provided and distributed on a one time pad and you must destroy the key as you use it the key consists of a random shuffle of a full deck of cards together with two distinguishable jokers agents should be freely able to carry this equipment without arousing suspicion\n" - ] - } - ], - "source": [ - "print(' '.join(segment(sanitise(\n", - " amsco_transposition_decipher(sanitise(c7b), \n", - " keyword=transpositions[key_b[0]][0], \n", - " fillpattern=key_b[1],\n", - " fillstyle=key_b[2])\n", - " ))))" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": true - }, - "outputs": [], - "source": [] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.4.3" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/2015-challenge8.ipynb b/2015-challenge8.ipynb deleted file mode 100644 index 90231b1..0000000 --- a/2015-challenge8.ipynb +++ /dev/null @@ -1,93 +0,0 @@ -{ - "cells": [ - { - "cell_type": "code", - "execution_count": 1, - "metadata": { - "collapsed": false - }, - "outputs": [], - "source": [ - "import matplotlib.pyplot as plt\n", - "%matplotlib inline\n", - "\n", - "from cipherbreak import *\n", - "\n", - "c8a = sanitise(open('2015/8a.ciphertext').read())\n", - "c8b = sanitise(open('2015/8b.ciphertext').read())" - ] - }, - { - "cell_type": "code", - "execution_count": 12, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "data": { - "text/plain": [ - "('charlie', -2104.8140749325567)" - ] - }, - "execution_count": 12, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "key_a, score = vigenere_frequency_break(c8a)\n", - "key_a, score" - ] - }, - { - "cell_type": "code", - "execution_count": 15, - "metadata": { - "collapsed": false - }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "harry i am so sorry we went into the russian hq last night without you but the station chief wanted it to be his team that got the glory i am really grateful to you for coming back and putting us on the right track though the stolen file from soviet headquarters was as you expected encrypted with the solitaire cipher fortunately the cipher clerk who managed the encryption was incredibly careless i found a sheet of burnt paper in the bin which gave me a list of thirty eight cards and i am hoping that this is a large part of the key it will still be hard to break but maybe not impossible especially as the erased part was still intact there maybe another clue in that the page appears to have been torn from an economics textbook i found on the desk anyway i figure the chemists at langley may help us to reconstruct the whole key given time though i wouldnt expect them to manage more than one card a day given how careful they will have to be not to destroy the document it will take usa while to crack this but maybe time is on our side with christmas things seem to be quiet and i am hoping that within the next three weeks we may know precisely what the soviets were trying to do here whatever the outcome i think it is clear that the future of europe is not likely to be settled for a while i hear rumours everyday about shortages in the soviet bloc and border controls are going up in places you wouldnt expect to prevent largescale migration there are problems in greece and turkey and divisions between the british and french and the brits are having real trouble paying off their war debts whether or not we crack the reichs doktor mystery i think there is going to be plenty for you to do i know we had to work hard to persuade you to flyover but we really do need you here even the chief recognizes that so if i can i want to persuade you to stay francois and i are being posted to paris kind of a thankyou for our work on this project but icant go unless i know the berlin station has someone i trust hope youll agree to take the job charlie\n" - ] - } - ], - "source": [ - "print(' '.join(segment(vigenere_decipher(c8a, key_a))))" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": true - }, - "outputs": [], - "source": [] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.4.3" - } - }, - "nbformat": 4, - "nbformat_minor": 0 -} diff --git a/2015/2015-challenge1.ipynb b/2015/2015-challenge1.ipynb new file mode 100644 index 0000000..7d73732 --- /dev/null +++ b/2015/2015-challenge1.ipynb @@ -0,0 +1,143 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import os,sys,inspect\n", + "currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))\n", + "parentdir = os.path.dirname(currentdir)\n", + "sys.path.insert(0,parentdir) \n", + "\n", + "import matplotlib.pyplot as plt\n", + "%matplotlib inline\n", + "\n", + "from cipherbreak import *\n", + "\n", + "c1a = open('1a.ciphertext').read()\n", + "c1b = open('1b.ciphertext').read()" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(12, -883.4816832492597)" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "key_a, score = caesar_break(c1a)\n", + "key_a, score" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "HARRY, SORRY TO DRAG YOU BACK IN , WE WERE HOPING TO GIVE YOU SOME TIME OFF AFTER THE LAST CASE, BUT SOMETHING CAME UP AND WE NEED YOUR HELP. \n", + "\n", + "AT A MEETING OF THE FOUR POWERS ALLIED CONTROL COUNCIL TWO WEEKS AGO THE FRENCH ACCUSED THE RUSSIANS OF SHELTERING A NAZI MEDIC KNOWN AS THE REICHSDOKTOR. APPARENTLY THEY INTERCEPTED A MORSE CODE RADIO BROADCAST FROM THE RUSSIAN SECTOR OF BERLIN IN WHICH THE DOCTOR WAS OFFERING INTELLIGENCE ABOUT THE RATLINES IN EXCHANGE FOR ASYLUM. THE RUSSIANS CLAIMED NOT TO KNOW ANYTHING ABOUT IT, AND MAYBE THEY ARE TELLING THE TRUTH, BUT THINGS HAVE BEEN A LITTLE FROSTY SINCE TRUMAN'S SPEECH ON MARCH TWELFTH AND WE REALLY DON'T NEED MORE CONFLICT RIGHT NOW. WE FIGURE WITH YOUR CONTACTS OVER HERE YOU MIGHT BE ABLE TO FIND OUT IF THE RUSSIANS ARE TELLING THE TRUTH. I HAVE ATTACHED THE ENCRYPTED TRANSCRIPT OF THE BROADCAST. \n", + "CHARLIE\n" + ] + } + ], + "source": [ + "print(caesar_decipher(c1a, key_a))" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(14, -403.53308240183975)" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "key_b, score = caesar_break(c1b)\n", + "key_b, score" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "if you want to know the secret of the rat lines i maybe able to help but the price will be high and is not negotiable life herein berlin has lost its lustre and i want sanctuary in a more congenial climate with security for my future i can provide details of personnel policy security and routes and can furnish you with documentary evidence of the reach of the organization the reichs doktor\n" + ] + } + ], + "source": [ + "print(' '.join(segment(sanitise(caesar_decipher(c1b, key_b)))))" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.4.3" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/2015/2015-challenge2.ipynb b/2015/2015-challenge2.ipynb new file mode 100644 index 0000000..7438ce2 --- /dev/null +++ b/2015/2015-challenge2.ipynb @@ -0,0 +1,143 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import os,sys,inspect\n", + "currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))\n", + "parentdir = os.path.dirname(currentdir)\n", + "sys.path.insert(0,parentdir) \n", + "\n", + "import matplotlib.pyplot as plt\n", + "%matplotlib inline\n", + "\n", + "from cipherbreak import *\n", + "\n", + "c2a = open('2a.ciphertext').read()\n", + "c2b = open('2b.ciphertext').read()" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(15, -1150.5844346071483)" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "key_a, score = caesar_break(c2a)\n", + "key_a, score" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "CHARLIE, NO NEED TO APOLOGISE, LIFE WAS GETTING DULL BEHIND A DESK AND I WAS GLAD TO HAVE AN EXCUSE TO FLY BACK TO EUROPE. I AM INTRIGUED ABOUT THE REICHSDOKTOR - I HADN'T COME ACROSS THIS BEFORE, WHEN DID YOU FIRST COME HEAR OF IT? \n", + "I THINK I MAY ALREADY BE MAKING SOME PROGRESS. ON ARRIVAL I FOUND A POSTCARD WAITING FOR ME ON THE MAT AT THE EMBASSY WITH NO MESSAGE ON IT . AT LEAST THAT'S WHAT IT LOOKED LIKE AT FIRST. I DID NOTICE THAT THE LETTERS ON THE FRONT COULD BE HIGHLIGHTED TO PICK OUT THE PHRASE THE REICHSDOKTOR SO UNLESS THAT IS AN EXTRAORDINARY COINCIDENCE I FIGURED IT MUST BE RELATED TO OUR INVESTIGATION. THE STRANGEST THING WAS THAT THE POSTCARD HAD A STAMP BUT NO POSTMARK ON IT, SO IT CAN'T HAVE BEEN POSTED. SINCE IT WASN'T SIGNED I ASSUME THEY WANTED TO STAY ANONYMOUS AND I COULDN'T SEE WHY THEY WOULD HAVE TAKEN THE RISK OF HAND DELIVERING IT, BUT IN THE END I WORKED IT OUT. THERE WAS A HIDDEN MESSAGE. I'LL LEAVE IT TO YOU TO FIGURE OUT WHERE IT WAS HIDDEN. ANYWAY I'VE ATTACHED THE MESSAGE I FOUND. I KNOW THAT RELATIONS WITH THREE OF THE FOUR POWERS ARE RELATIVELY STABLE, BUT I THINK WE NEED TO KEEP THIS TO OURSELVES FOR NOW. ALL THE BEST, \n", + "HARRY\n", + "\n" + ] + } + ], + "source": [ + "print(caesar_decipher(c2a, key_a))" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(21, -574.2402792119872)" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "key_b, score = caesar_break(c2b)\n", + "key_b, score" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "if you really want to get in the middle of this you will have to pay i know you will be hunting me and i can forgive the arrogance but i will not forgive your ignorance before you can learn more about the rat lines from me you will have to ask your colleagues in french and british intelligence what they already know powerful forces are working to keep the rat lines running and we both need to know who our enemies are before we can meet you should understand that without me your investigations will gain little negotiations with me may gain everything\n" + ] + } + ], + "source": [ + "print(' '.join(segment(sanitise(caesar_decipher(c2b, key_b)))))" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.4.3" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/2015/2015-challenge3.ipynb b/2015/2015-challenge3.ipynb new file mode 100644 index 0000000..65deaa8 --- /dev/null +++ b/2015/2015-challenge3.ipynb @@ -0,0 +1,141 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import os,sys,inspect\n", + "currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))\n", + "parentdir = os.path.dirname(currentdir)\n", + "sys.path.insert(0,parentdir) \n", + "\n", + "import matplotlib.pyplot as plt\n", + "%matplotlib inline\n", + "\n", + "from cipherbreak import *\n", + "\n", + "c3a = open('3a.ciphertext').read()\n", + "c3b = open('3b.ciphertext').read()" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "((3, 5, True), -901.37737042341)" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "(key_a_m, key_a_a, key_a_o), score = affine_break(c3a)\n", + "(key_a_m, key_a_a, key_a_o), score" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "HARRY, THE PUZZLE OF THE STAMPED POSTCARD HAD ME FOOLED FOR A WHILE, BUT I THINK I FIGURED IT OUT. WAS THE MESSAGE ON THE BACK OF THE STAMP? I AM GUESSING YOU STEAMED IT OFF AND FOUND IT THERE. IT WAS A PRETTY INGENIOUS PLOY. MY MASTERS BACK IN WASHINGTON ARE INCREASINGLY WORRIED ABOUT OUR RELATIONSHIP WITH THE REST OF THE FOUR POWERS. FOLLOWING THE BREAKDOWN IN TRUST WITH THE SOVIETS THEY ARE COUNTING ON THE UK AND FRANCE AS ALLIES. IF THEY ARE GOING BEHIND OUR BACKS WITH THIS REICHSDOKTOR, THAT DOES NOT BODE WELL FOR FUTURE DIPLOMACY. DO YOU HAVE CONTACTS THERE YOU CAN EXPLOIT TO FIND OUT WHAT THEY ARE INTENDING? WE REALLY CANNOT AFFORD TO FALL OUT RIGHT NOW. THE ATTACHED MESSAGE IS ANOTHER INTERCEPT, THIS TIME FROM THE BRITISH EMBASSY WIRELESS. WHILE THINGS ARE DICEY I DON’T FEEL I CAN ASK THEM ABOUT IT, MAYBE YOU COULD CRACK IT FOR US. DOES IT MENTION THE RATLINES? BEST, CHARLIE\n", + "\n" + ] + } + ], + "source": [ + "print(affine_decipher(c3a, multiplier=key_a_m, adder=key_a_a, one_based=key_a_o))" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "((5, 7, True), -574.5522852453349)" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "(key_b_m, key_b_a, key_b_o), score = affine_break(c3b)\n", + "(key_b_m, key_b_a, key_b_o), score" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "eyes only rumours of a source in berlin with access to the rat lines source seems to go by name of reichs doktor russian intercepts suggest has been seen in vicinity of us embassy not clear how to make direct contact also not clear why our us friends are keeping this to themselves detailed info about rat i lines hard to obtain but high value could lead to arrest of major targets of nuremberg investigations vital we reach reichs doktor at earliest opportunity discreet enquiries in french and us sectors only request funds for further investigation\n" + ] + } + ], + "source": [ + "print(' '.join(segment(sanitise(affine_decipher(c3b, multiplier=key_b_m, adder=key_b_a, one_based=key_b_o)))))" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.4.3" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/2015/2015-challenge4.ipynb b/2015/2015-challenge4.ipynb new file mode 100644 index 0000000..f2a1c9d --- /dev/null +++ b/2015/2015-challenge4.ipynb @@ -0,0 +1,363 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import os,sys,inspect\n", + "currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))\n", + "parentdir = os.path.dirname(currentdir)\n", + "sys.path.insert(0,parentdir) \n", + "\n", + "import matplotlib.pyplot as plt\n", + "%matplotlib inline\n", + "\n", + "from cipherbreak import *\n", + "\n", + "c4a = open('4a.ciphertext').read()\n", + "c4b = open('4b.ciphertext').read()" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(('reanimates', ), -911.6411317751041)" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "(key_a_word, key_a_wrap), score = keyword_break_mp(c4a)\n", + "(key_a_word, key_a_wrap), score" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "gharlie, the attaghew note fas ledt in one od my weaw wrops last nibht anw appears to ce drom our mysterious sourge. it gontains tfo really sibnidigant pieges od intellibenge. the dirst is that the rieghswoktor mibht not reder to an inwiviwual adter all. it seems to ce the gowename dor the orbanization runninb the ratlines. aggorwinb to my other sourges this is a gollegtion od routes, abents anw sade houses usew to transport nazi sympathisers anw far griminals out od bermany anw on to south ameriga. fe have knofn that sugh an orbanisation exists singe the enw od the far, cut this is the dirst time i have seen it namew. the other piege od indormation is mugh more suctle. i am cebinninb to fonwer id our sourge is gloser to home than fe haw realisew. anw i am not rederrinb to drangois! see id you gan spot the tfo thinbs i notigew. cy the fay, fho transgricew the rawio intergept you sent me last feek? harry\n", + "\n" + ] + } + ], + "source": [ + "print(keyword_decipher(c4a, key_a_word, wrap_alphabet=key_a_wrap))" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "{'a': 'c',\n", + " 'b': 'o',\n", + " 'c': 'p',\n", + " 'd': 'q',\n", + " 'e': 'b',\n", + " 'f': 'r',\n", + " 'g': 's',\n", + " 'h': 't',\n", + " 'i': 'e',\n", + " 'j': 'u',\n", + " 'k': 'v',\n", + " 'l': 'w',\n", + " 'm': 'f',\n", + " 'n': 'd',\n", + " 'o': 'x',\n", + " 'p': 'y',\n", + " 'q': 'z',\n", + " 'r': 'a',\n", + " 's': 'h',\n", + " 't': 'g',\n", + " 'u': 'i',\n", + " 'v': 'j',\n", + " 'w': 'k',\n", + " 'x': 'l',\n", + " 'y': 'm',\n", + " 'z': 'n'}" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "trans = ''.maketrans(keyword_cipher_alphabet_of(key_a_word, wrap_alphabet=key_a_wrap), string.ascii_lowercase)\n", + "t2 = {chr(c): chr(trans[c]) for c in trans}\n", + "t2" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "[('r', 'a'),\n", + " ('a', 'b'),\n", + " ('t', 'c'),\n", + " ('l', 'd'),\n", + " ('i', 'e'),\n", + " ('n', 'f'),\n", + " ('e', 'g'),\n", + " ('s', 'h'),\n", + " ('u', 'i'),\n", + " ('v', 'j'),\n", + " ('w', 'k'),\n", + " ('x', 'l'),\n", + " ('y', 'm'),\n", + " ('z', 'n'),\n", + " ('b', 'o'),\n", + " ('c', 'p'),\n", + " ('d', 'q'),\n", + " ('f', 'r'),\n", + " ('g', 's'),\n", + " ('h', 't'),\n", + " ('j', 'u'),\n", + " ('k', 'v'),\n", + " ('m', 'w'),\n", + " ('o', 'x'),\n", + " ('p', 'y'),\n", + " ('q', 'z')]" + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "t2['t'] = 'c'\n", + "t2['a'] = 'b'\n", + "t2['e'] = 'g'\n", + "\n", + "t2['l'] = 'd'\n", + "t2['n'] = 'f'\n", + "t2['m'] = 'w'\n", + "\n", + "sorted(((c, t2[c]) for c in t2), key=lambda p: p[1])" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "charlie, the attached note was left in one of my dead drops last night and appears to be from our mysterious source. it contains two really significant pieces of intelligence. the first is that the riechsdoktor might not refer to an individual after all. it seems to be the codename for the organization running the ratlines. according to my other sources this is a collection of routes, agents and safe houses used to transport nazi sympathisers and war criminals out of germany and on to south america. we have known that such an organisation exists since the end of the war, but this is the first time i have seen it named. the other piece of information is much more subtle. i am beginning to wonder if our source is closer to home than we had realised. and i am not referring to francois! see if you can spot the two things i noticed. by the way, who transcribed the radio intercept you sent me last week? harry\n", + "\n" + ] + } + ], + "source": [ + "print(keyword_decipher(c4a, 'ratlines', wrap_alphabet=key_a_wrap))" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(('francois', ), -1082.7018217012803)" + ] + }, + "execution_count": 7, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "(key_b_word, key_b_wrap), score =keyword_break_mp(c4b)\n", + "(key_b_word, key_b_wrap), score" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "the french maybe your allies but they are not your friends they plan to infiltrate the rat i lines and to try to turn the high value targets for themselves they have a particular interest in nazi scientists from the die alchemist en project if you want to break the reichs doktor network before they can do so take care not to share any intelligence with them you have been warned i think it is time to begin negotiations i have a number in mind and i think once you know what i am offering you will find it very reasonable as a sign of good faith ioffer you the following information one of the local rat i line coordinators will be leaving the us sector tomorrow night in a black limousine under the backseat of his car you will find hidden a juniors s officer who is trying to escape and in the trunk you will find a number of papers relating to stolen artworks that he hopes to trade to the french for his freedom you might want to consider carefully whether you can trust your friend charlie with this information after all her husband francois is french\n" + ] + } + ], + "source": [ + "print(' '.join(segment(sanitise(keyword_decipher(c4b, key_b_word, wrap_alphabet=key_b_wrap)))))" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'reanimtsuvwxyzbcdfghjklopq'" + ] + }, + "execution_count": 9, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "keyword_cipher_alphabet_of(key_a_word, wrap_alphabet=key_a_wrap)" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "0 remniatsuvwxyzbcdfghjklopq -1262.9588058797406 hgfaoju, sgu fssfhgux qesu yft ouzs jq equ ez pc xufx xaemt ofts qjigs fqx fmmufat se ru zaep eva pctsuajevt tevahu. js heqsfjqt sye aufooc tjiqjzjhfqs mjuhut ez jqsuoojiuqhu. sgu zjats jt sgfs sgu ajuhgtxelsea pjigs qes auzua se fq jqxjwjxvfo fzsua foo. js tuupt se ru sgu hexuqfpu zea sgu eaifqjdfsjeq avqqjqi sgu afsojqut. fhheaxjqi se pc esgua tevahut sgjt jt f heoouhsjeq ez aevsut, fiuqst fqx tfzu gevtut vtux se safqtmeas qfdj tcpmfsgjtuat fqx yfa hajpjqfot evs ez iuapfqc fqx eq se tevsg fpuajhf. yu gfwu lqeyq sgfs tvhg fq eaifqjtfsjeq ubjtst tjqhu sgu uqx ez sgu yfa, rvs sgjt jt sgu zjats sjpu j gfwu tuuq js qfpux. sgu esgua mjuhu ez jqzeapfsjeq jt pvhg peau tvrsou. j fp ruijqqjqi se yeqxua jz eva tevahu jt hoetua se gepu sgfq yu gfx aufojtux. fqx j fp qes auzuaajqi se zafqhejt! tuu jz cev hfq tmes sgu sye sgjqit j qesjhux. rc sgu yfc, yge safqthajrux sgu afxje jqsuahums cev tuqs pu ofts yuul? gfaac\n", + "\n", + "1 remniatsuvwxyzbcdfghokljpq -1178.441293417976 hgfajou, sgu fssfhgux qesu yft juzs oq equ ez pc xufx xaemt jfts qoigs fqx fmmufat se ru zaep eva pctsuaoevt tevahu. os heqsfoqt sye aufjjc toiqozohfqs mouhut ez oqsujjoiuqhu. sgu zoats ot sgfs sgu aouhgtxelsea poigs qes auzua se fq oqxowoxvfj fzsua fjj. os tuupt se ru sgu hexuqfpu zea sgu eaifqodfsoeq avqqoqi sgu afsjoqut. fhheaxoqi se pc esgua tevahut sgot ot f hejjuhsoeq ez aevsut, fiuqst fqx tfzu gevtut vtux se safqtmeas qfdo tcpmfsgotuat fqx yfa haopoqfjt evs ez iuapfqc fqx eq se tevsg fpuaohf. yu gfwu lqeyq sgfs tvhg fq eaifqotfsoeq ubotst toqhu sgu uqx ez sgu yfa, rvs sgot ot sgu zoats sopu o gfwu tuuq os qfpux. sgu esgua mouhu ez oqzeapfsoeq ot pvhg peau tvrsju. o fp ruioqqoqi se yeqxua oz eva tevahu ot hjetua se gepu sgfq yu gfx aufjotux. fqx o fp qes auzuaaoqi se zafqheot! tuu oz cev hfq tmes sgu sye sgoqit o qesohux. rc sgu yfc, yge safqthaorux sgu afxoe oqsuahums cev tuqs pu jfts yuul? gfaac\n", + "\n", + "2 cemniatsuvwxyzbrdfghokljpq -1176.749704780956 hgfajou, sgu fssfhgux qesu yft juzs oq equ ez pr xufx xaemt jfts qoigs fqx fmmufat se cu zaep eva prtsuaoevt tevahu. os heqsfoqt sye aufjjr toiqozohfqs mouhut ez oqsujjoiuqhu. sgu zoats ot sgfs sgu aouhgtxelsea poigs qes auzua se fq oqxowoxvfj fzsua fjj. os tuupt se cu sgu hexuqfpu zea sgu eaifqodfsoeq avqqoqi sgu afsjoqut. fhheaxoqi se pr esgua tevahut sgot ot f hejjuhsoeq ez aevsut, fiuqst fqx tfzu gevtut vtux se safqtmeas qfdo trpmfsgotuat fqx yfa haopoqfjt evs ez iuapfqr fqx eq se tevsg fpuaohf. yu gfwu lqeyq sgfs tvhg fq eaifqotfsoeq ubotst toqhu sgu uqx ez sgu yfa, cvs sgot ot sgu zoats sopu o gfwu tuuq os qfpux. sgu esgua mouhu ez oqzeapfsoeq ot pvhg peau tvcsju. o fp cuioqqoqi se yeqxua oz eva tevahu ot hjetua se gepu sgfq yu gfx aufjotux. fqx o fp qes auzuaaoqi se zafqheot! tuu oz rev hfq tmes sgu sye sgoqit o qesohux. cr sgu yfr, yge safqthaocux sgu afxoe oqsuahums rev tuqs pu jfts yuul? gfaar\n", + "\n", + "3 vemniatsucwxyzbrdfghokljpq -1172.734320973362 hgfajou, sgu fssfhgux qesu yft juzs oq equ ez pr xufx xaemt jfts qoigs fqx fmmufat se vu zaep eca prtsuaoect tecahu. os heqsfoqt sye aufjjr toiqozohfqs mouhut ez oqsujjoiuqhu. sgu zoats ot sgfs sgu aouhgtxelsea poigs qes auzua se fq oqxowoxcfj fzsua fjj. os tuupt se vu sgu hexuqfpu zea sgu eaifqodfsoeq acqqoqi sgu afsjoqut. fhheaxoqi se pr esgua tecahut sgot ot f hejjuhsoeq ez aecsut, fiuqst fqx tfzu gectut ctux se safqtmeas qfdo trpmfsgotuat fqx yfa haopoqfjt ecs ez iuapfqr fqx eq se tecsg fpuaohf. yu gfwu lqeyq sgfs tchg fq eaifqotfsoeq ubotst toqhu sgu uqx ez sgu yfa, vcs sgot ot sgu zoats sopu o gfwu tuuq os qfpux. sgu esgua mouhu ez oqzeapfsoeq ot pchg peau tcvsju. o fp vuioqqoqi se yeqxua oz eca tecahu ot hjetua se gepu sgfq yu gfx aufjotux. fqx o fp qes auzuaaoqi se zafqheot! tuu oz rec hfq tmes sgu sye sgoqit o qesohux. vr sgu yfr, yge safqthaovux sgu afxoe oqsuahums rec tuqs pu jfts yuul? gfaar\n", + "\n", + "10 vfmniatsulxpyzcrdbgqokejwh -1138.6987012040154 qgbajou, sgu bssbqgup hfsu ybt juzs oh fhu fz wr pubp pafmt jbts hoigs bhp bmmubat sf vu zafw fla wrtsuaoflt tflaqu. os qfhsboht syf aubjjr toihozoqbhs mouqut fz ohsujjoiuhqu. sgu zoats ot sgbs sgu aouqgtpfesfa woigs hfs auzua sf bh ohpoxoplbj bzsua bjj. os tuuwt sf vu sgu qfpuhbwu zfa sgu faibhodbsofh alhhohi sgu absjohut. bqqfapohi sf wr fsgua tflaqut sgot ot b qfjjuqsofh fz aflsut, biuhst bhp tbzu gfltut ltup sf sabhtmfas hbdo trwmbsgotuat bhp yba qaowohbjt fls fz iuawbhr bhp fh sf tflsg bwuaoqb. yu gbxu ehfyh sgbs tlqg bh faibhotbsofh ucotst tohqu sgu uhp fz sgu yba, vls sgot ot sgu zoats sowu o gbxu tuuh os hbwup. sgu fsgua mouqu fz ohzfawbsofh ot wlqg wfau tlvsju. o bw vuiohhohi sf yfhpua oz fla tflaqu ot qjftua sf gfwu sgbh yu gbp aubjotup. bhp o bw hfs auzuaaohi sf zabhqfot! tuu oz rfl qbh tmfs sgu syf sgohit o hfsoqup. vr sgu ybr, ygf sabhtqaovup sgu abpof ohsuaqums rfl tuhs wu jbts yuue? gbaar\n", + "\n", + "20 vfyniadsgkxpwzmcqhutolejrb -1125.2537605606442 tuhajog, sug hsshtugp bfsg whd jgzs ob fbg fz rc pghp pafyd jhds boius hbp hyyghad sf vg zafr fka rcdsgaofkd dfkatg. os tfbshobd swf aghjjc doibozothbs yogtgd fz obsgjjoigbtg. sug zoads od suhs sug aogtudpfesfa roius bfs agzga sf hb obpoxopkhj hzsga hjj. os dggrd sf vg sug tfpgbhrg zfa sug faihboqhsofb akbbobi sug ahsjobgd. httfapobi sf rc fsuga dfkatgd suod od h tfjjgtsofb fz afksgd, higbsd hbp dhzg ufkdgd kdgp sf sahbdyfas bhqo dcryhsuodgad hbp wha taorobhjd fks fz igarhbc hbp fb sf dfksu hrgaoth. wg uhxg ebfwb suhs dktu hb faihbodhsofb gmodsd dobtg sug gbp fz sug wha, vks suod od sug zoads sorg o uhxg dggb os bhrgp. sug fsuga yogtg fz obzfarhsofb od rktu rfag dkvsjg. o hr vgiobbobi sf wfbpga oz fka dfkatg od tjfdga sf ufrg suhb wg uhp aghjodgp. hbp o hr bfs agzgaaobi sf zahbtfod! dgg oz cfk thb dyfs sug swf suobid o bfsotgp. vc sug whc, wuf sahbdtaovgp sug ahpof obsgatgys cfk dgbs rg jhds wgge? uhaac\n", + "\n", + "41 cfjowbdsexuikqmryngtalpzhv -1124.2920779257197 tgnbzae, sge nssntgei vfse knd zeqs av fve fq hr ieni ibfjd znds vawgs nvi njjenbd sf ce qbfh fxb hrdsebafxd dfxbte. as tfvsnavd skf benzzr dawvaqatnvs jaeted fq avsezzawevte. sge qabds ad sgns sge baetgdifpsfb hawgs vfs beqeb sf nv aviauaixnz nqseb nzz. as deehd sf ce sge tfievnhe qfb sge fbwnvaynsafv bxvvavw sge bnszaved. nttfbiavw sf hr fsgeb dfxbted sgad ad n tfzzetsafv fq bfxsed, nwevsd nvi dnqe gfxded xdei sf sbnvdjfbs vnya drhjnsgadebd nvi knb tbahavnzd fxs fq webhnvr nvi fv sf dfxsg nhebatn. ke gnue pvfkv sgns dxtg nv fbwnvadnsafv emadsd davte sge evi fq sge knb, cxs sgad ad sge qabds sahe a gnue deev as vnhei. sge fsgeb jaete fq avqfbhnsafv ad hxtg hfbe dxcsze. a nh cewavvavw sf kfvieb aq fxb dfxbte ad tzfdeb sf gfhe sgnv ke gni benzadei. nvi a nh vfs beqebbavw sf qbnvtfad! dee aq rfx tnv djfs sge skf sgavwd a vfsatei. cr sge knr, kgf sbnvdtbacei sge bniaf avsebtejs rfx devs he znds keep? gnbbr\n", + "\n", + "42 cfjzwbdsexuikqmryngtalpohv -1085.6036078813306 tgnboae, sge nssntgei vfse knd oeqs av fve fq hr ieni ibfjd onds vawgs nvi njjenbd sf ce qbfh fxb hrdsebafxd dfxbte. as tfvsnavd skf benoor dawvaqatnvs jaeted fq avseooawevte. sge qabds ad sgns sge baetgdifpsfb hawgs vfs beqeb sf nv aviauaixno nqseb noo. as deehd sf ce sge tfievnhe qfb sge fbwnvaynsafv bxvvavw sge bnsoaved. nttfbiavw sf hr fsgeb dfxbted sgad ad n tfooetsafv fq bfxsed, nwevsd nvi dnqe gfxded xdei sf sbnvdjfbs vnya drhjnsgadebd nvi knb tbahavnod fxs fq webhnvr nvi fv sf dfxsg nhebatn. ke gnue pvfkv sgns dxtg nv fbwnvadnsafv emadsd davte sge evi fq sge knb, cxs sgad ad sge qabds sahe a gnue deev as vnhei. sge fsgeb jaete fq avqfbhnsafv ad hxtg hfbe dxcsoe. a nh cewavvavw sf kfvieb aq fxb dfxbte ad tofdeb sf gfhe sgnv ke gni benoadei. nvi a nh vfs beqebbavw sf qbnvtfad! dee aq rfx tnv djfs sge skf sgavwd a vfsatei. cr sge knr, kgf sbnvdtbacei sge bniaf avsebtejs rfx devs he onds keep? gnbbr\n", + "\n", + "45 bvjzycdsexuikqmrwngtalpohf -1079.7756157738888 tgncoae, sge nssntgei fvse knd oeqs af vfe vq hr ieni icvjd onds faygs nfi njjencd sv be qcvh vxc hrdsecavxd dvxcte. as tvfsnafd skv cenoor dayfaqatnfs jaeted vq afseooayefte. sge qacds ad sgns sge caetgdivpsvc haygs fvs ceqec sv nf afiauaixno nqsec noo. as deehd sv be sge tviefnhe qvc sge vcynfawnsavf cxffafy sge cnsoafed. nttvciafy sv hr vsgec dvxcted sgad ad n tvooetsavf vq cvxsed, nyefsd nfi dnqe gvxded xdei sv scnfdjvcs fnwa drhjnsgadecd nfi knc tcahafnod vxs vq yechnfr nfi vf sv dvxsg nhecatn. ke gnue pfvkf sgns dxtg nf vcynfadnsavf emadsd dafte sge efi vq sge knc, bxs sgad ad sge qacds sahe a gnue deef as fnhei. sge vsgec jaete vq afqvchnsavf ad hxtg hvce dxbsoe. a nh beyaffafy sv kvfiec aq vxc dvxcte ad tovdec sv gvhe sgnf ke gni cenoadei. nfi a nh fvs ceqeccafy sv qcnftvad! dee aq rvx tnf djvs sge skv sgafyd a fvsatei. br sge knr, kgv scnfdtcabei sge cniav afsectejs rvx defs he onds keep? gnccr\n", + "\n", + "47 bvjzycdtexpikqmrwngsaluohf -1072.6883675689066 sgncoae, tge nttnsgei fvte knd oeqt af vfe vq hr ieni icvjd ondt faygt nfi njjencd tv be qcvh vxc hrdtecavxd dvxcse. at svftnafd tkv cenoor dayfaqasnft jaesed vq afteooayefse. tge qacdt ad tgnt tge caesgdivutvc haygt fvt ceqec tv nf afiapaixno nqtec noo. at deehd tv be tge sviefnhe qvc tge vcynfawntavf cxffafy tge cntoafed. nssvciafy tv hr vtgec dvxcsed tgad ad n svooestavf vq cvxted, nyeftd nfi dnqe gvxded xdei tv tcnfdjvct fnwa drhjntgadecd nfi knc scahafnod vxt vq yechnfr nfi vf tv dvxtg nhecasn. ke gnpe ufvkf tgnt dxsg nf vcynfadntavf emadtd dafse tge efi vq tge knc, bxt tgad ad tge qacdt tahe a gnpe deef at fnhei. tge vtgec jaese vq afqvchntavf ad hxsg hvce dxbtoe. a nh beyaffafy tv kvfiec aq vxc dvxcse ad sovdec tv gvhe tgnf ke gni cenoadei. nfi a nh fvt ceqeccafy tv qcnfsvad! dee aq rvx snf djvt tge tkv tgafyd a fvtasei. br tge knr, kgv tcnfdscabei tge cniav aftecsejt rvx deft he ondt keeu? gnccr\n", + "\n", + "50 brjzkcdtespiyqmvwngxaluohf -1048.0345619644993 xgncoae, tge nttnxgei frte ynd oeqt af rfe rq hv ieni icrjd ondt fakgt nfi njjencd tr be qcrh rsc hvdtecarsd drscxe. at xrftnafd tyr cenoov dakfaqaxnft jaexed rq afteooakefxe. tge qacdt ad tgnt tge caexgdirutrc hakgt frt ceqec tr nf afiapaisno nqtec noo. at deehd tr be tge xriefnhe qrc tge rcknfawntarf csffafk tge cntoafed. nxxrciafk tr hv rtgec drscxed tgad ad n xrooextarf rq crsted, nkeftd nfi dnqe grsded sdei tr tcnfdjrct fnwa dvhjntgadecd nfi ync xcahafnod rst rq kechnfv nfi rf tr drstg nhecaxn. ye gnpe ufryf tgnt dsxg nf rcknfadntarf emadtd dafxe tge efi rq tge ync, bst tgad ad tge qacdt tahe a gnpe deef at fnhei. tge rtgec jaexe rq afqrchntarf ad hsxg hrce dsbtoe. a nh bekaffafk tr yrfiec aq rsc drscxe ad xordec tr grhe tgnf ye gni cenoadei. nfi a nh frt ceqeccafk tr qcnfxrad! dee aq vrs xnf djrt tge tyr tgafkd a frtaxei. bv tge ynv, ygr tcnfdxcabei tge cniar aftecxejt vrs deft he ondt yeeu? gnccv\n", + "\n", + "52 vrjzkcdtespiyqmbwngxaluohf -1047.4217167696756 xgncoae, tge nttnxgei frte ynd oeqt af rfe rq hb ieni icrjd ondt fakgt nfi njjencd tr ve qcrh rsc hbdtecarsd drscxe. at xrftnafd tyr cenoob dakfaqaxnft jaexed rq afteooakefxe. tge qacdt ad tgnt tge caexgdirutrc hakgt frt ceqec tr nf afiapaisno nqtec noo. at deehd tr ve tge xriefnhe qrc tge rcknfawntarf csffafk tge cntoafed. nxxrciafk tr hb rtgec drscxed tgad ad n xrooextarf rq crsted, nkeftd nfi dnqe grsded sdei tr tcnfdjrct fnwa dbhjntgadecd nfi ync xcahafnod rst rq kechnfb nfi rf tr drstg nhecaxn. ye gnpe ufryf tgnt dsxg nf rcknfadntarf emadtd dafxe tge efi rq tge ync, vst tgad ad tge qacdt tahe a gnpe deef at fnhei. tge rtgec jaexe rq afqrchntarf ad hsxg hrce dsvtoe. a nh vekaffafk tr yrfiec aq rsc drscxe ad xordec tr grhe tgnf ye gni cenoadei. nfi a nh frt ceqeccafk tr qcnfxrad! dee aq brs xnf djrt tge tyr tgafkd a frtaxei. vb tge ynb, ygr tcnfdxcavei tge cniar aftecxejt brs deft he ondt yeeu? gnccb\n", + "\n", + "53 vrjzkcdtespiyqwbmngxaluohf -1047.3736493946644 xgncoae, tge nttnxgei frte ynd oeqt af rfe rq hb ieni icrjd ondt fakgt nfi njjencd tr ve qcrh rsc hbdtecarsd drscxe. at xrftnafd tyr cenoob dakfaqaxnft jaexed rq afteooakefxe. tge qacdt ad tgnt tge caexgdirutrc hakgt frt ceqec tr nf afiapaisno nqtec noo. at deehd tr ve tge xriefnhe qrc tge rcknfamntarf csffafk tge cntoafed. nxxrciafk tr hb rtgec drscxed tgad ad n xrooextarf rq crsted, nkeftd nfi dnqe grsded sdei tr tcnfdjrct fnma dbhjntgadecd nfi ync xcahafnod rst rq kechnfb nfi rf tr drstg nhecaxn. ye gnpe ufryf tgnt dsxg nf rcknfadntarf ewadtd dafxe tge efi rq tge ync, vst tgad ad tge qacdt tahe a gnpe deef at fnhei. tge rtgec jaexe rq afqrchntarf ad hsxg hrce dsvtoe. a nh vekaffafk tr yrfiec aq rsc drscxe ad xordec tr grhe tgnf ye gni cenoadei. nfi a nh frt ceqeccafk tr qcnfxrad! dee aq brs xnf djrt tge tyr tgafkd a frtaxei. vb tge ynb, ygr tcnfdxcavei tge cniar aftecxejt brs deft he ondt yeeu? gnccb\n", + "\n", + "56 zrjvkcdtespihqwbmngualxoyf -1026.091865606169 ugncoae, tge nttnugei frte hnd oeqt af rfe rq yb ieni icrjd ondt fakgt nfi njjencd tr ze qcry rsc ybdtecarsd drscue. at urftnafd thr cenoob dakfaqaunft jaeued rq afteooakefue. tge qacdt ad tgnt tge caeugdirxtrc yakgt frt ceqec tr nf afiapaisno nqtec noo. at deeyd tr ze tge uriefnye qrc tge rcknfamntarf csffafk tge cntoafed. nuurciafk tr yb rtgec drscued tgad ad n urooeutarf rq crsted, nkeftd nfi dnqe grsded sdei tr tcnfdjrct fnma dbyjntgadecd nfi hnc ucayafnod rst rq kecynfb nfi rf tr drstg nyecaun. he gnpe xfrhf tgnt dsug nf rcknfadntarf ewadtd dafue tge efi rq tge hnc, zst tgad ad tge qacdt taye a gnpe deef at fnyei. tge rtgec jaeue rq afqrcyntarf ad ysug yrce dsztoe. a ny zekaffafk tr hrfiec aq rsc drscue ad uordec tr grye tgnf he gni cenoadei. nfi a ny frt ceqeccafk tr qcnfurad! dee aq brs unf djrt tge thr tgafkd a frtauei. zb tge hnb, hgr tcnfducazei tge cniar aftecuejt brs deft ye ondt heex? gnccb\n", + "\n", + "59 zrjvkcatedpihqwbxnguslmoyf -1019.2155510698342 ugncose, tge nttnugei frte hna oeqt sf rfe rq yb ieni icrja onat fskgt nfi njjenca tr ze qcry rdc ybatecsrda ardcue. st urftnsfa thr cenoob askfsqsunft jseuea rq sfteooskefue. tge qscat sa tgnt tge cseugairmtrc yskgt frt ceqec tr nf sfispsidno nqtec noo. st aeeya tr ze tge uriefnye qrc tge rcknfsxntsrf cdffsfk tge cntosfea. nuurcisfk tr yb rtgec ardcuea tgsa sa n urooeutsrf rq crdtea, nkefta nfi anqe grdaea daei tr tcnfajrct fnxs abyjntgsaeca nfi hnc ucsysfnoa rdt rq kecynfb nfi rf tr ardtg nyecsun. he gnpe mfrhf tgnt adug nf rcknfsantsrf ewsata asfue tge efi rq tge hnc, zdt tgsa sa tge qscat tsye s gnpe aeef st fnyei. tge rtgec jseue rq sfqrcyntsrf sa ydug yrce adztoe. s ny zeksffsfk tr hrfiec sq rdc ardcue sa uoraec tr grye tgnf he gni cenosaei. nfi s ny frt ceqeccsfk tr qcnfursa! aee sq brd unf ajrt tge thr tgsfka s frtsuei. zb tge hnb, hgr tcnfaucszei tge cnisr sftecuejt brd aeft ye onat heem? gnccb\n", + "\n", + "63 zelvkcatrdpmhjwbxngusqioyf -1017.7604294276406 ugncosr, tgr nttnugrm fetr hna orjt sf efr ej yb mrnm mcela onat fskgt nfm nllrnca te zr jcey edc ybatrcseda aedcur. st ueftnsfa the crnoob askfsjsunft lsrura ej sftrooskrfur. tgr jscat sa tgnt tgr csrugameitec yskgt fet crjrc te nf sfmspsmdno njtrc noo. st arrya te zr tgr uemrfnyr jec tgr ecknfsxntsef cdffsfk tgr cntosfra. nuuecmsfk te yb etgrc aedcura tgsa sa n ueoorutsef ej cedtra, nkrfta nfm anjr gedara darm te tcnfalect fnxs abylntgsarca nfm hnc ucsysfnoa edt ej krcynfb nfm ef te aedtg nyrcsun. hr gnpr ifehf tgnt adug nf ecknfsantsef rwsata asfur tgr rfm ej tgr hnc, zdt tgsa sa tgr jscat tsyr s gnpr arrf st fnyrm. tgr etgrc lsrur ej sfjecyntsef sa ydug yecr adztor. s ny zrksffsfk te hefmrc sj edc aedcur sa uoearc te geyr tgnf hr gnm crnosarm. nfm s ny fet crjrccsfk te jcnfuesa! arr sj bed unf alet tgr the tgsfka s fetsurm. zb tgr hnb, hge tcnfaucszrm tgr cnmse sftrcurlt bed arft yr onat hrri? gnccb\n", + "\n", + "401 ytmpcnrhakvslzdfqigeoxwbju -1014.7565957992581 eginboa, hga ihhiegas utha lir bazh ou tua tz jf sais sntmr birh uocgh ius immainr ht ya zntj tkn jfrhanotkr rtknea. oh etuhiour hlt naibbf rocuozoeiuh moaear tz ouhabbocauea. hga zonrh or hgih hga noaegrstwhtn jocgh uth nazan ht iu ousovoskib izhan ibb. oh raajr ht ya hga etsauija ztn hga tnciuoqihotu nkuuouc hga nihbouar. ieetnsouc ht jf thgan rtknear hgor or i etbbaehotu tz ntkhar, icauhr ius riza gtkrar kras ht hniurmtnh uiqo rfjmihgoranr ius lin enojouibr tkh tz canjiuf ius tu ht rtkhg ijanoei. la giva wutlu hgih rkeg iu tnciuorihotu adorhr rouea hga aus tz hga lin, ykh hgor or hga zonrh hoja o giva raau oh uijas. hga thgan moaea tz ouztnjihotu or jkeg jtna rkyhba. o ij yacouuouc ht ltusan oz tkn rtknea or ebtran ht gtja hgiu la gis naiboras. ius o ij uth nazannouc ht zniuetor! raa oz ftk eiu rmth hga hlt hgoucr o uthoeas. yf hga lif, lgt hniurenoyas hga nisot ouhaneamh ftk rauh ja birh laaw? ginnf\n", + "\n", + "11879 jtlqogfshdxnbrcwzeamupkvyi -991.2276834904978 maegvuh, sah essemahn itsh bef vhrs ui tih tr yw nhen ngtlf vefs iuoas ein ellhegf st jh rgty tdg ywfshgutdf ftdgmh. us mtiseuif sbt ghevvw fuoiurumeis luhmhf tr uishvvuohimh. sah rugfs uf saes sah guhmafntkstg yuoas its ghrhg st ei uinuxundev ershg evv. us fhhyf st jh sah mtnhieyh rtg sah tgoeiuzesuti gdiiuio sah gesvuihf. emmtgnuio st yw tsahg ftdgmhf sauf uf e mtvvhmsuti tr gtdshf, eohisf ein ferh atdfhf dfhn st sgeifltgs iezu fwylesaufhgf ein beg mguyuievf tds tr ohgyeiw ein ti st ftdsa eyhgume. bh aexh kitbi saes fdma ei tgoeiufesuti hcufsf fuimh sah hin tr sah beg, jds sauf uf sah rugfs suyh u aexh fhhi us ieyhn. sah tsahg luhmh tr uirtgyesuti uf ydma ytgh fdjsvh. u ey jhouiiuio st btinhg ur tdg ftdgmh uf mvtfhg st atyh saei bh aen ghevufhn. ein u ey its ghrhgguio st rgeimtuf! fhh ur wtd mei flts sah sbt sauiof u itsumhn. jw sah bew, bat sgeifmgujhn sah genut uishgmhls wtd fhis yh vefs bhhk? aeggw\n", + "\n", + "11882 jtlqigfshdknbrcmzeawupxvyo -988.5494150402712 waegvuh, sah essewahn otsh bef vhrs uo toh tr ym nhen ngtlf vefs ouias eon ellhegf st jh rgty tdg ymfshgutdf ftdgwh. us wtoseuof sbt ghevvm fuiouruweos luhwhf tr uoshvvuihowh. sah rugfs uf saes sah guhwafntxstg yuias ots ghrhg st eo uonukundev ershg evv. us fhhyf st jh sah wtnhoeyh rtg sah tgieouzesuto gdoouoi sah gesvuohf. ewwtgnuoi st ym tsahg ftdgwhf sauf uf e wtvvhwsuto tr gtdshf, eihosf eon ferh atdfhf dfhn st sgeofltgs oezu fmylesaufhgf eon beg wguyuoevf tds tr ihgyeom eon to st ftdsa eyhguwe. bh aekh xotbo saes fdwa eo tgieoufesuto hcufsf fuowh sah hon tr sah beg, jds sauf uf sah rugfs suyh u aekh fhho us oeyhn. sah tsahg luhwh tr uortgyesuto uf ydwa ytgh fdjsvh. u ey jhiuoouoi st btonhg ur tdg ftdgwh uf wvtfhg st atyh saeo bh aen ghevufhn. eon u ey ots ghrhgguoi st rgeowtuf! fhh ur mtd weo flts sah sbt sauoif u otsuwhn. jm sah bem, bat sgeofwgujhn sah genut uoshgwhls mtd fhos yh vefs bhhx? aeggm\n", + "\n", + "38275 ylupsroeakjbiwgxzdmchqftvn -978.2449056535245 cmdrtha, ema deedcmab nlea ido tawe hn lna lw vx badb brluo tdoe nhsme dnb duuadro el ya wrlv lkr vxoearhlko olkrca. he clnedhno eil radttx ohsnhwhcdne uhacao lw hneatthsanca. ema whroe ho emde ema rhacmoblfelr vhsme nle rawar el dn hnbhjhbkdt dwear dtt. he oaavo el ya ema clbandva wlr ema lrsdnhzdehln rknnhns ema rdethnao. dcclrbhns el vx lemar olkrcao emho ho d clttacehln lw rlkeao, dsaneo dnb odwa mlkoao koab el erdnoulre ndzh oxvudemhoaro dnb idr crhvhndto lke lw sarvdnx dnb ln el olkem dvarhcd. ia mdja fnlin emde okcm dn lrsdnhodehln aghoeo ohnca ema anb lw ema idr, yke emho ho ema whroe ehva h mdja oaan he ndvab. ema lemar uhaca lw hnwlrvdehln ho vkcm vlra okyeta. h dv yashnnhns el ilnbar hw lkr olkrca ho ctloar el mlva emdn ia mdb radthoab. dnb h dv nle rawarrhns el wrdnclho! oaa hw xlk cdn oule ema eil emhnso h nlehcab. yx ema idx, iml erdnocrhyab ema rdbhl hnearcaue xlk oane va tdoe iaaf? mdrrx\n", + "\n", + "38276 yluvsroeakjbiwgxzdmchqftpn -974.4830434072574 cmdrtha, ema deedcmab nlea ido tawe hn lna lw px badb brluo tdoe nhsme dnb duuadro el ya wrlp lkr pxoearhlko olkrca. he clnedhno eil radttx ohsnhwhcdne uhacao lw hneatthsanca. ema whroe ho emde ema rhacmoblfelr phsme nle rawar el dn hnbhjhbkdt dwear dtt. he oaapo el ya ema clbandpa wlr ema lrsdnhzdehln rknnhns ema rdethnao. dcclrbhns el px lemar olkrcao emho ho d clttacehln lw rlkeao, dsaneo dnb odwa mlkoao koab el erdnoulre ndzh oxpudemhoaro dnb idr crhphndto lke lw sarpdnx dnb ln el olkem dparhcd. ia mdja fnlin emde okcm dn lrsdnhodehln aghoeo ohnca ema anb lw ema idr, yke emho ho ema whroe ehpa h mdja oaan he ndpab. ema lemar uhaca lw hnwlrpdehln ho pkcm plra okyeta. h dp yashnnhns el ilnbar hw lkr olkrca ho ctloar el mlpa emdn ia mdb radthoab. dnb h dp nle rawarrhns el wrdnclho! oaa hw xlk cdn oule ema eil emhnso h nlehcab. yx ema idx, iml erdnocrhyab ema rdbhl hnearcaue xlk oane pa tdoe iaaf? mdrrx\n", + "\n", + "78883 beuzxnalopgyivqkwtrchjfmds -957.1987270553409 crtnmho, lro tlltcroy selo ita movl hs eso ev dk yoty yneua mtal shxrl tsy tuuotna le bo vned epn dkalonhepa aepnco. hl ceslthsa lie notmmk ahxshvhctsl uhocoa ev hslommhxosco. lro vhnal ha lrtl lro nhocrayeflen dhxrl sel novon le ts hsyhghyptm tvlon tmm. hl aooda le bo lro ceyostdo ven lro enxtshwtlhes npsshsx lro ntlmhsoa. tccenyhsx le dk elron aepncoa lrha ha t cemmoclhes ev neploa, txosla tsy atvo repaoa paoy le lntsauenl stwh akdutlrhaona tsy itn cnhdhstma epl ev xondtsk tsy es le aeplr tdonhct. io rtgo fseis lrtl apcr ts enxtshatlhes oqhala ahsco lro osy ev lro itn, bpl lrha ha lro vhnal lhdo h rtgo aoos hl stdoy. lro elron uhoco ev hsvendtlhes ha dpcr deno apblmo. h td boxhsshsx le iesyon hv epn aepnco ha cmeaon le redo lrts io rty notmhaoy. tsy h td sel novonnhsx le vntsceha! aoo hv kep cts auel lro lie lrhsxa h selhcoy. bk lro itk, ire lntsacnhboy lro ntyhe hsloncoul kep aosl do mtal ioof? rtnnk\n", + "\n", + "465709 dojzgtrasuqvmlypbeifhxkwcn -941.3015373634643 fietwhs, ais eaaefisv noas mer wsla hn ons ol cp vsev vtojr wera nhgia env ejjsetr ao ds ltoc out cprasthour routfs. ha fonaehnr amo tsewwp rhgnhlhfena jhsfsr ol hnaswwhgsnfs. ais lhtra hr aiea ais thsfirvokaot chgia noa tslst ao en hnvhqhvuew elast eww. ha rsscr ao ds ais fovsnecs lot ais otgenhbeahon tunnhng ais teawhnsr. effotvhng ao cp oaist routfsr aihr hr e fowwsfahon ol touasr, egsnar env rels ioursr ursv ao atenrjota nebh rpcjeaihrstr env met fthchnewr oua ol gstcenp env on ao rouai ecsthfe. ms ieqs knomn aiea rufi en otgenhreahon syhrar rhnfs ais snv ol ais met, dua aihr hr ais lhtra ahcs h ieqs rssn ha necsv. ais oaist jhsfs ol hnlotceahon hr cufi cots rudaws. h ec dsghnnhng ao monvst hl out routfs hr fworst ao iocs aien ms iev tsewhrsv. env h ec noa tslstthng ao ltenfohr! rss hl pou fen rjoa ais amo aihngr h noahfsv. dp ais mep, mio atenrfthdsv ais tevho hnastfsja pou rsna cs wera mssk? iettp\n", + "\n", + "1750157 qhyxutaieljkvwzdmsofrpbgcn -941.2815644870221 fostgre, ioe siisfoek nhie vsa gewi rn hne hw cd kesk kthya gsai nruoi snk syyesta ih qe wthc hlt cdaietrhla ahltfe. ri fhnisrna ivh tesggd arunrwrfsni yrefea hw rnieggruenfe. ioe wrtai ra iosi ioe trefoakhbiht cruoi nhi tewet ih sn rnkrjrklsg swiet sgg. ri aeeca ih qe ioe fhkensce wht ioe htusnrmsirhn tlnnrnu ioe tsigrnea. sffhtkrnu ih cd hioet ahltfea iora ra s fhggefirhn hw thliea, suenia snk aswe ohlaea laek ih itsnayhti nsmr adcysioraeta snk vst ftrcrnsga hli hw uetcsnd snk hn ih ahlio scetrfs. ve osje bnhvn iosi alfo sn htusnrasirhn ezraia arnfe ioe enk hw ioe vst, qli iora ra ioe wrtai irce r osje aeen ri nscek. ioe hioet yrefe hw rnwhtcsirhn ra clfo chte alqige. r sc qeurnnrnu ih vhnket rw hlt ahltfe ra fghaet ih ohce iosn ve osk tesgraek. snk r sc nhi tewettrnu ih wtsnfhra! aee rw dhl fsn ayhi ioe ivh iornua r nhirfek. qd ioe vsd, voh itsnaftrqek ioe tskrh rnietfeyi dhl aeni ce gsai veeb? osttd\n", + "\n" + ] + }, + { + "data": { + "text/plain": [ + "('qhyxutaieljkvwzdmsofrpbgcn', -941.2815644870221)" + ] + }, + "execution_count": 11, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "monoalphabetic_break_hillclimbing(c4a, alphabet=keyword_cipher_alphabet_of(key_a_word, wrap_alphabet=key_a_wrap))" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.4.3" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/2015/2015-challenge5.ipynb b/2015/2015-challenge5.ipynb new file mode 100644 index 0000000..7b963ff --- /dev/null +++ b/2015/2015-challenge5.ipynb @@ -0,0 +1,149 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import os,sys,inspect\n", + "currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))\n", + "parentdir = os.path.dirname(currentdir)\n", + "sys.path.insert(0,parentdir) \n", + "\n", + "import matplotlib.pyplot as plt\n", + "%matplotlib inline\n", + "\n", + "from cipherbreak import *\n", + "\n", + "c5a = open('5a.ciphertext').read()\n", + "c5b = open('5b.ciphertext').read()" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(('cornfield', ), -1557.5551917175146)" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "(key_a_word, key_a_wrap), score = keyword_break_mp(c5a)\n", + "(key_a_word, key_a_wrap), score" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "harry, i checked out who transcribed the radio transmission like you asked. it was a junior cipher clerk in room 5. i would have offered to set up a meeting with her, but she has disappeared and hasn’t been seen since last friday. the marines saw her leave at her usual time, and she was booked out for some leave on monday and tuesday so no one noticed she was missing until today. we sent an officer out to her usual haunts and i will get back to you if we find anything. what made you ask? did you have a reason to believe she was involved in something? \n", + "\n", + "i took another look at the messages. were you referring to the typos? the word ratlines keeps being spelt as ratilines. is that important? what did you mean about our source being close to home? \n", + "\n", + "also did some digging about the reichsdoktor. seems you were right and it refers to an underground nazi organisation dedicated to rebuilding the reich. maybe they think of it as healing? a bunch of rich nazi sympathisers took over the ratlines from a group of ss officers who set them up at the tail of the war and have been active in shipping scientists, engineers and soldiers to towns across south america. if our source has inside information then maybe we could intercept the lines and pick up some of the high value targets the french are after. what was “die alchemisten project”? \n", + "\n", + "the enclosed message was handed to the marines, but they didn’t get a name. initial analysis shows it must be a vigenere cipher with period two so it should be reasonably straightforward to crack. \n", + "\n", + "all the best, charlie \n", + "\n" + ] + } + ], + "source": [ + "print(keyword_decipher(c5a, key_a_word, wrap_alphabet=key_a_wrap))" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "('de', -885.6842458313828)" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "key_b, score = vigenere_frequency_break(c5b, max_key_length=2)\n", + "key_b, score" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "the first item in our little auction will be the location of a safehouse in the uk sector of berlin it is a minor stopover on the rat lines but you never know you might get lucky and find someone interesting hiding there at the very least you will inconvenience the reichs doktor if you take possession of it how much would that be worth to you do i hear a bid of five hundred thousand francs from our french friends perhaps the british would pay more or maybe they can not afford to i wonder how they feel about that perhaps you should ask them if you want to outbid your so called friends then leave the money in unmarked treasury bills in locker at the far end of the platform in friedrichstrasse i will leave the details in locker you will find the key in do not try to double cross me it will not work and our little game will end before it has even properly begun\n" + ] + } + ], + "source": [ + "print(' '.join(segment(sanitise(vigenere_decipher(sanitise(c5b), key_b)))))" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.4.3" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/2015/2015-challenge6.ipynb b/2015/2015-challenge6.ipynb new file mode 100644 index 0000000..e01a50c --- /dev/null +++ b/2015/2015-challenge6.ipynb @@ -0,0 +1,275 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import os,sys,inspect\n", + "currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))\n", + "parentdir = os.path.dirname(currentdir)\n", + "sys.path.insert(0,parentdir) \n", + "\n", + "import matplotlib.pyplot as plt\n", + "%matplotlib inline\n", + "\n", + "from cipherbreak import *\n", + "\n", + "c6a = sanitise(open('6a.ciphertext').read())\n", + "c6b = sanitise(open('6b.ciphertext').read())" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(('hammering', ), -2247.716859509375)" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "(key_a_word, key_a_wrap), score = keyword_break_mp(c6a)\n", + "(key_a_word, key_a_wrap), score" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "freslitiacehartaypoinseailinthareagevtiaeceyiaepptestwboarinartayptwmthhegthctpifktwupenwinartasenhfsipaodartsewiomthhegtpstaayunliktlyfoinfiwtnfthoidigustyousjuniosfiprtsfltskcehinvolvtwmigrabtcosarfrtfkingrtsbefkgsounwenwbenkeffounahareaihellimtenacrtniheiwarthousftcehflohtaoromtbuaarinkingebouaiaiemnoahustiamekthhtnhtaoarinkhrtceharthousftartmthhegthhaillkttpfomingenwiemguthhingareahrtrehgonthoartstmuhabthomtoartshousftdosousinatlligtnfthomtaringihboartsingmtebouaartaontodartmthhegthcrywothousenaegonihakttpaeunainguhebouaousellithiaihnoaliktartaringhctestbtingehktwaobiwdosestaringhctestliktlyaoriwtdsomontenoartsedatsellenyceyidolloctwontodousdstnfrfollteguthaodsitwsifrhasehhtenwceafrtwrtsasyaopifkupartktydsomlofktshttmhaorevtbttnefonifoulwnaflteslyhttcreacehgoingonbuahrtwiwnahttmaobtebltaooptnlofktsenwltdaobviouhlyuphtaedatshrtrewgontiaookelookealofktsiarehedelhtbefkhoiemguthhingartmontycehaektnbuanoaringpsoviwtwintxfrengtfoulwyouwigesounwciaryousfonaefahinartbsiaihrenwsuhhientmbehhithenwhttidartyestgtaaingarthemthosaodfommunifeaionhmeybtyoufoulwcesnartmbyartceywitelfrtmihatnpsojtfacehartfowtnemtdosartnezieaombombtddosairewesuninciarartmwusingartcescrtnctctstasyingaokttpartisrenwhoddartrtevyceatshupplystmtmbtsartbombinginvtmoskareacehuhosseartsousnoswifellithenyceyiaihhaillaophtfstahoartdefaouspsoaegonihaknochebouaiaihhignidifenaihuhptfaartktyaoarihcroltmyhatsylithinartisiwtnaiayidctkntccroartyctstcoskingdosctmigrabtebltaodigustouacreaartyestupaoontlehaaringefaingonerunfriaookelookeahomtodartdstnfrwtewwsophedatsartdsitwsifrhasehhtinfiwtnaenwdounwarteaaefrtwfommunifeaionirevtnarewaimtaofsefkiabuaiarinkiameybtevigtntstegeinbuairevtnarewefrenftaoasybebbegthasifkoniaytagivtiaaoyousblefkfrembtsenwhttcreaartyfenmektodiaellartbtharessy\n" + ] + } + ], + "source": [ + "print(keyword_decipher(c6a, key_a_word, wrap_alphabet=key_a_wrap))" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'icrdvsfshmrghcfhpzysxdrhsvsxfghcrhnrkfshrmrpshrzzfrdflayhcsxhcfhpzflwfggrnfgmfzsiufljzrxlsxhcfhdrxgidszhyehcfdrlsywfggrnfzdfhhpjxvsufvpiysxislfxifgysesnjdfpyjdtjxsydiszcfdivfdumrgsxkyvkflwsnchafmydhcicfiusxncfdariundyjxlrxlarxuriiyjxhghcrhsgrvvswfrxhmcfxsgrslhcfgyjdifmrgivygfhycywfajhhcsxusxnrayjhshsrwxyhgjdfshwrufggfxgfhyhcsxugcfmrghcfgyjdifhcfwfggrnfgghsvvuffziywsxnrxlsrwnjfggsxnhcrhgcfcrgnyxfgyhcfdfwjghafgywfyhcfdgyjdifeydyjdsxhfvvsnfxifgywfhcsxnsgayhcfdsxnwfrayjhhcfhyxfyehcfwfggrnfgmcplyfgyjdrxhrnyxsghuffzhrjxhsxnjgrayjhyjdrvvsfgshsgxyhvsufhcfhcsxngmfrdfafsxnrguflhyasleydrdfhcsxngmfrdfvsufvphycslfedywyxfrxyhcfdrehfdrvvrxpmrpseyvvymflyxfyeyjdedfxiciyvvfrnjfghyedsfldsicghdrggfrxlmrhicflcfdhdphyzsiujzhcfufpedywvyiufdgffwghycrkfaffxriyxsiyjvlxhivfrdvpgffmcrhmrgnysxnyxajhgcflslxhgffwhyafravfhyyzfxvyiufdrxlvfehyaksyjgvpjzgfhrehfdgcfcrlnyxfshyyurvyyurhvyiufdshcrgrervgfariugysrwnjfggsxnhcfwyxfpmrghrufxajhxyhcsxnzdykslflsxfoicrxnfiyjvlpyjlsnrdyjxlmshcpyjdiyxhrihgsxhcfadshsgcrxldjggsrxfwarggsfgrxlgffsehcfprdfnfhhsxnhcfgrwfgydhyeiywwjxsirhsyxgwrpafpyjiyjvlmrdxhcfwaphcfmrplsfrvicfwsghfxzdytfihmrghcfiylfxrwfeydhcfxrqsrhywaywafeeydhscrlrdjxsxmshchcfwljdsxnhcfmrdmcfxmfmfdfhdpsxnhyuffzhcfsdcrxlgyeehcfcfrkpmrhfdgjzzvpdfwfwafdhcfaywasxnsxkfwyduhcrhmrgjgyddrhcfdyjdxydlsirvvsfgrxpmrpshsgghsvvhyzgfidfhgyhcferihyjdzdyhrnyxsghuxymgrayjhshsggsnxsesirxhsgjgzfihhcfufphyhcsgmcyvfwpghfdpvsfgsxhcfsdslfxhshpsemfuxfmmcyhcfpmfdfmydusxneydmfwsnchafravfhyesnjdfyjhmcrhhcfprdfjzhyyxfvrghhcsxnrihsxnyxrcjxicshyyurvyyurhgywfyehcfedfxiclfrlldyzgrehfdhcfedsfldsicghdrggfsxislfxhrxleyjxlhcfrhhricfliywwjxsirhsyxscrkfxhcrlhswfhyidriushajhshcsxushwrpafrksnfxfdfrnrsxajhscrkfxhcrlricrxifhyhdparaarnfghdsiuyxshpfhnskfshhypyjdavriuicrwafdrxlgffmcrhhcfpirxwrufyeshrvvhcfafghcrddp'" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "c6a" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'CHARLIE IT WAS THE TYPO IN RAT I LINES THAT GAVE IT AWAY IT APPEARED BOTH IN THE TYPED MESSAGES WE PICKED UP AND IN THE TRANSCRIPT OF THE RADIO MESSAGE PRETTY UNLIKELY COINCIDENCE SO I FIGURE YOUR JUNIOR CIPHER CLERK WAS INVOLVED MIGHT BE WORTH CHECKING HER BACKGROUND AND BANK ACCOUNTS THAT IS ALL I MEANT WHEN I SAID THE SOURCE WAS CLOSE TO HOME BUT THINKING ABOUT IT I AM NOT SURE IT MAKES SENSE TO THINK SHE WAS THE SOURCE THE MESSAGES STILL KEEP COMING AND I AM GUESSING THAT SHE HAS GONE SO THERE MUST BE SOME OTHER SOURCE FOR OUR INTELLIGENCE SOMETHING IS BOTHERING ME ABOUT THE TONE OF THE MESSAGES WHY DOES OUR ANTAGONIST KEEP TAUNTING US ABOUT OUR ALLIES IT IS NOT LIKE THE THINGS WE ARE BEING ASKED TO BID FOR ARE THINGS WE ARE LIKELY TO HIDE FROM ONE ANOTHER AFTER ALL ANYWAY I FOLLOWED ONE OF OUR FRENCH COLLEAGUES TO FRIEDRICHSTRASSE AND WATCHED HER TRY TO PICKUP THE KEY FROM LOCKER SEEMS TO HAVE BEEN A CON I COULDNT CLEARLY SEE WHAT WAS GOING ON BUT SHE DIDNT SEEM TO BE ABLE TO OPEN LOCKER AND LEFT OBVIOUSLY UPSET AFTER SHE HAD GONE I TOOK A LOOK AT LOCKER IT HAS A FALSE BACK SO I AM GUESSING THE MONEY WAS TAKEN BUT NOTHING PROVIDED IN EXCHANGE COULD YOU DIG AROUND WITH YOUR CONTACTS IN THE BRITISH AND RUSSIAN EMBASSIES AND SEE IF THEY ARE GETTING THE SAME SORT OF COMMUNICATIONS MAYBE YOU COULD WARN THEM BY THE WAY DIE ALCHEMIST EN PROJECT WAS THE CODENAME FOR THE NAZI ATOM BOMB EFFORT I HAD A RUN IN WITH THEM DURING THE WAR WHEN WE WERE TRYING TO KEEP THEIR HANDS OFF THE HEAVY WATER SUPPLY REMEMBER THE BOMBING IN VE MORK THAT WAS US OR RATHER OUR NORDIC ALLIES ANYWAY IT IS STILL TOP SECRET SO THE FACT OUR PROTAGONIST KNOWS ABOUT IT IS SIGNIFICANT I SUSPECT THE KEY TO THIS WHOLE MYSTERY LIES IN THEIR IDENTITY IF WE KNEW WHO THEY WERE WORKING FOR WE MIGHT BE ABLE TO FIGURE OUT WHAT THEY ARE UP TO ONE LAST THING ACTING ON A HUNCH I TOOK A LOOK AT SOME OF THE FRENCH DEAD DROPS AFTER THE FRIEDRICHSTRASSE INCIDENT AND FOUND THE ATTACHED COMMUNICATION I HAVENT HAD TIME TO CRACK IT BUT I THINK IT MAYBE AVI GENERE AGAIN BUT I HAVENT HAD A CHANCE TO TRY BABBAGE STRICK ON IT YET GIVE IT TO YOUR BLACK CHAMBER AND SEE WHAT THEY CAN MAKE OF IT ALL THE BEST HARRY'" + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "translations = {'c': 'H', 'r': 'A', 'd': 'R', 'p': 'Y', 'i': 'C', 'd': 'R', 'v': 'L', 's': 'I', 'f': 'E', \n", + " 'h': 'T', 'a': 'B', 'g': 'S', 'm': 'W', 'y': 'O', 'z': 'P', 'n': 'G', 'j': 'U', 't': 'J',\n", + " 'x': 'N', 'k': 'V', 'l': 'D', 'w': 'M', 'u': 'K', 'e': 'F', 'q': 'Z', 'o': 'X'}\n", + "translation_table = ''.maketrans(translations)\n", + "plaintext = ' '.join(segment(c6a.translate(translation_table)))\n", + "plaintext" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'BHRFESTCUVDWGXYZAIJKLMNOP'" + ] + }, + "execution_count": 6, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "''.join(translations[l] for l in sorted(translations))" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'railfencstuvwxyzdghjkmopq'" + ] + }, + "execution_count": 7, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "inverted_translations = {translations[a]: a for a in translations}\n", + "''.join(inverted_translations[l] for l in sorted(inverted_translations))" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'railfencstuvwxyzbdghjkmopq'" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "keyword_cipher_alphabet_of('railfences', wrap_alphabet=KeywordWrapAlphabet.from_last)" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "charlie it was the typo in rat i lines that gave it away it appeared both in the typed messages we picked up and in the transcript of the radio message pretty unlikely coincidence so i figure your junior cipher clerk was involved might be worth checking her background and bank accounts that is all i meant when i said the source was close to home but thinking about it i am not sure it makes sense to think she was the source the messages still keep coming and i am guessing that she has gone so there must be some other source for our intelligence something is bothering me about the tone of the messages why does our antagonist keep taunting us about our allies it is not like the things we are being asked to bid for are things we are likely to hide from one another after all anyway i followed one of our french colleagues to friedrichstrasse and watched her try to pickup the key from locker seems to have been a con i couldnt clearly see what was going on but she didnt seem to be able to open locker and left obviously upset after she had gone i took a look at locker it has a false back so i am guessing the money was taken but nothing provided in exchange could you dig around with your contacts in the british and russian embassies and see if they are getting the same sort of communications maybe you could warn them by the way die alchemist en project was the codename for the nazi atom bomb effort i had a run in with them during the war when we were trying to keep their hands off the heavy water supply remember the bombing in ve mork that was us or rather our nordic allies anyway it is still top secret so the fact our protagonist knows about it is significant i suspect the key to this whole mystery lies in their identity if we knew who they were working for we might be able to figure out what they are up to one last thing acting on a hunch i took a look at some of the french dead drops after the friedrichstrasse incident and found the attached communication i havent had time to crack it but i think it maybe avi genere again but i havent had a chance to try babbage strick on it yet give it to your black chamber and see what they can make of it all the best harry\n" + ] + } + ], + "source": [ + "print(' '.join(segment(keyword_decipher(c6a, 'railfences', wrap_alphabet=KeywordWrapAlphabet.from_last))))" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "('kremlin', -908.5396262316657)" + ] + }, + "execution_count": 10, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "key_b, score = vigenere_frequency_break(c6b)\n", + "key_b, score" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "the americans have robbed you rather than trying to outbid you they got to the lockers first and arranged to steal your money and the valuable intelligence i provided for you they can not be trusted none of your allies can be trusted they believe that they can cheat you but they do not understand that you can only cheat in a game and this is not a game if you try to playa game of chess like your allies we will find ourselves in a stalemate you have been warned so let us start again i can let you have the address of another safehouse at a small discount on our original price and i will include the identity of a british double agent working in your embassy shall we say four hundred thousand francs to be paid directly to an account of my choosing if you want to know more about the treachery of your so called friends then let us meet in the park by the british embassy on friday at eleven\n" + ] + } + ], + "source": [ + "print(' '.join(segment(sanitise(vigenere_decipher(sanitise(c6b), key_b)))))" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.4.3" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/2015/2015-challenge7.ipynb b/2015/2015-challenge7.ipynb new file mode 100644 index 0000000..4fb1a18 --- /dev/null +++ b/2015/2015-challenge7.ipynb @@ -0,0 +1,1580 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import os,sys,inspect\n", + "currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))\n", + "parentdir = os.path.dirname(currentdir)\n", + "sys.path.insert(0,parentdir) \n", + "\n", + "import matplotlib.pyplot as plt\n", + "%matplotlib inline\n", + "\n", + "from cipherbreak import *\n", + "\n", + "c7a = sanitise(open('7a.ciphertext').read())\n", + "c7b = sanitise(open('7b.ciphertext').read())" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(('annmarie', ), -1865.8708508162845)" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "(key_a_word, key_a_wrap), score = keyword_break_mp(c7a)\n", + "(key_a_word, key_a_wrap), score" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "dhorlieithinkiknacchotisgainganfutineewtadhedkobecthingsfebareirepartcemoyhoveonappartunityhereidhedkewthedipherdlerksfodkgraunwonwitturnsautsheischiterussionherbomilylebtmasdacinfutshehosrelotivesinthegulogotpermshedleorlyhosnalavebarthesavietgavernmentsaiomstillnatsurechashecoscarkingbarfutithinkthisiskeyintelligendeinthemeontimeihovefeencotdhingthefritstheyseemtahovefeenindantodtcithaurbrienwsinthereidhswaktaronwtheyinturnhovefeencotdhingthebrendhitseemslikeceoreollcarkingogoinstaneonatherchidhireollywiwntexpedtonwgivenchotcereowinthebrendhwadumentlostceekiwantthinkthotisodaindiwendemyacnguessisthottherussionsknacchotisgainganonwthotaurfesthapeabundaveringitistafreokintatheirhqonwtrytabinwsamethingthereunbartunotelyoddarwingtamysaurdeyuritheyhovetokentausingonecdiphersalitoirebarordhivestarogeabtapsedretbilessaevenibcemonogetasteoltherelevontbileitcilltokeolatabdamputingtafreokthedipheriottodhofriebmessogebramyuriendryptewusingonomsdadipherkeycarwlengthissixinchidhhewesdrifesthedipheritisverydleversimpletaimplementfutoweviltadrodkonwmyanehapeisthotcedonolsabinwthedipherkeychileinthehqarotleostportabitiplontaenterintcaceeksanwedemfersixteenththerussionsorehastingolorgeprapogonwoeventosportabtheinternotianolefouousstellungcithleowingpalitfuramemfersinottenwondemastabthesedurityteomcillfeaddupiewciththotonwhqseduritycillferelotivelylightcithludkicillgetinonwautciththebilesceneewthotnightonwthencedongettathefattamabthechalereidhswaktarstrotogemollthefesthorry\n" + ] + } + ], + "source": [ + "print(keyword_decipher(c7a, key_a_word, wrap_alphabet=key_a_wrap))" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false, + "scrolled": true + }, + "outputs": [ + { + "data": { + "text/plain": [ + "{'A': 'a',\n", + " 'B': 'o',\n", + " 'C': 'p',\n", + " 'D': 'q',\n", + " 'E': 'f',\n", + " 'F': 'r',\n", + " 'G': 's',\n", + " 'H': 't',\n", + " 'I': 'e',\n", + " 'J': 'u',\n", + " 'K': 'v',\n", + " 'L': 'w',\n", + " 'M': 'c',\n", + " 'N': 'b',\n", + " 'O': 'x',\n", + " 'P': 'y',\n", + " 'Q': 'z',\n", + " 'R': 'd',\n", + " 'S': 'g',\n", + " 'T': 'h',\n", + " 'U': 'i',\n", + " 'V': 'j',\n", + " 'W': 'k',\n", + " 'X': 'l',\n", + " 'Y': 'm',\n", + " 'Z': 'n'}" + ] + }, + "execution_count": 10, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "trans_a = {p.upper(): c for p, c in zip(keyword_cipher_alphabet_of(key_a_word, wrap_alphabet=key_a_wrap), string.ascii_lowercase, )}\n", + "trans_a" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'charlie i think i know what is going on but i need to check a few things before i report we may have an opportunity here i checked the cipher clerks background and it turns out she is white russian her family left moscow in but she has relatives in the gulag at perm she clearly has no love for the soviet government so i am still not sure who she was working for but i think this is key intelligence in the meantime i have been watching the brits they seem to have been in contact with our friends in the reichs doktor and they in turn have been watching the french it seems like we are all working against one another which i really didnt expect and given what we read in the french document last week i dont think that is a coincidence my own guess is that the russians know what is going on and that our best hope of uncovering it is to break into their hq and try to find something there unfortunately according to my source yuri they have taken to using a new cipher solitaire for archive storage of top secret files so even if we manage to steal the relevant file it will take alot of computing to break the cipher i attach a brief message from yuri encrypted using an amsco cipher keyword length is six in which he describes the cipher it is very clever simple to implement but a devil to crack and my one hope is that we can also find the cipher key while in the hq or atleast part of it i plan to enter in two weeks on december sixteenth the russians are hosting a large propaganda event as part of the international ebau ausstellung with leading politburo members in attendance most of the security team will be occupied with that and hq security will be relatively light with luck i will get in and out with the files we need that night and then we can get to the bottom of the whole reichs doktor stratagem all the best harry'" + ] + }, + "execution_count": 3, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "translations = {\n", + " 'A': 'o',\n", + " 'B': 'a',\n", + " 'C': 'p',\n", + " 'D': 'q',\n", + " 'E': 'b',\n", + " 'F': 'r',\n", + " 'G': 's',\n", + " 'H': 't',\n", + " 'I': 'e',\n", + " 'J': 'u',\n", + " 'K': 'v',\n", + " 'L': 'd',\n", + " 'M': 'w',\n", + " 'N': 'f',\n", + " 'O': 'x',\n", + " 'P': 'y',\n", + " 'Q': 'z',\n", + " 'R': 'c',\n", + " 'S': 'g',\n", + " 'T': 'h',\n", + " 'U': 'i',\n", + " 'V': 'j',\n", + " 'W': 'k',\n", + " 'X': 'l',\n", + " 'Y': 'm',\n", + " 'Z': 'n'}\n", + "translation_table = ''.maketrans(translations)\n", + "plaintext = ' '.join(segment(c7a.upper().translate(translation_table)))\n", + "plaintext" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'oapqbrsteuvdwfxyzcghijklmn'" + ] + }, + "execution_count": 12, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "''.join(translations[l] for l in sorted(translations))" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'BERLINSTUVWXYZACDFGHJKMOPQ'" + ] + }, + "execution_count": 13, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "inverted_translations = {translations[a]: a for a in translations}\n", + "''.join(inverted_translations[l] for l in sorted(inverted_translations))" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "'berlinstuvwxyzacdfghjkmopq'" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "keyword_cipher_alphabet_of('berlin', wrap_alphabet=KeywordWrapAlphabet.from_largest)" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "charlie i think i know what is going on but i need to check a few things before i report we may have an opportunity here i checked the cipher clerks background and it turns out she is white russian her family left moscow in but she has relatives in the gulag at perm she clearly has no love for the soviet government so i am still not sure who she was working for but i think this is key intelligence in the meantime i have been watching the brits they seem to have been in contact with our friends in the reichs doktor and they in turn have been watching the french it seems like we are all working against one another which i really didnt expect and given what we read in the french document last week i dont think that is a coincidence my own guess is that the russians know what is going on and that our best hope of uncovering it is to break into their hq and try to find something there unfortunately according to my source yuri they have taken to using a new cipher solitaire for archive storage of top secret files so even if we manage to steal the relevant file it will take alot of computing to break the cipher i attach a brief message from yuri encrypted using an amsco cipher keyword length is six in which he describes the cipher it is very clever simple to implement but a devil to crack and my one hope is that we can also find the cipher key while in the hq or atleast part of it i plan to enter in two weeks on december sixteenth the russians are hosting a large propaganda event as part of the international ebau ausstellung with leading politburo members in attendance most of the security team will be occupied with that and hq security will be relatively light with luck i will get in and out with the files we need that night and then we can get to the bottom of the whole reichs doktor stratagem all the best harry\n" + ] + } + ], + "source": [ + "print(' '.join(segment(keyword_decipher(c7a, 'berlin', wrap_alphabet=KeywordWrapAlphabet.from_largest))))" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "{(0, 1, 2, 3, 4, 5): (0, 1, 2, 3, 4, 5),\n", + " (0, 1, 2, 3, 5, 4): (0, 1, 2, 3, 5, 4),\n", + " (0, 1, 2, 4, 3, 5): (0, 1, 2, 4, 3, 5),\n", + " (0, 1, 2, 4, 5, 3): (0, 1, 2, 4, 5, 3),\n", + " (0, 1, 2, 5, 3, 4): (0, 1, 2, 5, 3, 4),\n", + " (0, 1, 2, 5, 4, 3): (0, 1, 2, 5, 4, 3),\n", + " (0, 1, 3, 2, 4, 5): (0, 1, 3, 2, 4, 5),\n", + " (0, 1, 3, 2, 5, 4): (0, 1, 3, 2, 5, 4),\n", + " (0, 1, 3, 4, 2, 5): (0, 1, 3, 4, 2, 5),\n", + " (0, 1, 3, 4, 5, 2): (0, 1, 3, 4, 5, 2),\n", + " (0, 1, 3, 5, 2, 4): (0, 1, 3, 5, 2, 4),\n", + " (0, 1, 3, 5, 4, 2): (0, 1, 3, 5, 4, 2),\n", + " (0, 1, 4, 2, 3, 5): (0, 1, 4, 2, 3, 5),\n", + " (0, 1, 4, 2, 5, 3): (0, 1, 4, 2, 5, 3),\n", + " (0, 1, 4, 3, 2, 5): (0, 1, 4, 3, 2, 5),\n", + " (0, 1, 4, 3, 5, 2): (0, 1, 4, 3, 5, 2),\n", + " (0, 1, 4, 5, 2, 3): (0, 1, 4, 5, 2, 3),\n", + " (0, 1, 4, 5, 3, 2): (0, 1, 4, 5, 3, 2),\n", + " (0, 1, 5, 2, 3, 4): (0, 1, 5, 2, 3, 4),\n", + " (0, 1, 5, 2, 4, 3): (0, 1, 5, 2, 4, 3),\n", + " (0, 1, 5, 3, 2, 4): (0, 1, 5, 3, 2, 4),\n", + " (0, 1, 5, 3, 4, 2): (0, 1, 5, 3, 4, 2),\n", + " (0, 1, 5, 4, 2, 3): (0, 1, 5, 4, 2, 3),\n", + " (0, 1, 5, 4, 3, 2): (0, 1, 5, 4, 3, 2),\n", + " (0, 2, 1, 3, 4, 5): (0, 2, 1, 3, 4, 5),\n", + " (0, 2, 1, 3, 5, 4): (0, 2, 1, 3, 5, 4),\n", + " (0, 2, 1, 4, 3, 5): (0, 2, 1, 4, 3, 5),\n", + " (0, 2, 1, 4, 5, 3): (0, 2, 1, 4, 5, 3),\n", + " (0, 2, 1, 5, 3, 4): (0, 2, 1, 5, 3, 4),\n", + " (0, 2, 1, 5, 4, 3): (0, 2, 1, 5, 4, 3),\n", + " (0, 2, 3, 1, 4, 5): (0, 2, 3, 1, 4, 5),\n", + " (0, 2, 3, 1, 5, 4): (0, 2, 3, 1, 5, 4),\n", + " (0, 2, 3, 4, 1, 5): (0, 2, 3, 4, 1, 5),\n", + " (0, 2, 3, 4, 5, 1): (0, 2, 3, 4, 5, 1),\n", + " (0, 2, 3, 5, 1, 4): (0, 2, 3, 5, 1, 4),\n", + " (0, 2, 3, 5, 4, 1): (0, 2, 3, 5, 4, 1),\n", + " (0, 2, 4, 1, 3, 5): (0, 2, 4, 1, 3, 5),\n", + " (0, 2, 4, 1, 5, 3): (0, 2, 4, 1, 5, 3),\n", + " (0, 2, 4, 3, 1, 5): (0, 2, 4, 3, 1, 5),\n", + " (0, 2, 4, 3, 5, 1): (0, 2, 4, 3, 5, 1),\n", + " (0, 2, 4, 5, 1, 3): (0, 2, 4, 5, 1, 3),\n", + " (0, 2, 4, 5, 3, 1): (0, 2, 4, 5, 3, 1),\n", + " (0, 2, 5, 1, 3, 4): (0, 2, 5, 1, 3, 4),\n", + " (0, 2, 5, 1, 4, 3): (0, 2, 5, 1, 4, 3),\n", + " (0, 2, 5, 3, 1, 4): (0, 2, 5, 3, 1, 4),\n", + " (0, 2, 5, 3, 4, 1): (0, 2, 5, 3, 4, 1),\n", + " (0, 2, 5, 4, 1, 3): (0, 2, 5, 4, 1, 3),\n", + " (0, 2, 5, 4, 3, 1): (0, 2, 5, 4, 3, 1),\n", + " (0, 3, 1, 2, 4, 5): (0, 3, 1, 2, 4, 5),\n", + " (0, 3, 1, 2, 5, 4): (0, 3, 1, 2, 5, 4),\n", + " (0, 3, 1, 4, 2, 5): (0, 3, 1, 4, 2, 5),\n", + " (0, 3, 1, 4, 5, 2): (0, 3, 1, 4, 5, 2),\n", + " (0, 3, 1, 5, 2, 4): (0, 3, 1, 5, 2, 4),\n", + " (0, 3, 1, 5, 4, 2): (0, 3, 1, 5, 4, 2),\n", + " (0, 3, 2, 1, 4, 5): (0, 3, 2, 1, 4, 5),\n", + " (0, 3, 2, 1, 5, 4): (0, 3, 2, 1, 5, 4),\n", + " (0, 3, 2, 4, 1, 5): (0, 3, 2, 4, 1, 5),\n", + " (0, 3, 2, 4, 5, 1): (0, 3, 2, 4, 5, 1),\n", + " (0, 3, 2, 5, 1, 4): (0, 3, 2, 5, 1, 4),\n", + " (0, 3, 2, 5, 4, 1): (0, 3, 2, 5, 4, 1),\n", + " (0, 3, 4, 1, 2, 5): (0, 3, 4, 1, 2, 5),\n", + " (0, 3, 4, 1, 5, 2): (0, 3, 4, 1, 5, 2),\n", + " (0, 3, 4, 2, 1, 5): (0, 3, 4, 2, 1, 5),\n", + " (0, 3, 4, 2, 5, 1): (0, 3, 4, 2, 5, 1),\n", + " (0, 3, 4, 5, 1, 2): (0, 3, 4, 5, 1, 2),\n", + " (0, 3, 4, 5, 2, 1): (0, 3, 4, 5, 2, 1),\n", + " (0, 3, 5, 1, 2, 4): (0, 3, 5, 1, 2, 4),\n", + " (0, 3, 5, 1, 4, 2): (0, 3, 5, 1, 4, 2),\n", + " (0, 3, 5, 2, 1, 4): (0, 3, 5, 2, 1, 4),\n", + " (0, 3, 5, 2, 4, 1): (0, 3, 5, 2, 4, 1),\n", + " (0, 3, 5, 4, 1, 2): (0, 3, 5, 4, 1, 2),\n", + " (0, 3, 5, 4, 2, 1): (0, 3, 5, 4, 2, 1),\n", + " (0, 4, 1, 2, 3, 5): (0, 4, 1, 2, 3, 5),\n", + " (0, 4, 1, 2, 5, 3): (0, 4, 1, 2, 5, 3),\n", + " (0, 4, 1, 3, 2, 5): (0, 4, 1, 3, 2, 5),\n", + " (0, 4, 1, 3, 5, 2): (0, 4, 1, 3, 5, 2),\n", + " (0, 4, 1, 5, 2, 3): (0, 4, 1, 5, 2, 3),\n", + " (0, 4, 1, 5, 3, 2): (0, 4, 1, 5, 3, 2),\n", + " (0, 4, 2, 1, 3, 5): (0, 4, 2, 1, 3, 5),\n", + " (0, 4, 2, 1, 5, 3): (0, 4, 2, 1, 5, 3),\n", + " (0, 4, 2, 3, 1, 5): (0, 4, 2, 3, 1, 5),\n", + " (0, 4, 2, 3, 5, 1): (0, 4, 2, 3, 5, 1),\n", + " (0, 4, 2, 5, 1, 3): (0, 4, 2, 5, 1, 3),\n", + " (0, 4, 2, 5, 3, 1): (0, 4, 2, 5, 3, 1),\n", + " (0, 4, 3, 1, 2, 5): (0, 4, 3, 1, 2, 5),\n", + " (0, 4, 3, 1, 5, 2): (0, 4, 3, 1, 5, 2),\n", + " (0, 4, 3, 2, 1, 5): (0, 4, 3, 2, 1, 5),\n", + " (0, 4, 3, 2, 5, 1): (0, 4, 3, 2, 5, 1),\n", + " (0, 4, 3, 5, 1, 2): (0, 4, 3, 5, 1, 2),\n", + " (0, 4, 3, 5, 2, 1): (0, 4, 3, 5, 2, 1),\n", + " (0, 4, 5, 1, 2, 3): (0, 4, 5, 1, 2, 3),\n", + " (0, 4, 5, 1, 3, 2): (0, 4, 5, 1, 3, 2),\n", + " (0, 4, 5, 2, 1, 3): (0, 4, 5, 2, 1, 3),\n", + " (0, 4, 5, 2, 3, 1): (0, 4, 5, 2, 3, 1),\n", + " (0, 4, 5, 3, 1, 2): (0, 4, 5, 3, 1, 2),\n", + " (0, 4, 5, 3, 2, 1): (0, 4, 5, 3, 2, 1),\n", + " (0, 5, 1, 2, 3, 4): (0, 5, 1, 2, 3, 4),\n", + " (0, 5, 1, 2, 4, 3): (0, 5, 1, 2, 4, 3),\n", + " (0, 5, 1, 3, 2, 4): (0, 5, 1, 3, 2, 4),\n", + " (0, 5, 1, 3, 4, 2): (0, 5, 1, 3, 4, 2),\n", + " (0, 5, 1, 4, 2, 3): (0, 5, 1, 4, 2, 3),\n", + " (0, 5, 1, 4, 3, 2): (0, 5, 1, 4, 3, 2),\n", + " (0, 5, 2, 1, 3, 4): (0, 5, 2, 1, 3, 4),\n", + " (0, 5, 2, 1, 4, 3): (0, 5, 2, 1, 4, 3),\n", + " (0, 5, 2, 3, 1, 4): (0, 5, 2, 3, 1, 4),\n", + " (0, 5, 2, 3, 4, 1): (0, 5, 2, 3, 4, 1),\n", + " (0, 5, 2, 4, 1, 3): (0, 5, 2, 4, 1, 3),\n", + " (0, 5, 2, 4, 3, 1): (0, 5, 2, 4, 3, 1),\n", + " (0, 5, 3, 1, 2, 4): (0, 5, 3, 1, 2, 4),\n", + " (0, 5, 3, 1, 4, 2): (0, 5, 3, 1, 4, 2),\n", + " (0, 5, 3, 2, 1, 4): (0, 5, 3, 2, 1, 4),\n", + " (0, 5, 3, 2, 4, 1): (0, 5, 3, 2, 4, 1),\n", + " (0, 5, 3, 4, 1, 2): (0, 5, 3, 4, 1, 2),\n", + " (0, 5, 3, 4, 2, 1): (0, 5, 3, 4, 2, 1),\n", + " (0, 5, 4, 1, 2, 3): (0, 5, 4, 1, 2, 3),\n", + " (0, 5, 4, 1, 3, 2): (0, 5, 4, 1, 3, 2),\n", + " (0, 5, 4, 2, 1, 3): (0, 5, 4, 2, 1, 3),\n", + " (0, 5, 4, 2, 3, 1): (0, 5, 4, 2, 3, 1),\n", + " (0, 5, 4, 3, 1, 2): (0, 5, 4, 3, 1, 2),\n", + " (0, 5, 4, 3, 2, 1): (0, 5, 4, 3, 2, 1),\n", + " (1, 0, 2, 3, 4, 5): (1, 0, 2, 3, 4, 5),\n", + " (1, 0, 2, 3, 5, 4): (1, 0, 2, 3, 5, 4),\n", + " (1, 0, 2, 4, 3, 5): (1, 0, 2, 4, 3, 5),\n", + " (1, 0, 2, 4, 5, 3): (1, 0, 2, 4, 5, 3),\n", + " (1, 0, 2, 5, 3, 4): (1, 0, 2, 5, 3, 4),\n", + " (1, 0, 2, 5, 4, 3): (1, 0, 2, 5, 4, 3),\n", + " (1, 0, 3, 2, 4, 5): (1, 0, 3, 2, 4, 5),\n", + " (1, 0, 3, 2, 5, 4): (1, 0, 3, 2, 5, 4),\n", + " (1, 0, 3, 4, 2, 5): (1, 0, 3, 4, 2, 5),\n", + " (1, 0, 3, 4, 5, 2): (1, 0, 3, 4, 5, 2),\n", + " (1, 0, 3, 5, 2, 4): (1, 0, 3, 5, 2, 4),\n", + " (1, 0, 3, 5, 4, 2): (1, 0, 3, 5, 4, 2),\n", + " (1, 0, 4, 2, 3, 5): (1, 0, 4, 2, 3, 5),\n", + " (1, 0, 4, 2, 5, 3): (1, 0, 4, 2, 5, 3),\n", + " (1, 0, 4, 3, 2, 5): (1, 0, 4, 3, 2, 5),\n", + " (1, 0, 4, 3, 5, 2): (1, 0, 4, 3, 5, 2),\n", + " (1, 0, 4, 5, 2, 3): (1, 0, 4, 5, 2, 3),\n", + " (1, 0, 4, 5, 3, 2): (1, 0, 4, 5, 3, 2),\n", + " (1, 0, 5, 2, 3, 4): (1, 0, 5, 2, 3, 4),\n", + " (1, 0, 5, 2, 4, 3): (1, 0, 5, 2, 4, 3),\n", + " (1, 0, 5, 3, 2, 4): (1, 0, 5, 3, 2, 4),\n", + " (1, 0, 5, 3, 4, 2): (1, 0, 5, 3, 4, 2),\n", + " (1, 0, 5, 4, 2, 3): (1, 0, 5, 4, 2, 3),\n", + " (1, 0, 5, 4, 3, 2): (1, 0, 5, 4, 3, 2),\n", + " (1, 2, 0, 3, 4, 5): (1, 2, 0, 3, 4, 5),\n", + " (1, 2, 0, 3, 5, 4): (1, 2, 0, 3, 5, 4),\n", + " (1, 2, 0, 4, 3, 5): (1, 2, 0, 4, 3, 5),\n", + " (1, 2, 0, 4, 5, 3): (1, 2, 0, 4, 5, 3),\n", + " (1, 2, 0, 5, 3, 4): (1, 2, 0, 5, 3, 4),\n", + " (1, 2, 0, 5, 4, 3): (1, 2, 0, 5, 4, 3),\n", + " (1, 2, 3, 0, 4, 5): (1, 2, 3, 0, 4, 5),\n", + " (1, 2, 3, 0, 5, 4): (1, 2, 3, 0, 5, 4),\n", + " (1, 2, 3, 4, 0, 5): (1, 2, 3, 4, 0, 5),\n", + " (1, 2, 3, 4, 5, 0): (1, 2, 3, 4, 5, 0),\n", + " (1, 2, 3, 5, 0, 4): (1, 2, 3, 5, 0, 4),\n", + " (1, 2, 3, 5, 4, 0): (1, 2, 3, 5, 4, 0),\n", + " (1, 2, 4, 0, 3, 5): (1, 2, 4, 0, 3, 5),\n", + " (1, 2, 4, 0, 5, 3): (1, 2, 4, 0, 5, 3),\n", + " (1, 2, 4, 3, 0, 5): (1, 2, 4, 3, 0, 5),\n", + " (1, 2, 4, 3, 5, 0): (1, 2, 4, 3, 5, 0),\n", + " (1, 2, 4, 5, 0, 3): (1, 2, 4, 5, 0, 3),\n", + " (1, 2, 4, 5, 3, 0): (1, 2, 4, 5, 3, 0),\n", + " (1, 2, 5, 0, 3, 4): (1, 2, 5, 0, 3, 4),\n", + " (1, 2, 5, 0, 4, 3): (1, 2, 5, 0, 4, 3),\n", + " (1, 2, 5, 3, 0, 4): (1, 2, 5, 3, 0, 4),\n", + " (1, 2, 5, 3, 4, 0): (1, 2, 5, 3, 4, 0),\n", + " (1, 2, 5, 4, 0, 3): (1, 2, 5, 4, 0, 3),\n", + " (1, 2, 5, 4, 3, 0): (1, 2, 5, 4, 3, 0),\n", + " (1, 3, 0, 2, 4, 5): (1, 3, 0, 2, 4, 5),\n", + " (1, 3, 0, 2, 5, 4): (1, 3, 0, 2, 5, 4),\n", + " (1, 3, 0, 4, 2, 5): (1, 3, 0, 4, 2, 5),\n", + " (1, 3, 0, 4, 5, 2): (1, 3, 0, 4, 5, 2),\n", + " (1, 3, 0, 5, 2, 4): (1, 3, 0, 5, 2, 4),\n", + " (1, 3, 0, 5, 4, 2): (1, 3, 0, 5, 4, 2),\n", + " (1, 3, 2, 0, 4, 5): (1, 3, 2, 0, 4, 5),\n", + " (1, 3, 2, 0, 5, 4): (1, 3, 2, 0, 5, 4),\n", + " (1, 3, 2, 4, 0, 5): (1, 3, 2, 4, 0, 5),\n", + " (1, 3, 2, 4, 5, 0): (1, 3, 2, 4, 5, 0),\n", + " (1, 3, 2, 5, 0, 4): (1, 3, 2, 5, 0, 4),\n", + " (1, 3, 2, 5, 4, 0): (1, 3, 2, 5, 4, 0),\n", + " (1, 3, 4, 0, 2, 5): (1, 3, 4, 0, 2, 5),\n", + " (1, 3, 4, 0, 5, 2): (1, 3, 4, 0, 5, 2),\n", + " (1, 3, 4, 2, 0, 5): (1, 3, 4, 2, 0, 5),\n", + " (1, 3, 4, 2, 5, 0): (1, 3, 4, 2, 5, 0),\n", + " (1, 3, 4, 5, 0, 2): (1, 3, 4, 5, 0, 2),\n", + " (1, 3, 4, 5, 2, 0): (1, 3, 4, 5, 2, 0),\n", + " (1, 3, 5, 0, 2, 4): (1, 3, 5, 0, 2, 4),\n", + " (1, 3, 5, 0, 4, 2): (1, 3, 5, 0, 4, 2),\n", + " (1, 3, 5, 2, 0, 4): (1, 3, 5, 2, 0, 4),\n", + " (1, 3, 5, 2, 4, 0): (1, 3, 5, 2, 4, 0),\n", + " (1, 3, 5, 4, 0, 2): (1, 3, 5, 4, 0, 2),\n", + " (1, 3, 5, 4, 2, 0): (1, 3, 5, 4, 2, 0),\n", + " (1, 4, 0, 2, 3, 5): (1, 4, 0, 2, 3, 5),\n", + " (1, 4, 0, 2, 5, 3): (1, 4, 0, 2, 5, 3),\n", + " (1, 4, 0, 3, 2, 5): (1, 4, 0, 3, 2, 5),\n", + " (1, 4, 0, 3, 5, 2): (1, 4, 0, 3, 5, 2),\n", + " (1, 4, 0, 5, 2, 3): (1, 4, 0, 5, 2, 3),\n", + " (1, 4, 0, 5, 3, 2): (1, 4, 0, 5, 3, 2),\n", + " (1, 4, 2, 0, 3, 5): (1, 4, 2, 0, 3, 5),\n", + " (1, 4, 2, 0, 5, 3): (1, 4, 2, 0, 5, 3),\n", + " (1, 4, 2, 3, 0, 5): (1, 4, 2, 3, 0, 5),\n", + " (1, 4, 2, 3, 5, 0): (1, 4, 2, 3, 5, 0),\n", + " (1, 4, 2, 5, 0, 3): (1, 4, 2, 5, 0, 3),\n", + " (1, 4, 2, 5, 3, 0): (1, 4, 2, 5, 3, 0),\n", + " (1, 4, 3, 0, 2, 5): (1, 4, 3, 0, 2, 5),\n", + " (1, 4, 3, 0, 5, 2): (1, 4, 3, 0, 5, 2),\n", + " (1, 4, 3, 2, 0, 5): (1, 4, 3, 2, 0, 5),\n", + " (1, 4, 3, 2, 5, 0): (1, 4, 3, 2, 5, 0),\n", + " (1, 4, 3, 5, 0, 2): (1, 4, 3, 5, 0, 2),\n", + " (1, 4, 3, 5, 2, 0): (1, 4, 3, 5, 2, 0),\n", + " (1, 4, 5, 0, 2, 3): (1, 4, 5, 0, 2, 3),\n", + " (1, 4, 5, 0, 3, 2): (1, 4, 5, 0, 3, 2),\n", + " (1, 4, 5, 2, 0, 3): (1, 4, 5, 2, 0, 3),\n", + " (1, 4, 5, 2, 3, 0): (1, 4, 5, 2, 3, 0),\n", + " (1, 4, 5, 3, 0, 2): (1, 4, 5, 3, 0, 2),\n", + " (1, 4, 5, 3, 2, 0): (1, 4, 5, 3, 2, 0),\n", + " (1, 5, 0, 2, 3, 4): (1, 5, 0, 2, 3, 4),\n", + " (1, 5, 0, 2, 4, 3): (1, 5, 0, 2, 4, 3),\n", + " (1, 5, 0, 3, 2, 4): (1, 5, 0, 3, 2, 4),\n", + " (1, 5, 0, 3, 4, 2): (1, 5, 0, 3, 4, 2),\n", + " (1, 5, 0, 4, 2, 3): (1, 5, 0, 4, 2, 3),\n", + " (1, 5, 0, 4, 3, 2): (1, 5, 0, 4, 3, 2),\n", + " (1, 5, 2, 0, 3, 4): (1, 5, 2, 0, 3, 4),\n", + " (1, 5, 2, 0, 4, 3): (1, 5, 2, 0, 4, 3),\n", + " (1, 5, 2, 3, 0, 4): (1, 5, 2, 3, 0, 4),\n", + " (1, 5, 2, 3, 4, 0): (1, 5, 2, 3, 4, 0),\n", + " (1, 5, 2, 4, 0, 3): (1, 5, 2, 4, 0, 3),\n", + " (1, 5, 2, 4, 3, 0): (1, 5, 2, 4, 3, 0),\n", + " (1, 5, 3, 0, 2, 4): (1, 5, 3, 0, 2, 4),\n", + " (1, 5, 3, 0, 4, 2): (1, 5, 3, 0, 4, 2),\n", + " (1, 5, 3, 2, 0, 4): (1, 5, 3, 2, 0, 4),\n", + " (1, 5, 3, 2, 4, 0): (1, 5, 3, 2, 4, 0),\n", + " (1, 5, 3, 4, 0, 2): (1, 5, 3, 4, 0, 2),\n", + " (1, 5, 3, 4, 2, 0): (1, 5, 3, 4, 2, 0),\n", + " (1, 5, 4, 0, 2, 3): (1, 5, 4, 0, 2, 3),\n", + " (1, 5, 4, 0, 3, 2): (1, 5, 4, 0, 3, 2),\n", + " (1, 5, 4, 2, 0, 3): (1, 5, 4, 2, 0, 3),\n", + " (1, 5, 4, 2, 3, 0): (1, 5, 4, 2, 3, 0),\n", + " (1, 5, 4, 3, 0, 2): (1, 5, 4, 3, 0, 2),\n", + " (1, 5, 4, 3, 2, 0): (1, 5, 4, 3, 2, 0),\n", + " (2, 0, 1, 3, 4, 5): (2, 0, 1, 3, 4, 5),\n", + " (2, 0, 1, 3, 5, 4): (2, 0, 1, 3, 5, 4),\n", + " (2, 0, 1, 4, 3, 5): (2, 0, 1, 4, 3, 5),\n", + " (2, 0, 1, 4, 5, 3): (2, 0, 1, 4, 5, 3),\n", + " (2, 0, 1, 5, 3, 4): (2, 0, 1, 5, 3, 4),\n", + " (2, 0, 1, 5, 4, 3): (2, 0, 1, 5, 4, 3),\n", + " (2, 0, 3, 1, 4, 5): (2, 0, 3, 1, 4, 5),\n", + " (2, 0, 3, 1, 5, 4): (2, 0, 3, 1, 5, 4),\n", + " (2, 0, 3, 4, 1, 5): (2, 0, 3, 4, 1, 5),\n", + " (2, 0, 3, 4, 5, 1): (2, 0, 3, 4, 5, 1),\n", + " (2, 0, 3, 5, 1, 4): (2, 0, 3, 5, 1, 4),\n", + " (2, 0, 3, 5, 4, 1): (2, 0, 3, 5, 4, 1),\n", + " (2, 0, 4, 1, 3, 5): (2, 0, 4, 1, 3, 5),\n", + " (2, 0, 4, 1, 5, 3): (2, 0, 4, 1, 5, 3),\n", + " (2, 0, 4, 3, 1, 5): (2, 0, 4, 3, 1, 5),\n", + " (2, 0, 4, 3, 5, 1): (2, 0, 4, 3, 5, 1),\n", + " (2, 0, 4, 5, 1, 3): (2, 0, 4, 5, 1, 3),\n", + " (2, 0, 4, 5, 3, 1): (2, 0, 4, 5, 3, 1),\n", + " (2, 0, 5, 1, 3, 4): (2, 0, 5, 1, 3, 4),\n", + " (2, 0, 5, 1, 4, 3): (2, 0, 5, 1, 4, 3),\n", + " (2, 0, 5, 3, 1, 4): (2, 0, 5, 3, 1, 4),\n", + " (2, 0, 5, 3, 4, 1): (2, 0, 5, 3, 4, 1),\n", + " (2, 0, 5, 4, 1, 3): (2, 0, 5, 4, 1, 3),\n", + " (2, 0, 5, 4, 3, 1): (2, 0, 5, 4, 3, 1),\n", + " (2, 1, 0, 3, 4, 5): (2, 1, 0, 3, 4, 5),\n", + " (2, 1, 0, 3, 5, 4): (2, 1, 0, 3, 5, 4),\n", + " (2, 1, 0, 4, 3, 5): (2, 1, 0, 4, 3, 5),\n", + " (2, 1, 0, 4, 5, 3): (2, 1, 0, 4, 5, 3),\n", + " (2, 1, 0, 5, 3, 4): (2, 1, 0, 5, 3, 4),\n", + " (2, 1, 0, 5, 4, 3): (2, 1, 0, 5, 4, 3),\n", + " (2, 1, 3, 0, 4, 5): (2, 1, 3, 0, 4, 5),\n", + " (2, 1, 3, 0, 5, 4): (2, 1, 3, 0, 5, 4),\n", + " (2, 1, 3, 4, 0, 5): (2, 1, 3, 4, 0, 5),\n", + " (2, 1, 3, 4, 5, 0): (2, 1, 3, 4, 5, 0),\n", + " (2, 1, 3, 5, 0, 4): (2, 1, 3, 5, 0, 4),\n", + " (2, 1, 3, 5, 4, 0): (2, 1, 3, 5, 4, 0),\n", + " (2, 1, 4, 0, 3, 5): (2, 1, 4, 0, 3, 5),\n", + " (2, 1, 4, 0, 5, 3): (2, 1, 4, 0, 5, 3),\n", + " (2, 1, 4, 3, 0, 5): (2, 1, 4, 3, 0, 5),\n", + " (2, 1, 4, 3, 5, 0): (2, 1, 4, 3, 5, 0),\n", + " (2, 1, 4, 5, 0, 3): (2, 1, 4, 5, 0, 3),\n", + " (2, 1, 4, 5, 3, 0): (2, 1, 4, 5, 3, 0),\n", + " (2, 1, 5, 0, 3, 4): (2, 1, 5, 0, 3, 4),\n", + " (2, 1, 5, 0, 4, 3): (2, 1, 5, 0, 4, 3),\n", + " (2, 1, 5, 3, 0, 4): (2, 1, 5, 3, 0, 4),\n", + " (2, 1, 5, 3, 4, 0): (2, 1, 5, 3, 4, 0),\n", + " (2, 1, 5, 4, 0, 3): (2, 1, 5, 4, 0, 3),\n", + " (2, 1, 5, 4, 3, 0): (2, 1, 5, 4, 3, 0),\n", + " (2, 3, 0, 1, 4, 5): (2, 3, 0, 1, 4, 5),\n", + " (2, 3, 0, 1, 5, 4): (2, 3, 0, 1, 5, 4),\n", + " (2, 3, 0, 4, 1, 5): (2, 3, 0, 4, 1, 5),\n", + " (2, 3, 0, 4, 5, 1): (2, 3, 0, 4, 5, 1),\n", + " (2, 3, 0, 5, 1, 4): (2, 3, 0, 5, 1, 4),\n", + " (2, 3, 0, 5, 4, 1): (2, 3, 0, 5, 4, 1),\n", + " (2, 3, 1, 0, 4, 5): (2, 3, 1, 0, 4, 5),\n", + " (2, 3, 1, 0, 5, 4): (2, 3, 1, 0, 5, 4),\n", + " (2, 3, 1, 4, 0, 5): (2, 3, 1, 4, 0, 5),\n", + " (2, 3, 1, 4, 5, 0): (2, 3, 1, 4, 5, 0),\n", + " (2, 3, 1, 5, 0, 4): (2, 3, 1, 5, 0, 4),\n", + " (2, 3, 1, 5, 4, 0): (2, 3, 1, 5, 4, 0),\n", + " (2, 3, 4, 0, 1, 5): (2, 3, 4, 0, 1, 5),\n", + " (2, 3, 4, 0, 5, 1): (2, 3, 4, 0, 5, 1),\n", + " (2, 3, 4, 1, 0, 5): (2, 3, 4, 1, 0, 5),\n", + " (2, 3, 4, 1, 5, 0): (2, 3, 4, 1, 5, 0),\n", + " (2, 3, 4, 5, 0, 1): (2, 3, 4, 5, 0, 1),\n", + " (2, 3, 4, 5, 1, 0): (2, 3, 4, 5, 1, 0),\n", + " (2, 3, 5, 0, 1, 4): (2, 3, 5, 0, 1, 4),\n", + " (2, 3, 5, 0, 4, 1): (2, 3, 5, 0, 4, 1),\n", + " (2, 3, 5, 1, 0, 4): (2, 3, 5, 1, 0, 4),\n", + " (2, 3, 5, 1, 4, 0): (2, 3, 5, 1, 4, 0),\n", + " (2, 3, 5, 4, 0, 1): (2, 3, 5, 4, 0, 1),\n", + " (2, 3, 5, 4, 1, 0): (2, 3, 5, 4, 1, 0),\n", + " (2, 4, 0, 1, 3, 5): (2, 4, 0, 1, 3, 5),\n", + " (2, 4, 0, 1, 5, 3): (2, 4, 0, 1, 5, 3),\n", + " (2, 4, 0, 3, 1, 5): (2, 4, 0, 3, 1, 5),\n", + " (2, 4, 0, 3, 5, 1): (2, 4, 0, 3, 5, 1),\n", + " (2, 4, 0, 5, 1, 3): (2, 4, 0, 5, 1, 3),\n", + " (2, 4, 0, 5, 3, 1): (2, 4, 0, 5, 3, 1),\n", + " (2, 4, 1, 0, 3, 5): (2, 4, 1, 0, 3, 5),\n", + " (2, 4, 1, 0, 5, 3): (2, 4, 1, 0, 5, 3),\n", + " (2, 4, 1, 3, 0, 5): (2, 4, 1, 3, 0, 5),\n", + " (2, 4, 1, 3, 5, 0): (2, 4, 1, 3, 5, 0),\n", + " (2, 4, 1, 5, 0, 3): (2, 4, 1, 5, 0, 3),\n", + " (2, 4, 1, 5, 3, 0): (2, 4, 1, 5, 3, 0),\n", + " (2, 4, 3, 0, 1, 5): (2, 4, 3, 0, 1, 5),\n", + " (2, 4, 3, 0, 5, 1): (2, 4, 3, 0, 5, 1),\n", + " (2, 4, 3, 1, 0, 5): (2, 4, 3, 1, 0, 5),\n", + " (2, 4, 3, 1, 5, 0): (2, 4, 3, 1, 5, 0),\n", + " (2, 4, 3, 5, 0, 1): (2, 4, 3, 5, 0, 1),\n", + " (2, 4, 3, 5, 1, 0): (2, 4, 3, 5, 1, 0),\n", + " (2, 4, 5, 0, 1, 3): (2, 4, 5, 0, 1, 3),\n", + " (2, 4, 5, 0, 3, 1): (2, 4, 5, 0, 3, 1),\n", + " (2, 4, 5, 1, 0, 3): (2, 4, 5, 1, 0, 3),\n", + " (2, 4, 5, 1, 3, 0): (2, 4, 5, 1, 3, 0),\n", + " (2, 4, 5, 3, 0, 1): (2, 4, 5, 3, 0, 1),\n", + " (2, 4, 5, 3, 1, 0): (2, 4, 5, 3, 1, 0),\n", + " (2, 5, 0, 1, 3, 4): (2, 5, 0, 1, 3, 4),\n", + " (2, 5, 0, 1, 4, 3): (2, 5, 0, 1, 4, 3),\n", + " (2, 5, 0, 3, 1, 4): (2, 5, 0, 3, 1, 4),\n", + " (2, 5, 0, 3, 4, 1): (2, 5, 0, 3, 4, 1),\n", + " (2, 5, 0, 4, 1, 3): (2, 5, 0, 4, 1, 3),\n", + " (2, 5, 0, 4, 3, 1): (2, 5, 0, 4, 3, 1),\n", + " (2, 5, 1, 0, 3, 4): (2, 5, 1, 0, 3, 4),\n", + " (2, 5, 1, 0, 4, 3): (2, 5, 1, 0, 4, 3),\n", + " (2, 5, 1, 3, 0, 4): (2, 5, 1, 3, 0, 4),\n", + " (2, 5, 1, 3, 4, 0): (2, 5, 1, 3, 4, 0),\n", + " (2, 5, 1, 4, 0, 3): (2, 5, 1, 4, 0, 3),\n", + " (2, 5, 1, 4, 3, 0): (2, 5, 1, 4, 3, 0),\n", + " (2, 5, 3, 0, 1, 4): (2, 5, 3, 0, 1, 4),\n", + " (2, 5, 3, 0, 4, 1): (2, 5, 3, 0, 4, 1),\n", + " (2, 5, 3, 1, 0, 4): (2, 5, 3, 1, 0, 4),\n", + " (2, 5, 3, 1, 4, 0): (2, 5, 3, 1, 4, 0),\n", + " (2, 5, 3, 4, 0, 1): (2, 5, 3, 4, 0, 1),\n", + " (2, 5, 3, 4, 1, 0): (2, 5, 3, 4, 1, 0),\n", + " (2, 5, 4, 0, 1, 3): (2, 5, 4, 0, 1, 3),\n", + " (2, 5, 4, 0, 3, 1): (2, 5, 4, 0, 3, 1),\n", + " (2, 5, 4, 1, 0, 3): (2, 5, 4, 1, 0, 3),\n", + " (2, 5, 4, 1, 3, 0): (2, 5, 4, 1, 3, 0),\n", + " (2, 5, 4, 3, 0, 1): (2, 5, 4, 3, 0, 1),\n", + " (2, 5, 4, 3, 1, 0): (2, 5, 4, 3, 1, 0),\n", + " (3, 0, 1, 2, 4, 5): (3, 0, 1, 2, 4, 5),\n", + " (3, 0, 1, 2, 5, 4): (3, 0, 1, 2, 5, 4),\n", + " (3, 0, 1, 4, 2, 5): (3, 0, 1, 4, 2, 5),\n", + " (3, 0, 1, 4, 5, 2): (3, 0, 1, 4, 5, 2),\n", + " (3, 0, 1, 5, 2, 4): (3, 0, 1, 5, 2, 4),\n", + " (3, 0, 1, 5, 4, 2): (3, 0, 1, 5, 4, 2),\n", + " (3, 0, 2, 1, 4, 5): (3, 0, 2, 1, 4, 5),\n", + " (3, 0, 2, 1, 5, 4): (3, 0, 2, 1, 5, 4),\n", + " (3, 0, 2, 4, 1, 5): (3, 0, 2, 4, 1, 5),\n", + " (3, 0, 2, 4, 5, 1): (3, 0, 2, 4, 5, 1),\n", + " (3, 0, 2, 5, 1, 4): (3, 0, 2, 5, 1, 4),\n", + " (3, 0, 2, 5, 4, 1): (3, 0, 2, 5, 4, 1),\n", + " (3, 0, 4, 1, 2, 5): (3, 0, 4, 1, 2, 5),\n", + " (3, 0, 4, 1, 5, 2): (3, 0, 4, 1, 5, 2),\n", + " (3, 0, 4, 2, 1, 5): (3, 0, 4, 2, 1, 5),\n", + " (3, 0, 4, 2, 5, 1): (3, 0, 4, 2, 5, 1),\n", + " (3, 0, 4, 5, 1, 2): (3, 0, 4, 5, 1, 2),\n", + " (3, 0, 4, 5, 2, 1): (3, 0, 4, 5, 2, 1),\n", + " (3, 0, 5, 1, 2, 4): (3, 0, 5, 1, 2, 4),\n", + " (3, 0, 5, 1, 4, 2): (3, 0, 5, 1, 4, 2),\n", + " (3, 0, 5, 2, 1, 4): (3, 0, 5, 2, 1, 4),\n", + " (3, 0, 5, 2, 4, 1): (3, 0, 5, 2, 4, 1),\n", + " (3, 0, 5, 4, 1, 2): (3, 0, 5, 4, 1, 2),\n", + " (3, 0, 5, 4, 2, 1): (3, 0, 5, 4, 2, 1),\n", + " (3, 1, 0, 2, 4, 5): (3, 1, 0, 2, 4, 5),\n", + " (3, 1, 0, 2, 5, 4): (3, 1, 0, 2, 5, 4),\n", + " (3, 1, 0, 4, 2, 5): (3, 1, 0, 4, 2, 5),\n", + " (3, 1, 0, 4, 5, 2): (3, 1, 0, 4, 5, 2),\n", + " (3, 1, 0, 5, 2, 4): (3, 1, 0, 5, 2, 4),\n", + " (3, 1, 0, 5, 4, 2): (3, 1, 0, 5, 4, 2),\n", + " (3, 1, 2, 0, 4, 5): (3, 1, 2, 0, 4, 5),\n", + " (3, 1, 2, 0, 5, 4): (3, 1, 2, 0, 5, 4),\n", + " (3, 1, 2, 4, 0, 5): (3, 1, 2, 4, 0, 5),\n", + " (3, 1, 2, 4, 5, 0): (3, 1, 2, 4, 5, 0),\n", + " (3, 1, 2, 5, 0, 4): (3, 1, 2, 5, 0, 4),\n", + " (3, 1, 2, 5, 4, 0): (3, 1, 2, 5, 4, 0),\n", + " (3, 1, 4, 0, 2, 5): (3, 1, 4, 0, 2, 5),\n", + " (3, 1, 4, 0, 5, 2): (3, 1, 4, 0, 5, 2),\n", + " (3, 1, 4, 2, 0, 5): (3, 1, 4, 2, 0, 5),\n", + " (3, 1, 4, 2, 5, 0): (3, 1, 4, 2, 5, 0),\n", + " (3, 1, 4, 5, 0, 2): (3, 1, 4, 5, 0, 2),\n", + " (3, 1, 4, 5, 2, 0): (3, 1, 4, 5, 2, 0),\n", + " (3, 1, 5, 0, 2, 4): (3, 1, 5, 0, 2, 4),\n", + " (3, 1, 5, 0, 4, 2): (3, 1, 5, 0, 4, 2),\n", + " (3, 1, 5, 2, 0, 4): (3, 1, 5, 2, 0, 4),\n", + " (3, 1, 5, 2, 4, 0): (3, 1, 5, 2, 4, 0),\n", + " (3, 1, 5, 4, 0, 2): (3, 1, 5, 4, 0, 2),\n", + " (3, 1, 5, 4, 2, 0): (3, 1, 5, 4, 2, 0),\n", + " (3, 2, 0, 1, 4, 5): (3, 2, 0, 1, 4, 5),\n", + " (3, 2, 0, 1, 5, 4): (3, 2, 0, 1, 5, 4),\n", + " (3, 2, 0, 4, 1, 5): (3, 2, 0, 4, 1, 5),\n", + " (3, 2, 0, 4, 5, 1): (3, 2, 0, 4, 5, 1),\n", + " (3, 2, 0, 5, 1, 4): (3, 2, 0, 5, 1, 4),\n", + " (3, 2, 0, 5, 4, 1): (3, 2, 0, 5, 4, 1),\n", + " (3, 2, 1, 0, 4, 5): (3, 2, 1, 0, 4, 5),\n", + " (3, 2, 1, 0, 5, 4): (3, 2, 1, 0, 5, 4),\n", + " (3, 2, 1, 4, 0, 5): (3, 2, 1, 4, 0, 5),\n", + " (3, 2, 1, 4, 5, 0): (3, 2, 1, 4, 5, 0),\n", + " (3, 2, 1, 5, 0, 4): (3, 2, 1, 5, 0, 4),\n", + " (3, 2, 1, 5, 4, 0): (3, 2, 1, 5, 4, 0),\n", + " (3, 2, 4, 0, 1, 5): (3, 2, 4, 0, 1, 5),\n", + " (3, 2, 4, 0, 5, 1): (3, 2, 4, 0, 5, 1),\n", + " (3, 2, 4, 1, 0, 5): (3, 2, 4, 1, 0, 5),\n", + " (3, 2, 4, 1, 5, 0): (3, 2, 4, 1, 5, 0),\n", + " (3, 2, 4, 5, 0, 1): (3, 2, 4, 5, 0, 1),\n", + " (3, 2, 4, 5, 1, 0): (3, 2, 4, 5, 1, 0),\n", + " (3, 2, 5, 0, 1, 4): (3, 2, 5, 0, 1, 4),\n", + " (3, 2, 5, 0, 4, 1): (3, 2, 5, 0, 4, 1),\n", + " (3, 2, 5, 1, 0, 4): (3, 2, 5, 1, 0, 4),\n", + " (3, 2, 5, 1, 4, 0): (3, 2, 5, 1, 4, 0),\n", + " (3, 2, 5, 4, 0, 1): (3, 2, 5, 4, 0, 1),\n", + " (3, 2, 5, 4, 1, 0): (3, 2, 5, 4, 1, 0),\n", + " (3, 4, 0, 1, 2, 5): (3, 4, 0, 1, 2, 5),\n", + " (3, 4, 0, 1, 5, 2): (3, 4, 0, 1, 5, 2),\n", + " (3, 4, 0, 2, 1, 5): (3, 4, 0, 2, 1, 5),\n", + " (3, 4, 0, 2, 5, 1): (3, 4, 0, 2, 5, 1),\n", + " (3, 4, 0, 5, 1, 2): (3, 4, 0, 5, 1, 2),\n", + " (3, 4, 0, 5, 2, 1): (3, 4, 0, 5, 2, 1),\n", + " (3, 4, 1, 0, 2, 5): (3, 4, 1, 0, 2, 5),\n", + " (3, 4, 1, 0, 5, 2): (3, 4, 1, 0, 5, 2),\n", + " (3, 4, 1, 2, 0, 5): (3, 4, 1, 2, 0, 5),\n", + " (3, 4, 1, 2, 5, 0): (3, 4, 1, 2, 5, 0),\n", + " (3, 4, 1, 5, 0, 2): (3, 4, 1, 5, 0, 2),\n", + " (3, 4, 1, 5, 2, 0): (3, 4, 1, 5, 2, 0),\n", + " (3, 4, 2, 0, 1, 5): (3, 4, 2, 0, 1, 5),\n", + " (3, 4, 2, 0, 5, 1): (3, 4, 2, 0, 5, 1),\n", + " (3, 4, 2, 1, 0, 5): (3, 4, 2, 1, 0, 5),\n", + " (3, 4, 2, 1, 5, 0): (3, 4, 2, 1, 5, 0),\n", + " (3, 4, 2, 5, 0, 1): (3, 4, 2, 5, 0, 1),\n", + " (3, 4, 2, 5, 1, 0): (3, 4, 2, 5, 1, 0),\n", + " (3, 4, 5, 0, 1, 2): (3, 4, 5, 0, 1, 2),\n", + " (3, 4, 5, 0, 2, 1): (3, 4, 5, 0, 2, 1),\n", + " (3, 4, 5, 1, 0, 2): (3, 4, 5, 1, 0, 2),\n", + " (3, 4, 5, 1, 2, 0): (3, 4, 5, 1, 2, 0),\n", + " (3, 4, 5, 2, 0, 1): (3, 4, 5, 2, 0, 1),\n", + " (3, 4, 5, 2, 1, 0): (3, 4, 5, 2, 1, 0),\n", + " (3, 5, 0, 1, 2, 4): (3, 5, 0, 1, 2, 4),\n", + " (3, 5, 0, 1, 4, 2): (3, 5, 0, 1, 4, 2),\n", + " (3, 5, 0, 2, 1, 4): (3, 5, 0, 2, 1, 4),\n", + " (3, 5, 0, 2, 4, 1): (3, 5, 0, 2, 4, 1),\n", + " (3, 5, 0, 4, 1, 2): (3, 5, 0, 4, 1, 2),\n", + " (3, 5, 0, 4, 2, 1): (3, 5, 0, 4, 2, 1),\n", + " (3, 5, 1, 0, 2, 4): (3, 5, 1, 0, 2, 4),\n", + " (3, 5, 1, 0, 4, 2): (3, 5, 1, 0, 4, 2),\n", + " (3, 5, 1, 2, 0, 4): (3, 5, 1, 2, 0, 4),\n", + " (3, 5, 1, 2, 4, 0): (3, 5, 1, 2, 4, 0),\n", + " (3, 5, 1, 4, 0, 2): (3, 5, 1, 4, 0, 2),\n", + " (3, 5, 1, 4, 2, 0): (3, 5, 1, 4, 2, 0),\n", + " (3, 5, 2, 0, 1, 4): (3, 5, 2, 0, 1, 4),\n", + " (3, 5, 2, 0, 4, 1): (3, 5, 2, 0, 4, 1),\n", + " (3, 5, 2, 1, 0, 4): (3, 5, 2, 1, 0, 4),\n", + " (3, 5, 2, 1, 4, 0): (3, 5, 2, 1, 4, 0),\n", + " (3, 5, 2, 4, 0, 1): (3, 5, 2, 4, 0, 1),\n", + " (3, 5, 2, 4, 1, 0): (3, 5, 2, 4, 1, 0),\n", + " (3, 5, 4, 0, 1, 2): (3, 5, 4, 0, 1, 2),\n", + " (3, 5, 4, 0, 2, 1): (3, 5, 4, 0, 2, 1),\n", + " (3, 5, 4, 1, 0, 2): (3, 5, 4, 1, 0, 2),\n", + " (3, 5, 4, 1, 2, 0): (3, 5, 4, 1, 2, 0),\n", + " (3, 5, 4, 2, 0, 1): (3, 5, 4, 2, 0, 1),\n", + " (3, 5, 4, 2, 1, 0): (3, 5, 4, 2, 1, 0),\n", + " (4, 0, 1, 2, 3, 5): (4, 0, 1, 2, 3, 5),\n", + " (4, 0, 1, 2, 5, 3): (4, 0, 1, 2, 5, 3),\n", + " (4, 0, 1, 3, 2, 5): (4, 0, 1, 3, 2, 5),\n", + " (4, 0, 1, 3, 5, 2): (4, 0, 1, 3, 5, 2),\n", + " (4, 0, 1, 5, 2, 3): (4, 0, 1, 5, 2, 3),\n", + " (4, 0, 1, 5, 3, 2): (4, 0, 1, 5, 3, 2),\n", + " (4, 0, 2, 1, 3, 5): (4, 0, 2, 1, 3, 5),\n", + " (4, 0, 2, 1, 5, 3): (4, 0, 2, 1, 5, 3),\n", + " (4, 0, 2, 3, 1, 5): (4, 0, 2, 3, 1, 5),\n", + " (4, 0, 2, 3, 5, 1): (4, 0, 2, 3, 5, 1),\n", + " (4, 0, 2, 5, 1, 3): (4, 0, 2, 5, 1, 3),\n", + " (4, 0, 2, 5, 3, 1): (4, 0, 2, 5, 3, 1),\n", + " (4, 0, 3, 1, 2, 5): (4, 0, 3, 1, 2, 5),\n", + " (4, 0, 3, 1, 5, 2): (4, 0, 3, 1, 5, 2),\n", + " (4, 0, 3, 2, 1, 5): (4, 0, 3, 2, 1, 5),\n", + " (4, 0, 3, 2, 5, 1): (4, 0, 3, 2, 5, 1),\n", + " (4, 0, 3, 5, 1, 2): (4, 0, 3, 5, 1, 2),\n", + " (4, 0, 3, 5, 2, 1): (4, 0, 3, 5, 2, 1),\n", + " (4, 0, 5, 1, 2, 3): (4, 0, 5, 1, 2, 3),\n", + " (4, 0, 5, 1, 3, 2): (4, 0, 5, 1, 3, 2),\n", + " (4, 0, 5, 2, 1, 3): (4, 0, 5, 2, 1, 3),\n", + " (4, 0, 5, 2, 3, 1): (4, 0, 5, 2, 3, 1),\n", + " (4, 0, 5, 3, 1, 2): (4, 0, 5, 3, 1, 2),\n", + " (4, 0, 5, 3, 2, 1): (4, 0, 5, 3, 2, 1),\n", + " (4, 1, 0, 2, 3, 5): (4, 1, 0, 2, 3, 5),\n", + " (4, 1, 0, 2, 5, 3): (4, 1, 0, 2, 5, 3),\n", + " (4, 1, 0, 3, 2, 5): (4, 1, 0, 3, 2, 5),\n", + " (4, 1, 0, 3, 5, 2): (4, 1, 0, 3, 5, 2),\n", + " (4, 1, 0, 5, 2, 3): (4, 1, 0, 5, 2, 3),\n", + " (4, 1, 0, 5, 3, 2): (4, 1, 0, 5, 3, 2),\n", + " (4, 1, 2, 0, 3, 5): (4, 1, 2, 0, 3, 5),\n", + " (4, 1, 2, 0, 5, 3): (4, 1, 2, 0, 5, 3),\n", + " (4, 1, 2, 3, 0, 5): (4, 1, 2, 3, 0, 5),\n", + " (4, 1, 2, 3, 5, 0): (4, 1, 2, 3, 5, 0),\n", + " (4, 1, 2, 5, 0, 3): (4, 1, 2, 5, 0, 3),\n", + " (4, 1, 2, 5, 3, 0): (4, 1, 2, 5, 3, 0),\n", + " (4, 1, 3, 0, 2, 5): (4, 1, 3, 0, 2, 5),\n", + " (4, 1, 3, 0, 5, 2): (4, 1, 3, 0, 5, 2),\n", + " (4, 1, 3, 2, 0, 5): (4, 1, 3, 2, 0, 5),\n", + " (4, 1, 3, 2, 5, 0): (4, 1, 3, 2, 5, 0),\n", + " (4, 1, 3, 5, 0, 2): (4, 1, 3, 5, 0, 2),\n", + " (4, 1, 3, 5, 2, 0): (4, 1, 3, 5, 2, 0),\n", + " (4, 1, 5, 0, 2, 3): (4, 1, 5, 0, 2, 3),\n", + " (4, 1, 5, 0, 3, 2): (4, 1, 5, 0, 3, 2),\n", + " (4, 1, 5, 2, 0, 3): (4, 1, 5, 2, 0, 3),\n", + " (4, 1, 5, 2, 3, 0): (4, 1, 5, 2, 3, 0),\n", + " (4, 1, 5, 3, 0, 2): (4, 1, 5, 3, 0, 2),\n", + " (4, 1, 5, 3, 2, 0): (4, 1, 5, 3, 2, 0),\n", + " (4, 2, 0, 1, 3, 5): (4, 2, 0, 1, 3, 5),\n", + " (4, 2, 0, 1, 5, 3): (4, 2, 0, 1, 5, 3),\n", + " (4, 2, 0, 3, 1, 5): (4, 2, 0, 3, 1, 5),\n", + " (4, 2, 0, 3, 5, 1): (4, 2, 0, 3, 5, 1),\n", + " (4, 2, 0, 5, 1, 3): (4, 2, 0, 5, 1, 3),\n", + " (4, 2, 0, 5, 3, 1): (4, 2, 0, 5, 3, 1),\n", + " (4, 2, 1, 0, 3, 5): (4, 2, 1, 0, 3, 5),\n", + " (4, 2, 1, 0, 5, 3): (4, 2, 1, 0, 5, 3),\n", + " (4, 2, 1, 3, 0, 5): (4, 2, 1, 3, 0, 5),\n", + " (4, 2, 1, 3, 5, 0): (4, 2, 1, 3, 5, 0),\n", + " (4, 2, 1, 5, 0, 3): (4, 2, 1, 5, 0, 3),\n", + " (4, 2, 1, 5, 3, 0): (4, 2, 1, 5, 3, 0),\n", + " (4, 2, 3, 0, 1, 5): (4, 2, 3, 0, 1, 5),\n", + " (4, 2, 3, 0, 5, 1): (4, 2, 3, 0, 5, 1),\n", + " (4, 2, 3, 1, 0, 5): (4, 2, 3, 1, 0, 5),\n", + " (4, 2, 3, 1, 5, 0): (4, 2, 3, 1, 5, 0),\n", + " (4, 2, 3, 5, 0, 1): (4, 2, 3, 5, 0, 1),\n", + " (4, 2, 3, 5, 1, 0): (4, 2, 3, 5, 1, 0),\n", + " (4, 2, 5, 0, 1, 3): (4, 2, 5, 0, 1, 3),\n", + " (4, 2, 5, 0, 3, 1): (4, 2, 5, 0, 3, 1),\n", + " (4, 2, 5, 1, 0, 3): (4, 2, 5, 1, 0, 3),\n", + " (4, 2, 5, 1, 3, 0): (4, 2, 5, 1, 3, 0),\n", + " (4, 2, 5, 3, 0, 1): (4, 2, 5, 3, 0, 1),\n", + " (4, 2, 5, 3, 1, 0): (4, 2, 5, 3, 1, 0),\n", + " (4, 3, 0, 1, 2, 5): (4, 3, 0, 1, 2, 5),\n", + " (4, 3, 0, 1, 5, 2): (4, 3, 0, 1, 5, 2),\n", + " (4, 3, 0, 2, 1, 5): (4, 3, 0, 2, 1, 5),\n", + " (4, 3, 0, 2, 5, 1): (4, 3, 0, 2, 5, 1),\n", + " (4, 3, 0, 5, 1, 2): (4, 3, 0, 5, 1, 2),\n", + " (4, 3, 0, 5, 2, 1): (4, 3, 0, 5, 2, 1),\n", + " (4, 3, 1, 0, 2, 5): (4, 3, 1, 0, 2, 5),\n", + " (4, 3, 1, 0, 5, 2): (4, 3, 1, 0, 5, 2),\n", + " (4, 3, 1, 2, 0, 5): (4, 3, 1, 2, 0, 5),\n", + " (4, 3, 1, 2, 5, 0): (4, 3, 1, 2, 5, 0),\n", + " (4, 3, 1, 5, 0, 2): (4, 3, 1, 5, 0, 2),\n", + " (4, 3, 1, 5, 2, 0): (4, 3, 1, 5, 2, 0),\n", + " (4, 3, 2, 0, 1, 5): (4, 3, 2, 0, 1, 5),\n", + " (4, 3, 2, 0, 5, 1): (4, 3, 2, 0, 5, 1),\n", + " (4, 3, 2, 1, 0, 5): (4, 3, 2, 1, 0, 5),\n", + " (4, 3, 2, 1, 5, 0): (4, 3, 2, 1, 5, 0),\n", + " (4, 3, 2, 5, 0, 1): (4, 3, 2, 5, 0, 1),\n", + " (4, 3, 2, 5, 1, 0): (4, 3, 2, 5, 1, 0),\n", + " (4, 3, 5, 0, 1, 2): (4, 3, 5, 0, 1, 2),\n", + " (4, 3, 5, 0, 2, 1): (4, 3, 5, 0, 2, 1),\n", + " (4, 3, 5, 1, 0, 2): (4, 3, 5, 1, 0, 2),\n", + " (4, 3, 5, 1, 2, 0): (4, 3, 5, 1, 2, 0),\n", + " (4, 3, 5, 2, 0, 1): (4, 3, 5, 2, 0, 1),\n", + " (4, 3, 5, 2, 1, 0): (4, 3, 5, 2, 1, 0),\n", + " (4, 5, 0, 1, 2, 3): (4, 5, 0, 1, 2, 3),\n", + " (4, 5, 0, 1, 3, 2): (4, 5, 0, 1, 3, 2),\n", + " (4, 5, 0, 2, 1, 3): (4, 5, 0, 2, 1, 3),\n", + " (4, 5, 0, 2, 3, 1): (4, 5, 0, 2, 3, 1),\n", + " (4, 5, 0, 3, 1, 2): (4, 5, 0, 3, 1, 2),\n", + " (4, 5, 0, 3, 2, 1): (4, 5, 0, 3, 2, 1),\n", + " (4, 5, 1, 0, 2, 3): (4, 5, 1, 0, 2, 3),\n", + " (4, 5, 1, 0, 3, 2): (4, 5, 1, 0, 3, 2),\n", + " (4, 5, 1, 2, 0, 3): (4, 5, 1, 2, 0, 3),\n", + " (4, 5, 1, 2, 3, 0): (4, 5, 1, 2, 3, 0),\n", + " (4, 5, 1, 3, 0, 2): (4, 5, 1, 3, 0, 2),\n", + " (4, 5, 1, 3, 2, 0): (4, 5, 1, 3, 2, 0),\n", + " (4, 5, 2, 0, 1, 3): (4, 5, 2, 0, 1, 3),\n", + " (4, 5, 2, 0, 3, 1): (4, 5, 2, 0, 3, 1),\n", + " (4, 5, 2, 1, 0, 3): (4, 5, 2, 1, 0, 3),\n", + " (4, 5, 2, 1, 3, 0): (4, 5, 2, 1, 3, 0),\n", + " (4, 5, 2, 3, 0, 1): (4, 5, 2, 3, 0, 1),\n", + " (4, 5, 2, 3, 1, 0): (4, 5, 2, 3, 1, 0),\n", + " (4, 5, 3, 0, 1, 2): (4, 5, 3, 0, 1, 2),\n", + " (4, 5, 3, 0, 2, 1): (4, 5, 3, 0, 2, 1),\n", + " (4, 5, 3, 1, 0, 2): (4, 5, 3, 1, 0, 2),\n", + " (4, 5, 3, 1, 2, 0): (4, 5, 3, 1, 2, 0),\n", + " (4, 5, 3, 2, 0, 1): (4, 5, 3, 2, 0, 1),\n", + " (4, 5, 3, 2, 1, 0): (4, 5, 3, 2, 1, 0),\n", + " (5, 0, 1, 2, 3, 4): (5, 0, 1, 2, 3, 4),\n", + " (5, 0, 1, 2, 4, 3): (5, 0, 1, 2, 4, 3),\n", + " (5, 0, 1, 3, 2, 4): (5, 0, 1, 3, 2, 4),\n", + " (5, 0, 1, 3, 4, 2): (5, 0, 1, 3, 4, 2),\n", + " (5, 0, 1, 4, 2, 3): (5, 0, 1, 4, 2, 3),\n", + " (5, 0, 1, 4, 3, 2): (5, 0, 1, 4, 3, 2),\n", + " (5, 0, 2, 1, 3, 4): (5, 0, 2, 1, 3, 4),\n", + " (5, 0, 2, 1, 4, 3): (5, 0, 2, 1, 4, 3),\n", + " (5, 0, 2, 3, 1, 4): (5, 0, 2, 3, 1, 4),\n", + " (5, 0, 2, 3, 4, 1): (5, 0, 2, 3, 4, 1),\n", + " (5, 0, 2, 4, 1, 3): (5, 0, 2, 4, 1, 3),\n", + " (5, 0, 2, 4, 3, 1): (5, 0, 2, 4, 3, 1),\n", + " (5, 0, 3, 1, 2, 4): (5, 0, 3, 1, 2, 4),\n", + " (5, 0, 3, 1, 4, 2): (5, 0, 3, 1, 4, 2),\n", + " (5, 0, 3, 2, 1, 4): (5, 0, 3, 2, 1, 4),\n", + " (5, 0, 3, 2, 4, 1): (5, 0, 3, 2, 4, 1),\n", + " (5, 0, 3, 4, 1, 2): (5, 0, 3, 4, 1, 2),\n", + " (5, 0, 3, 4, 2, 1): (5, 0, 3, 4, 2, 1),\n", + " (5, 0, 4, 1, 2, 3): (5, 0, 4, 1, 2, 3),\n", + " (5, 0, 4, 1, 3, 2): (5, 0, 4, 1, 3, 2),\n", + " (5, 0, 4, 2, 1, 3): (5, 0, 4, 2, 1, 3),\n", + " (5, 0, 4, 2, 3, 1): (5, 0, 4, 2, 3, 1),\n", + " (5, 0, 4, 3, 1, 2): (5, 0, 4, 3, 1, 2),\n", + " (5, 0, 4, 3, 2, 1): (5, 0, 4, 3, 2, 1),\n", + " (5, 1, 0, 2, 3, 4): (5, 1, 0, 2, 3, 4),\n", + " (5, 1, 0, 2, 4, 3): (5, 1, 0, 2, 4, 3),\n", + " (5, 1, 0, 3, 2, 4): (5, 1, 0, 3, 2, 4),\n", + " (5, 1, 0, 3, 4, 2): (5, 1, 0, 3, 4, 2),\n", + " (5, 1, 0, 4, 2, 3): (5, 1, 0, 4, 2, 3),\n", + " (5, 1, 0, 4, 3, 2): (5, 1, 0, 4, 3, 2),\n", + " (5, 1, 2, 0, 3, 4): (5, 1, 2, 0, 3, 4),\n", + " (5, 1, 2, 0, 4, 3): (5, 1, 2, 0, 4, 3),\n", + " (5, 1, 2, 3, 0, 4): (5, 1, 2, 3, 0, 4),\n", + " (5, 1, 2, 3, 4, 0): (5, 1, 2, 3, 4, 0),\n", + " (5, 1, 2, 4, 0, 3): (5, 1, 2, 4, 0, 3),\n", + " (5, 1, 2, 4, 3, 0): (5, 1, 2, 4, 3, 0),\n", + " (5, 1, 3, 0, 2, 4): (5, 1, 3, 0, 2, 4),\n", + " (5, 1, 3, 0, 4, 2): (5, 1, 3, 0, 4, 2),\n", + " (5, 1, 3, 2, 0, 4): (5, 1, 3, 2, 0, 4),\n", + " (5, 1, 3, 2, 4, 0): (5, 1, 3, 2, 4, 0),\n", + " (5, 1, 3, 4, 0, 2): (5, 1, 3, 4, 0, 2),\n", + " (5, 1, 3, 4, 2, 0): (5, 1, 3, 4, 2, 0),\n", + " (5, 1, 4, 0, 2, 3): (5, 1, 4, 0, 2, 3),\n", + " (5, 1, 4, 0, 3, 2): (5, 1, 4, 0, 3, 2),\n", + " (5, 1, 4, 2, 0, 3): (5, 1, 4, 2, 0, 3),\n", + " (5, 1, 4, 2, 3, 0): (5, 1, 4, 2, 3, 0),\n", + " (5, 1, 4, 3, 0, 2): (5, 1, 4, 3, 0, 2),\n", + " (5, 1, 4, 3, 2, 0): (5, 1, 4, 3, 2, 0),\n", + " (5, 2, 0, 1, 3, 4): (5, 2, 0, 1, 3, 4),\n", + " (5, 2, 0, 1, 4, 3): (5, 2, 0, 1, 4, 3),\n", + " (5, 2, 0, 3, 1, 4): (5, 2, 0, 3, 1, 4),\n", + " (5, 2, 0, 3, 4, 1): (5, 2, 0, 3, 4, 1),\n", + " (5, 2, 0, 4, 1, 3): (5, 2, 0, 4, 1, 3),\n", + " (5, 2, 0, 4, 3, 1): (5, 2, 0, 4, 3, 1),\n", + " (5, 2, 1, 0, 3, 4): (5, 2, 1, 0, 3, 4),\n", + " (5, 2, 1, 0, 4, 3): (5, 2, 1, 0, 4, 3),\n", + " (5, 2, 1, 3, 0, 4): (5, 2, 1, 3, 0, 4),\n", + " (5, 2, 1, 3, 4, 0): (5, 2, 1, 3, 4, 0),\n", + " (5, 2, 1, 4, 0, 3): (5, 2, 1, 4, 0, 3),\n", + " (5, 2, 1, 4, 3, 0): (5, 2, 1, 4, 3, 0),\n", + " (5, 2, 3, 0, 1, 4): (5, 2, 3, 0, 1, 4),\n", + " (5, 2, 3, 0, 4, 1): (5, 2, 3, 0, 4, 1),\n", + " (5, 2, 3, 1, 0, 4): (5, 2, 3, 1, 0, 4),\n", + " (5, 2, 3, 1, 4, 0): (5, 2, 3, 1, 4, 0),\n", + " (5, 2, 3, 4, 0, 1): (5, 2, 3, 4, 0, 1),\n", + " (5, 2, 3, 4, 1, 0): (5, 2, 3, 4, 1, 0),\n", + " (5, 2, 4, 0, 1, 3): (5, 2, 4, 0, 1, 3),\n", + " (5, 2, 4, 0, 3, 1): (5, 2, 4, 0, 3, 1),\n", + " (5, 2, 4, 1, 0, 3): (5, 2, 4, 1, 0, 3),\n", + " (5, 2, 4, 1, 3, 0): (5, 2, 4, 1, 3, 0),\n", + " (5, 2, 4, 3, 0, 1): (5, 2, 4, 3, 0, 1),\n", + " (5, 2, 4, 3, 1, 0): (5, 2, 4, 3, 1, 0),\n", + " (5, 3, 0, 1, 2, 4): (5, 3, 0, 1, 2, 4),\n", + " (5, 3, 0, 1, 4, 2): (5, 3, 0, 1, 4, 2),\n", + " (5, 3, 0, 2, 1, 4): (5, 3, 0, 2, 1, 4),\n", + " (5, 3, 0, 2, 4, 1): (5, 3, 0, 2, 4, 1),\n", + " (5, 3, 0, 4, 1, 2): (5, 3, 0, 4, 1, 2),\n", + " (5, 3, 0, 4, 2, 1): (5, 3, 0, 4, 2, 1),\n", + " (5, 3, 1, 0, 2, 4): (5, 3, 1, 0, 2, 4),\n", + " (5, 3, 1, 0, 4, 2): (5, 3, 1, 0, 4, 2),\n", + " (5, 3, 1, 2, 0, 4): (5, 3, 1, 2, 0, 4),\n", + " (5, 3, 1, 2, 4, 0): (5, 3, 1, 2, 4, 0),\n", + " (5, 3, 1, 4, 0, 2): (5, 3, 1, 4, 0, 2),\n", + " (5, 3, 1, 4, 2, 0): (5, 3, 1, 4, 2, 0),\n", + " (5, 3, 2, 0, 1, 4): (5, 3, 2, 0, 1, 4),\n", + " (5, 3, 2, 0, 4, 1): (5, 3, 2, 0, 4, 1),\n", + " (5, 3, 2, 1, 0, 4): (5, 3, 2, 1, 0, 4),\n", + " (5, 3, 2, 1, 4, 0): (5, 3, 2, 1, 4, 0),\n", + " (5, 3, 2, 4, 0, 1): (5, 3, 2, 4, 0, 1),\n", + " (5, 3, 2, 4, 1, 0): (5, 3, 2, 4, 1, 0),\n", + " (5, 3, 4, 0, 1, 2): (5, 3, 4, 0, 1, 2),\n", + " (5, 3, 4, 0, 2, 1): (5, 3, 4, 0, 2, 1),\n", + " (5, 3, 4, 1, 0, 2): (5, 3, 4, 1, 0, 2),\n", + " (5, 3, 4, 1, 2, 0): (5, 3, 4, 1, 2, 0),\n", + " (5, 3, 4, 2, 0, 1): (5, 3, 4, 2, 0, 1),\n", + " (5, 3, 4, 2, 1, 0): (5, 3, 4, 2, 1, 0),\n", + " (5, 4, 0, 1, 2, 3): (5, 4, 0, 1, 2, 3),\n", + " (5, 4, 0, 1, 3, 2): (5, 4, 0, 1, 3, 2),\n", + " (5, 4, 0, 2, 1, 3): (5, 4, 0, 2, 1, 3),\n", + " (5, 4, 0, 2, 3, 1): (5, 4, 0, 2, 3, 1),\n", + " (5, 4, 0, 3, 1, 2): (5, 4, 0, 3, 1, 2),\n", + " (5, 4, 0, 3, 2, 1): (5, 4, 0, 3, 2, 1),\n", + " (5, 4, 1, 0, 2, 3): (5, 4, 1, 0, 2, 3),\n", + " (5, 4, 1, 0, 3, 2): (5, 4, 1, 0, 3, 2),\n", + " (5, 4, 1, 2, 0, 3): (5, 4, 1, 2, 0, 3),\n", + " (5, 4, 1, 2, 3, 0): (5, 4, 1, 2, 3, 0),\n", + " (5, 4, 1, 3, 0, 2): (5, 4, 1, 3, 0, 2),\n", + " (5, 4, 1, 3, 2, 0): (5, 4, 1, 3, 2, 0),\n", + " (5, 4, 2, 0, 1, 3): (5, 4, 2, 0, 1, 3),\n", + " (5, 4, 2, 0, 3, 1): (5, 4, 2, 0, 3, 1),\n", + " (5, 4, 2, 1, 0, 3): (5, 4, 2, 1, 0, 3),\n", + " (5, 4, 2, 1, 3, 0): (5, 4, 2, 1, 3, 0),\n", + " (5, 4, 2, 3, 0, 1): (5, 4, 2, 3, 0, 1),\n", + " (5, 4, 2, 3, 1, 0): (5, 4, 2, 3, 1, 0),\n", + " (5, 4, 3, 0, 1, 2): (5, 4, 3, 0, 1, 2),\n", + " (5, 4, 3, 0, 2, 1): (5, 4, 3, 0, 2, 1),\n", + " (5, 4, 3, 1, 0, 2): (5, 4, 3, 1, 0, 2),\n", + " (5, 4, 3, 1, 2, 0): (5, 4, 3, 1, 2, 0),\n", + " (5, 4, 3, 2, 0, 1): (5, 4, 3, 2, 0, 1),\n", + " (5, 4, 3, 2, 1, 0): (5, 4, 3, 2, 1, 0)}" + ] + }, + "execution_count": 6, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "transpositions6 = {t: t for t in set(itertools.permutations(list(range(6))))}\n", + "transpositions6" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(((2, 4, 3, 5, 0, 1), (1, 2), ),\n", + " -1437.9908206760847)" + ] + }, + "execution_count": 7, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "key_b, score = amsco_break(c7b, translist=transpositions6)\n", + "key_b, score" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "[[AmscoSlice(index=0, start=0, end=1),\n", + " AmscoSlice(index=1, start=1, end=3),\n", + " AmscoSlice(index=2, start=3, end=4),\n", + " AmscoSlice(index=3, start=4, end=6),\n", + " AmscoSlice(index=4, start=6, end=7),\n", + " AmscoSlice(index=5, start=7, end=9)],\n", + " [AmscoSlice(index=6, start=9, end=11),\n", + " AmscoSlice(index=7, start=11, end=12),\n", + " AmscoSlice(index=8, start=12, end=14),\n", + " AmscoSlice(index=9, start=14, end=15),\n", + " AmscoSlice(index=10, start=15, end=17),\n", + " AmscoSlice(index=11, start=17, end=18)],\n", + " [AmscoSlice(index=12, start=18, end=19),\n", + " AmscoSlice(index=13, start=19, end=21),\n", + " AmscoSlice(index=14, start=21, end=22),\n", + " AmscoSlice(index=15, start=22, end=24),\n", + " AmscoSlice(index=16, start=24, end=25),\n", + " AmscoSlice(index=17, start=25, end=27)],\n", + " [AmscoSlice(index=18, start=27, end=29),\n", + " AmscoSlice(index=19, start=29, end=30),\n", + " AmscoSlice(index=20, start=30, end=32),\n", + " AmscoSlice(index=21, start=32, end=33),\n", + " AmscoSlice(index=22, start=33, end=35),\n", + " AmscoSlice(index=23, start=35, end=36)],\n", + " [AmscoSlice(index=24, start=36, end=37),\n", + " AmscoSlice(index=25, start=37, end=39),\n", + " AmscoSlice(index=26, start=39, end=40),\n", + " AmscoSlice(index=27, start=40, end=42),\n", + " AmscoSlice(index=28, start=42, end=43),\n", + " AmscoSlice(index=29, start=43, end=45)],\n", + " [AmscoSlice(index=30, start=45, end=47),\n", + " AmscoSlice(index=31, start=47, end=48),\n", + " AmscoSlice(index=32, start=48, end=50),\n", + " AmscoSlice(index=33, start=50, end=51),\n", + " AmscoSlice(index=34, start=51, end=53),\n", + " AmscoSlice(index=35, start=53, end=54)],\n", + " [AmscoSlice(index=36, start=54, end=55),\n", + " AmscoSlice(index=37, start=55, end=57),\n", + " AmscoSlice(index=38, start=57, end=58),\n", + " AmscoSlice(index=39, start=58, end=60),\n", + " AmscoSlice(index=40, start=60, end=61),\n", + " AmscoSlice(index=41, start=61, end=63)],\n", + " [AmscoSlice(index=42, start=63, end=65),\n", + " AmscoSlice(index=43, start=65, end=66),\n", + " AmscoSlice(index=44, start=66, end=68),\n", + " AmscoSlice(index=45, start=68, end=69),\n", + " AmscoSlice(index=46, start=69, end=71),\n", + " AmscoSlice(index=47, start=71, end=72)],\n", + " [AmscoSlice(index=48, start=72, end=73),\n", + " AmscoSlice(index=49, start=73, end=75),\n", + " AmscoSlice(index=50, start=75, end=76),\n", + " AmscoSlice(index=51, start=76, end=78),\n", + " AmscoSlice(index=52, start=78, end=79),\n", + " AmscoSlice(index=53, start=79, end=81)],\n", + " [AmscoSlice(index=54, start=81, end=83),\n", + " AmscoSlice(index=55, start=83, end=84),\n", + " AmscoSlice(index=56, start=84, end=86),\n", + " AmscoSlice(index=57, start=86, end=87),\n", + " AmscoSlice(index=58, start=87, end=89),\n", + " AmscoSlice(index=59, start=89, end=90)],\n", + " [AmscoSlice(index=60, start=90, end=91),\n", + " AmscoSlice(index=61, start=91, end=93),\n", + " AmscoSlice(index=62, start=93, end=94),\n", + " AmscoSlice(index=63, start=94, end=96),\n", + " AmscoSlice(index=64, start=96, end=97),\n", + " AmscoSlice(index=65, start=97, end=99)],\n", + " [AmscoSlice(index=66, start=99, end=101),\n", + " AmscoSlice(index=67, start=101, end=102),\n", + " AmscoSlice(index=68, start=102, end=104),\n", + " AmscoSlice(index=69, start=104, end=105),\n", + " AmscoSlice(index=70, start=105, end=107),\n", + " AmscoSlice(index=71, start=107, end=108)],\n", + " [AmscoSlice(index=72, start=108, end=109),\n", + " AmscoSlice(index=73, start=109, end=111),\n", + " AmscoSlice(index=74, start=111, end=112),\n", + " AmscoSlice(index=75, start=112, end=114),\n", + " AmscoSlice(index=76, start=114, end=115),\n", + " AmscoSlice(index=77, start=115, end=117)],\n", + " [AmscoSlice(index=78, start=117, end=119),\n", + " AmscoSlice(index=79, start=119, end=120),\n", + " AmscoSlice(index=80, start=120, end=122),\n", + " AmscoSlice(index=81, start=122, end=123),\n", + " AmscoSlice(index=82, start=123, end=125),\n", + " AmscoSlice(index=83, start=125, end=126)],\n", + " [AmscoSlice(index=84, start=126, end=127),\n", + " AmscoSlice(index=85, start=127, end=129),\n", + " AmscoSlice(index=86, start=129, end=130),\n", + " AmscoSlice(index=87, start=130, end=132),\n", + " AmscoSlice(index=88, start=132, end=133),\n", + " AmscoSlice(index=89, start=133, end=135)],\n", + " [AmscoSlice(index=90, start=135, end=137),\n", + " AmscoSlice(index=91, start=137, end=138),\n", + " AmscoSlice(index=92, start=138, end=140),\n", + " AmscoSlice(index=93, start=140, end=141),\n", + " AmscoSlice(index=94, start=141, end=143),\n", + " AmscoSlice(index=95, start=143, end=144)],\n", + " [AmscoSlice(index=96, start=144, end=145),\n", + " AmscoSlice(index=97, start=145, end=147),\n", + " AmscoSlice(index=98, start=147, end=148),\n", + " AmscoSlice(index=99, start=148, end=150),\n", + " AmscoSlice(index=100, start=150, end=151),\n", + " AmscoSlice(index=101, start=151, end=153)],\n", + " [AmscoSlice(index=102, start=153, end=155),\n", + " AmscoSlice(index=103, start=155, end=156),\n", + " AmscoSlice(index=104, start=156, end=158),\n", + " AmscoSlice(index=105, start=158, end=159),\n", + " AmscoSlice(index=106, start=159, end=161),\n", + " AmscoSlice(index=107, start=161, end=162)],\n", + " [AmscoSlice(index=108, start=162, end=163),\n", + " AmscoSlice(index=109, start=163, end=165),\n", + " AmscoSlice(index=110, start=165, end=166),\n", + " AmscoSlice(index=111, start=166, end=168),\n", + " AmscoSlice(index=112, start=168, end=169),\n", + " AmscoSlice(index=113, start=169, end=171)],\n", + " [AmscoSlice(index=114, start=171, end=173),\n", + " AmscoSlice(index=115, start=173, end=174),\n", + " AmscoSlice(index=116, start=174, end=176),\n", + " AmscoSlice(index=117, start=176, end=177),\n", + " AmscoSlice(index=118, start=177, end=179),\n", + " AmscoSlice(index=119, start=179, end=180)],\n", + " [AmscoSlice(index=120, start=180, end=181),\n", + " AmscoSlice(index=121, start=181, end=183),\n", + " AmscoSlice(index=122, start=183, end=184),\n", + " AmscoSlice(index=123, start=184, end=186),\n", + " AmscoSlice(index=124, start=186, end=187),\n", + " AmscoSlice(index=125, start=187, end=189)],\n", + " [AmscoSlice(index=126, start=189, end=191),\n", + " AmscoSlice(index=127, start=191, end=192),\n", + " AmscoSlice(index=128, start=192, end=194),\n", + " AmscoSlice(index=129, start=194, end=195),\n", + " AmscoSlice(index=130, start=195, end=197),\n", + " AmscoSlice(index=131, start=197, end=198)],\n", + " [AmscoSlice(index=132, start=198, end=199),\n", + " AmscoSlice(index=133, start=199, end=201),\n", + " AmscoSlice(index=134, start=201, end=202),\n", + " AmscoSlice(index=135, start=202, end=204),\n", + " AmscoSlice(index=136, start=204, end=205),\n", + " AmscoSlice(index=137, start=205, end=207)],\n", + " [AmscoSlice(index=138, start=207, end=209),\n", + " AmscoSlice(index=139, start=209, end=210),\n", + " AmscoSlice(index=140, start=210, end=212),\n", + " AmscoSlice(index=141, start=212, end=213),\n", + " AmscoSlice(index=142, start=213, end=215),\n", + " AmscoSlice(index=143, start=215, end=216)],\n", + " [AmscoSlice(index=144, start=216, end=217),\n", + " AmscoSlice(index=145, start=217, end=219),\n", + " AmscoSlice(index=146, start=219, end=220),\n", + " AmscoSlice(index=147, start=220, end=222),\n", + " AmscoSlice(index=148, start=222, end=223),\n", + " AmscoSlice(index=149, start=223, end=225)],\n", + " [AmscoSlice(index=150, start=225, end=227),\n", + " AmscoSlice(index=151, start=227, end=228),\n", + " AmscoSlice(index=152, start=228, end=230),\n", + " AmscoSlice(index=153, start=230, end=231),\n", + " AmscoSlice(index=154, start=231, end=233),\n", + " AmscoSlice(index=155, start=233, end=234)],\n", + " [AmscoSlice(index=156, start=234, end=235),\n", + " AmscoSlice(index=157, start=235, end=237),\n", + " AmscoSlice(index=158, start=237, end=238),\n", + " AmscoSlice(index=159, start=238, end=240),\n", + " AmscoSlice(index=160, start=240, end=241),\n", + " AmscoSlice(index=161, start=241, end=243)],\n", + " [AmscoSlice(index=162, start=243, end=245),\n", + " AmscoSlice(index=163, start=245, end=246),\n", + " AmscoSlice(index=164, start=246, end=248),\n", + " AmscoSlice(index=165, start=248, end=249),\n", + " AmscoSlice(index=166, start=249, end=251),\n", + " AmscoSlice(index=167, start=251, end=252)],\n", + " [AmscoSlice(index=168, start=252, end=253),\n", + " AmscoSlice(index=169, start=253, end=255),\n", + " AmscoSlice(index=170, start=255, end=256),\n", + " AmscoSlice(index=171, start=256, end=258),\n", + " AmscoSlice(index=172, start=258, end=259),\n", + " AmscoSlice(index=173, start=259, end=261)],\n", + " [AmscoSlice(index=174, start=261, end=263),\n", + " AmscoSlice(index=175, start=263, end=264),\n", + " AmscoSlice(index=176, start=264, end=266),\n", + " AmscoSlice(index=177, start=266, end=267),\n", + " AmscoSlice(index=178, start=267, end=269),\n", + " AmscoSlice(index=179, start=269, end=270)],\n", + " [AmscoSlice(index=180, start=270, end=271),\n", + " AmscoSlice(index=181, start=271, end=273),\n", + " AmscoSlice(index=182, start=273, end=274),\n", + " AmscoSlice(index=183, start=274, end=276),\n", + " AmscoSlice(index=184, start=276, end=277),\n", + " AmscoSlice(index=185, start=277, end=279)],\n", + " [AmscoSlice(index=186, start=279, end=281),\n", + " AmscoSlice(index=187, start=281, end=282),\n", + " AmscoSlice(index=188, start=282, end=284),\n", + " AmscoSlice(index=189, start=284, end=285),\n", + " AmscoSlice(index=190, start=285, end=287),\n", + " AmscoSlice(index=191, start=287, end=288)],\n", + " [AmscoSlice(index=192, start=288, end=289),\n", + " AmscoSlice(index=193, start=289, end=291),\n", + " AmscoSlice(index=194, start=291, end=292),\n", + " AmscoSlice(index=195, start=292, end=294),\n", + " AmscoSlice(index=196, start=294, end=295),\n", + " AmscoSlice(index=197, start=295, end=297)],\n", + " [AmscoSlice(index=198, start=297, end=299),\n", + " AmscoSlice(index=199, start=299, end=300),\n", + " AmscoSlice(index=200, start=300, end=302),\n", + " AmscoSlice(index=201, start=302, end=303),\n", + " AmscoSlice(index=202, start=303, end=305),\n", + " AmscoSlice(index=203, start=305, end=306)],\n", + " [AmscoSlice(index=204, start=306, end=307),\n", + " AmscoSlice(index=205, start=307, end=309),\n", + " AmscoSlice(index=206, start=309, end=310),\n", + " AmscoSlice(index=207, start=310, end=312),\n", + " AmscoSlice(index=208, start=312, end=313),\n", + " AmscoSlice(index=209, start=313, end=315)],\n", + " [AmscoSlice(index=210, start=315, end=317),\n", + " AmscoSlice(index=211, start=317, end=318),\n", + " AmscoSlice(index=212, start=318, end=320),\n", + " AmscoSlice(index=213, start=320, end=321),\n", + " AmscoSlice(index=214, start=321, end=323),\n", + " AmscoSlice(index=215, start=323, end=324)],\n", + " [AmscoSlice(index=216, start=324, end=325),\n", + " AmscoSlice(index=217, start=325, end=327),\n", + " AmscoSlice(index=218, start=327, end=328),\n", + " AmscoSlice(index=219, start=328, end=330),\n", + " AmscoSlice(index=220, start=330, end=331),\n", + " AmscoSlice(index=221, start=331, end=333)],\n", + " [AmscoSlice(index=222, start=333, end=335),\n", + " AmscoSlice(index=223, start=335, end=336),\n", + " AmscoSlice(index=224, start=336, end=338),\n", + " AmscoSlice(index=225, start=338, end=339),\n", + " AmscoSlice(index=226, start=339, end=341),\n", + " AmscoSlice(index=227, start=341, end=342)],\n", + " [AmscoSlice(index=228, start=342, end=343),\n", + " AmscoSlice(index=229, start=343, end=345),\n", + " AmscoSlice(index=230, start=345, end=346),\n", + " AmscoSlice(index=231, start=346, end=348),\n", + " AmscoSlice(index=232, start=348, end=349),\n", + " AmscoSlice(index=233, start=349, end=351)],\n", + " [AmscoSlice(index=234, start=351, end=353),\n", + " AmscoSlice(index=235, start=353, end=354),\n", + " AmscoSlice(index=236, start=354, end=356),\n", + " AmscoSlice(index=237, start=356, end=357),\n", + " AmscoSlice(index=238, start=357, end=359),\n", + " AmscoSlice(index=239, start=359, end=360)],\n", + " [AmscoSlice(index=240, start=360, end=361),\n", + " AmscoSlice(index=241, start=361, end=363),\n", + " AmscoSlice(index=242, start=363, end=364),\n", + " AmscoSlice(index=243, start=364, end=366),\n", + " AmscoSlice(index=244, start=366, end=367),\n", + " AmscoSlice(index=245, start=367, end=369)],\n", + " [AmscoSlice(index=246, start=369, end=371),\n", + " AmscoSlice(index=247, start=371, end=372),\n", + " AmscoSlice(index=248, start=372, end=374),\n", + " AmscoSlice(index=249, start=374, end=375),\n", + " AmscoSlice(index=250, start=375, end=377),\n", + " AmscoSlice(index=251, start=377, end=378)],\n", + " [AmscoSlice(index=252, start=378, end=379),\n", + " AmscoSlice(index=253, start=379, end=381),\n", + " AmscoSlice(index=254, start=381, end=382),\n", + " AmscoSlice(index=255, start=382, end=384),\n", + " AmscoSlice(index=256, start=384, end=385),\n", + " AmscoSlice(index=257, start=385, end=387)],\n", + " [AmscoSlice(index=258, start=387, end=389),\n", + " AmscoSlice(index=259, start=389, end=390),\n", + " AmscoSlice(index=260, start=390, end=392),\n", + " AmscoSlice(index=261, start=392, end=393),\n", + " AmscoSlice(index=262, start=393, end=395),\n", + " AmscoSlice(index=263, start=395, end=396)],\n", + " [AmscoSlice(index=264, start=396, end=397),\n", + " AmscoSlice(index=265, start=397, end=399),\n", + " AmscoSlice(index=266, start=399, end=400),\n", + " AmscoSlice(index=267, start=400, end=402),\n", + " AmscoSlice(index=268, start=402, end=403),\n", + " AmscoSlice(index=269, start=403, end=405)],\n", + " [AmscoSlice(index=270, start=405, end=407),\n", + " AmscoSlice(index=271, start=407, end=408),\n", + " AmscoSlice(index=272, start=408, end=410),\n", + " AmscoSlice(index=273, start=410, end=411),\n", + " AmscoSlice(index=274, start=411, end=413),\n", + " AmscoSlice(index=275, start=413, end=414)],\n", + " [AmscoSlice(index=276, start=414, end=415),\n", + " AmscoSlice(index=277, start=415, end=417),\n", + " AmscoSlice(index=278, start=417, end=418),\n", + " AmscoSlice(index=279, start=418, end=420),\n", + " AmscoSlice(index=280, start=420, end=421),\n", + " AmscoSlice(index=281, start=421, end=423)],\n", + " [AmscoSlice(index=282, start=423, end=425),\n", + " AmscoSlice(index=283, start=425, end=426),\n", + " AmscoSlice(index=284, start=426, end=428),\n", + " AmscoSlice(index=285, start=428, end=429),\n", + " AmscoSlice(index=286, start=429, end=431),\n", + " AmscoSlice(index=287, start=431, end=432)],\n", + " [AmscoSlice(index=288, start=432, end=433),\n", + " AmscoSlice(index=289, start=433, end=435),\n", + " AmscoSlice(index=290, start=435, end=436),\n", + " AmscoSlice(index=291, start=436, end=438),\n", + " AmscoSlice(index=292, start=438, end=439),\n", + " AmscoSlice(index=293, start=439, end=441)],\n", + " [AmscoSlice(index=294, start=441, end=443),\n", + " AmscoSlice(index=295, start=443, end=444),\n", + " AmscoSlice(index=296, start=444, end=446),\n", + " AmscoSlice(index=297, start=446, end=447),\n", + " AmscoSlice(index=298, start=447, end=449),\n", + " AmscoSlice(index=299, start=449, end=450)],\n", + " [AmscoSlice(index=300, start=450, end=451),\n", + " AmscoSlice(index=301, start=451, end=453),\n", + " AmscoSlice(index=302, start=453, end=454),\n", + " AmscoSlice(index=303, start=454, end=456),\n", + " AmscoSlice(index=304, start=456, end=457),\n", + " AmscoSlice(index=305, start=457, end=459)],\n", + " [AmscoSlice(index=306, start=459, end=461),\n", + " AmscoSlice(index=307, start=461, end=462),\n", + " AmscoSlice(index=308, start=462, end=464),\n", + " AmscoSlice(index=309, start=464, end=465),\n", + " AmscoSlice(index=310, start=465, end=467),\n", + " AmscoSlice(index=311, start=467, end=468)],\n", + " [AmscoSlice(index=312, start=468, end=469),\n", + " AmscoSlice(index=313, start=469, end=471),\n", + " AmscoSlice(index=314, start=471, end=472),\n", + " AmscoSlice(index=315, start=472, end=474),\n", + " AmscoSlice(index=316, start=474, end=475),\n", + " AmscoSlice(index=317, start=475, end=477)],\n", + " [AmscoSlice(index=318, start=477, end=479),\n", + " AmscoSlice(index=319, start=479, end=480),\n", + " AmscoSlice(index=320, start=480, end=482),\n", + " AmscoSlice(index=321, start=482, end=483),\n", + " AmscoSlice(index=322, start=483, end=485),\n", + " AmscoSlice(index=323, start=485, end=486)],\n", + " [AmscoSlice(index=324, start=486, end=487),\n", + " AmscoSlice(index=325, start=487, end=489),\n", + " AmscoSlice(index=326, start=489, end=490),\n", + " AmscoSlice(index=327, start=490, end=492),\n", + " AmscoSlice(index=328, start=492, end=493),\n", + " AmscoSlice(index=329, start=493, end=495)],\n", + " [AmscoSlice(index=330, start=495, end=497),\n", + " AmscoSlice(index=331, start=497, end=498),\n", + " AmscoSlice(index=332, start=498, end=500),\n", + " AmscoSlice(index=333, start=500, end=501),\n", + " AmscoSlice(index=334, start=501, end=503),\n", + " AmscoSlice(index=335, start=503, end=504)],\n", + " [AmscoSlice(index=336, start=504, end=505),\n", + " AmscoSlice(index=337, start=505, end=507),\n", + " AmscoSlice(index=338, start=507, end=508),\n", + " AmscoSlice(index=339, start=508, end=510),\n", + " AmscoSlice(index=340, start=510, end=511),\n", + " AmscoSlice(index=341, start=511, end=513)],\n", + " [AmscoSlice(index=342, start=513, end=515),\n", + " AmscoSlice(index=343, start=515, end=516),\n", + " AmscoSlice(index=344, start=516, end=518),\n", + " AmscoSlice(index=345, start=518, end=519),\n", + " AmscoSlice(index=346, start=519, end=521),\n", + " AmscoSlice(index=347, start=521, end=522)],\n", + " [AmscoSlice(index=348, start=522, end=523),\n", + " AmscoSlice(index=349, start=523, end=525),\n", + " AmscoSlice(index=350, start=525, end=526),\n", + " AmscoSlice(index=351, start=526, end=528),\n", + " AmscoSlice(index=352, start=528, end=529),\n", + " AmscoSlice(index=353, start=529, end=531)],\n", + " [AmscoSlice(index=354, start=531, end=533),\n", + " AmscoSlice(index=355, start=533, end=534),\n", + " AmscoSlice(index=356, start=534, end=536),\n", + " AmscoSlice(index=357, start=536, end=537),\n", + " AmscoSlice(index=358, start=537, end=539),\n", + " AmscoSlice(index=359, start=539, end=540)],\n", + " [AmscoSlice(index=360, start=540, end=541),\n", + " AmscoSlice(index=361, start=541, end=543),\n", + " AmscoSlice(index=362, start=543, end=544),\n", + " AmscoSlice(index=363, start=544, end=546),\n", + " AmscoSlice(index=364, start=546, end=547),\n", + " AmscoSlice(index=365, start=547, end=549)],\n", + " [AmscoSlice(index=366, start=549, end=551),\n", + " AmscoSlice(index=367, start=551, end=552),\n", + " AmscoSlice(index=368, start=552, end=554),\n", + " AmscoSlice(index=369, start=554, end=555),\n", + " AmscoSlice(index=370, start=555, end=557),\n", + " AmscoSlice(index=371, start=557, end=558)],\n", + " [AmscoSlice(index=372, start=558, end=559),\n", + " AmscoSlice(index=373, start=559, end=561),\n", + " AmscoSlice(index=374, start=561, end=562),\n", + " AmscoSlice(index=375, start=562, end=564),\n", + " AmscoSlice(index=376, start=564, end=565),\n", + " AmscoSlice(index=377, start=565, end=567)],\n", + " [AmscoSlice(index=378, start=567, end=569),\n", + " AmscoSlice(index=379, start=569, end=570),\n", + " AmscoSlice(index=380, start=570, end=572),\n", + " AmscoSlice(index=381, start=572, end=573),\n", + " AmscoSlice(index=382, start=573, end=575),\n", + " AmscoSlice(index=383, start=575, end=576)],\n", + " [AmscoSlice(index=384, start=576, end=577),\n", + " AmscoSlice(index=385, start=577, end=579),\n", + " AmscoSlice(index=386, start=579, end=580),\n", + " AmscoSlice(index=387, start=580, end=582),\n", + " AmscoSlice(index=388, start=582, end=583),\n", + " AmscoSlice(index=389, start=583, end=585)],\n", + " [AmscoSlice(index=390, start=585, end=587),\n", + " AmscoSlice(index=391, start=587, end=588),\n", + " AmscoSlice(index=392, start=588, end=590),\n", + " AmscoSlice(index=393, start=590, end=591),\n", + " AmscoSlice(index=394, start=591, end=593),\n", + " AmscoSlice(index=395, start=593, end=594)],\n", + " [AmscoSlice(index=396, start=594, end=595),\n", + " AmscoSlice(index=397, start=595, end=597),\n", + " AmscoSlice(index=398, start=597, end=598),\n", + " AmscoSlice(index=399, start=598, end=600),\n", + " AmscoSlice(index=400, start=600, end=601),\n", + " AmscoSlice(index=401, start=601, end=603)],\n", + " [AmscoSlice(index=402, start=603, end=605),\n", + " AmscoSlice(index=403, start=605, end=606),\n", + " AmscoSlice(index=404, start=606, end=608),\n", + " AmscoSlice(index=405, start=608, end=609),\n", + " AmscoSlice(index=406, start=609, end=611),\n", + " AmscoSlice(index=407, start=611, end=612)]]" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "amsco_transposition_positions(c7b, 'abcdef', \n", + " fillpattern=(1, 2),\n", + " fillstyle=AmscoFillStyle.reverse_each_row)" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "metadata": { + "collapsed": false, + "scrolled": true + }, + "outputs": [ + { + "data": { + "text/plain": [ + "['stager',\n", + " 'staler',\n", + " 'stalin',\n", + " 'stamen',\n", + " 'sucker',\n", + " 'tucker',\n", + " 'twangs',\n", + " 'twerps',\n", + " 'twirls',\n", + " 'staffer',\n", + " 'stagers',\n", + " 'stagger',\n", + " 'stalins',\n", + " 'stamens',\n", + " 'stamina',\n", + " 'stammer',\n", + " 'statler',\n", + " 'suckers',\n", + " 'sudsier',\n", + " 'swagger',\n", + " 'tubbier',\n", + " 'tycoons',\n", + " 'loadable',\n", + " 'noblemen',\n", + " 'rubidium',\n", + " 'staffers',\n", + " 'staggers',\n", + " 'staminas',\n", + " 'stammers',\n", + " 'standard',\n", + " 'steelier',\n", + " 'submerse',\n", + " 'swaggers',\n", + " 'tubbiest',\n", + " 'tuitions',\n", + " 'twenties',\n", + " 'stalemate',\n", + " 'staleness',\n", + " 'stalinist',\n", + " 'stammerer',\n", + " 'standards',\n", + " 'submerses',\n", + " 'swaggerer',\n", + " 'stalemates',\n", + " 'stalenesss',\n", + " 'stammerers',\n", + " 'stepsister',\n", + " 'succulence',\n", + " 'statistical',\n", + " 'stepsisters',\n", + " 'succulences',\n", + " 'statistician',\n", + " 'statisticians']" + ] + }, + "execution_count": 9, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "transpositions[key_b[0]]" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "security protocol solitaire comrades under a decree from moscow we are confined to using a new high security stream cipher stolen from the americans the solitaire cipher all files classified top secret and above are to be archived using this method this new field cipher has been tested and proven to match the security of the fi alka machine without the overhead of the technology you will need only a deck of cards to implement the cipher the key to be used will be provided and distributed on a one time pad and you must destroy the key as you use it the key consists of a random shuffle of a full deck of cards together with two distinguishable jokers agents should be freely able to carry this equipment without arousing suspicion\n" + ] + } + ], + "source": [ + "print(' '.join(segment(sanitise(\n", + " amsco_transposition_decipher(sanitise(c7b), \n", + " keyword=transpositions[key_b[0]][0], \n", + " fillpattern=key_b[1],\n", + " fillstyle=key_b[2])\n", + " ))))" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.4.3" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/2015/2015-challenge8.ipynb b/2015/2015-challenge8.ipynb new file mode 100644 index 0000000..8f6195b --- /dev/null +++ b/2015/2015-challenge8.ipynb @@ -0,0 +1,98 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": { + "collapsed": false + }, + "outputs": [], + "source": [ + "import os,sys,inspect\n", + "currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))\n", + "parentdir = os.path.dirname(currentdir)\n", + "sys.path.insert(0,parentdir) \n", + "\n", + "import matplotlib.pyplot as plt\n", + "%matplotlib inline\n", + "\n", + "from cipherbreak import *\n", + "\n", + "c8a = sanitise(open('8a.ciphertext').read())\n", + "c8b = sanitise(open('8b.ciphertext').read())" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "data": { + "text/plain": [ + "('charlie', -2104.8140749325567)" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "key_a, score = vigenere_frequency_break(c8a)\n", + "key_a, score" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "harry i am so sorry we went into the russian hq last night without you but the station chief wanted it to be his team that got the glory i am really grateful to you for coming back and putting us on the right track though the stolen file from soviet headquarters was as you expected encrypted with the solitaire cipher fortunately the cipher clerk who managed the encryption was incredibly careless i found a sheet of burnt paper in the bin which gave me a list of thirty eight cards and i am hoping that this is a large part of the key it will still be hard to break but maybe not impossible especially as the erased part was still intact there maybe another clue in that the page appears to have been torn from an economics textbook i found on the desk anyway i figure the chemists at langley may help us to reconstruct the whole key given time though i wouldnt expect them to manage more than one card a day given how careful they will have to be not to destroy the document it will take usa while to crack this but maybe time is on our side with christmas things seem to be quiet and i am hoping that within the next three weeks we may know precisely what the soviets were trying to do here whatever the outcome i think it is clear that the future of europe is not likely to be settled for a while i hear rumours everyday about shortages in the soviet bloc and border controls are going up in places you wouldnt expect to prevent largescale migration there are problems in greece and turkey and divisions between the british and french and the brits are having real trouble paying off their war debts whether or not we crack the reichs doktor mystery i think there is going to be plenty for you to do i know we had to work hard to persuade you to flyover but we really do need you here even the chief recognizes that so if i can i want to persuade you to stay francois and i are being posted to paris kind of a thankyou for our work on this project but icant go unless i know the berlin station has someone i trust hope youll agree to take the job charlie\n" + ] + } + ], + "source": [ + "print(' '.join(segment(vigenere_decipher(c8a, key_a))))" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.4.3" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} diff --git a/SIGNED.md b/SIGNED.md index d26d74f..5b46ad5 100644 --- a/SIGNED.md +++ b/SIGNED.md @@ -3,19 +3,19 @@ -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iQIcBAABCAAGBQJWjX6wAAoJEJPB2e07PgbqhgsP/2YEJGETmbYlwtwWyKL2q/DN -ICr7LSmgmPnelBgiOXF4JjhpEdmhuhT6XErTzyVcTmm6aXIdijncMD3qISvYePjk -VfYd2RbRpA61J/5oZabxOxnaxOvLUSOp1BK0akmNOdi0aPJVm9fatYJMsuWdzwCL -0hOklUUL2kvDFHRVYgupl57+dTDMWlTOH/es0izL+ZUDqMZcjyDiN3aVNjrHihDe -RNeOgOod7FLb+GNMC9k5l1O6JovTgrcrw6a+6nyBbBKVcubeY+GS1CKfg0JaFiuM -f8ewiGBixzV93A+c/nojHIR1jCdzBA91/mYUWmxSUP2kz9MS4HAh2ASbEYR0N6oM -gJ5JGCHW5BuyTYwJ0xiHoia8GVw64Bw9J/Q6qomZBodw3DNjWXDnZcyrzYFzKuhI -uP6NK+79Uc5PevDlOV60tLnY869ynXYY4uKIr6TT5NRFdvQi6OVHEBSryUolnnxQ -YfVwFPNPPPAD+yLrgecD+f6VQjczy3um0pHthaOZwbgX4Sk0I2B/Nq40j/7K/iW6 -kVR2n1/R1wuVekMYpd58F/IUz+wk0JNvrr7O6usUAVEOPo33jCUsuS9wljYAwzqP -vesbeWXRFGyN0rQDHgSfQivTqG5BL2XV4Nf+uWzeTOSwzAziO4MRHrzgGbo3aMAo -4xz7E+Wi448R2zkNiUsS -=vzqt +iQIcBAABCAAGBQJWjpTaAAoJEJPB2e07Pgbqh6IP/3ZEzWXxCdqrHoXYRRuRvP3U +7Q8FJro7m+dW0gV3R+0BvcJx7hmepvU8Hr4O4RLTQ3AWnlVSorMGFgOoZ3XLYvZl +YACQU4q8Cy3PB2nm8/Mcj/yLVyiyGanxYaxGhBoYSUnaE6ncJ8wod3iGHwQouIgA +sQmaJSoBj0RuYCcTlg8ipOmwZ/doNjKcFbmJQx7BRdlaQ1QQtqyDJgX6y0e4snU0 +ktcu0dCwroyAzu+HXQE5prhsB3x3UHzTq3VwIIgeNnO/Hye9LXgrT8fSdY54YndU +E/S/gUD8/jB5TFTdHVmAEQAqg/YHXc49o1taPU+NU6hSl9EDmhM7CacBu+//VUy4 +VXjFFWJV9YFX6yhaNHSS5Vuz7h8oXKOQwGYa4dMlrGl912MnOHl+WjCDjcHL+0ht +cFfEq3OgQDL4Q7Eln1bW7VwYDcpId1yNYcuHvd+h3bSzAxNtMcjH3Sim7EDcFP2z +n6nuwFNdfY+drpAllw1df8QotFP8vkiA3O9sUtTIJkECmu9vGqJDfujhBOhPNQxk +9bwSIWhXz0yvt3V7P/ds2PRGBB67ejkWOEEMhI/94yu/prZaeZQsm49ULoqz+6z/ +3eGlgz/Y0RRjlgorl7VwOwacuqb5w++WZ2CX4O5oylkxOtC/rkuOTFvwsas2c3sy +as4QzMxXGkYvRCKzUvR7 +=gSfT -----END PGP SIGNATURE----- ``` @@ -69,6 +69,8 @@ size exec file contents 1340 1a.plaintext cbdaac33a7943a752ba5dd21cf7af23bdbdd22e4a5feb0bccecce45d605d0581 1495 1b.ciphertext 2e0389e2c7d3156892f7d361ee79f86eb79d34812fca37d8ce692cb6f3976446 1495 1b.plaintext 717b1f8955515a5d5d2f049f0ffe137820d71f8b2a1689e1a29ec30ed7c9d473 +121429 2013-challenge6.ipynb 4169b040ef2d648af0c5678c22756ab31933f663ec7f38fb27a0af81c8c8d4b8 +25749 2013-challenge7.ipynb a651b44828eeb79c82f63eb00ba0f8d5a3f406e104cb1a59601a61f0aee7432b 1135 2a.ciphertext 85ad3dac4751a8db90f391d0f06935a5ef2118d9ac72e05fe0518d7f77bff058 1135 2a.plaintext 11cdf7c462c536085daced417023adaeff2f6b7a6162ccd12b340b079bd36b48 926 2b.ciphertext 0fc59b28e4cd2db0aa9f28a603e2b25988a6688f05f90a59b205088093721340 @@ -85,11 +87,17 @@ size exec file contents 1565 7b.ciphertext adeef9d9e985c534c40acee5c6734d04195895a32efd9452a89cafef1fdc91b8 182 mona-lisa-words.txt d7d05c9c86f6282fa66df5f4ca795c89f01cef88a9ce8c921ce4484b3d6078a7 1190 solutions.txt bd14d8cb1b6694ee4b07d7f38f4df7931e89c10247f101878b6056647bf67cee -135303 2013-challenge6.ipynb 5b37a8b10db4c8d9831827a2acdffdcdb65369557d15b3e08a900ee8e088da73 -31542 2013-challenge7.ipynb 6de8c15b9cca8b166be4ab86df94898544803e7ed46f8042e363414bed1d2dcc 2014/ 735 1a.ciphertext 3adb9e2747c6e3b4033c8042a6dcccb7c2e45988d64c5c78ec0a2c472dc88f95 610 1b.ciphertext bc11485a47af830fa0ded0b07feebf042c0a6956dc71daa60b525067e96c220a +4061 2014-challenge1.ipynb a1d569b4c7d6d359a9c131244276fbbb61c035e7ffbdb6e224beabf3190c73e5 +23543 2014-challenge2.ipynb 92c301162a49bdda75ec939f77c015a025626bc728365d296187d764a89ef1bc +24088 2014-challenge3.ipynb e0db661b881ee1bc3d51e0edfa958b709677dace6eef7125ae9e034e131ca6c8 +28626 2014-challenge4.ipynb 11db485e9db34673b920635fbeeec85eeb85f776aabc687ebbd114a87039f38d +21102 2014-challenge5.ipynb 085151062fb8b3d7f8d6d7cff5b73ec3053b5d22383301f416a2a29e6b5ab53e +34054 2014-challenge6.ipynb 0e6f30c7296fe16b107ee5df2676e988c8b450b1cbf0e7347bf6e2ac9191f068 +38294 2014-challenge7.ipynb 176ead363cc1970d243ea2e7f7ba49eadc617058ad5144044ce4c8c0e9375c16 +187296 2014-challenge8.ipynb 11fb5200127f954536176cc3b3e4258ee3005fbe0c19e0138e6b9d18c290a71f 767 2a.ciphertext 3881a4f1fc0fadc064bc27d3052800b5eb497e833b208c2cee381b466c9b1db8 398 2b.ciphertext 78faf9d7a0aad25a9fa72f886c398bc0b684a389bc5624ab4514e93685157a93 958 3a.ciphertext 0d0524b194961bdbe6fe200cfe983a9338abcca5adabb6776769387967a50711 @@ -104,17 +112,17 @@ size exec file contents 988 7b.ciphertext cfb66667a8011226be0be7c98e9deb7efa02e9a53cad67743baf166c20136ada 1391 8a.ciphertext ac2b18d13ef44be0fb233d2455c51897b4df59491bbdd23ef82fbd9490bc86b1 7001 8b.ciphertext 8d7e366e8fbb5766717481eeec77b089d3e8f9e708ac198d56176cb0882a9472 -3882 2014-challenge1.ipynb 07715f100d97af32ad5a13b56ade2f5753e17e32404e2eda0dcb9634736298f5 -28071 2014-challenge2.ipynb 1535404ae5a412160c82d19e38f7069a2eaca600bd433e77877bd13e14929e6b -29190 2014-challenge3.ipynb 1454c5e5014eac93c42e88611f3f6b3f014bf70a8e9d8e87ef4725f8d12a27b7 -32758 2014-challenge4.ipynb 1794b0b2c6fd4630f6d9ffe15ffdad52d04af23082eddc920ec02ba4740032e4 -23322 2014-challenge5.ipynb fb3bb531c62ed943528715cc19e800293e3cd4a176ce3a3fe01e7e585386907e -40307 2014-challenge6.ipynb 5085a4ae2a562c87983cbff817ac89826973341551980563ae0c77ab747a5dff -44472 2014-challenge7.ipynb 9800d39c881f22f67f1182f6ca73bbf40a123d0deb598a6009f545f421955241 -188080 2014-challenge8.ipynb c59bcfbb39e48e6e151cc0c86fe48add67844954cf3c65d560bbda0c972a8376 2015/ 874 1a.ciphertext 5d0d71f24522e1c05127feb601bf8dc82566f3d2795fb51c4a60e22d900bb5eb 394 1b.ciphertext a35e8265aea45ab5f7c5eb141e5e65c85ecc24c7d87f3e8197dfe6795a7d3226 +3835 2015-challenge1.ipynb 4c9d020904f448c1a8c6443d5a8d6da48d615ce61508e67670ce01ac1c4c5b2e +4307 2015-challenge2.ipynb 702cb83d7b0c52b2ddf360d475e5e1acaaee0419c4a82c17e32a009ce559e352 +4199 2015-challenge3.ipynb 7116fb88f407edd43695d00229479ba5413368a5cb3c2bfb083d7e47f732ff05 +32985 2015-challenge4.ipynb 7c8a2e5d7a2e210431ae273a2a298daea2cb58b71cdb549f0e87a7754990680e +5251 2015-challenge5.ipynb 20037e3678a1290aaacdec2b4baeba315385bc2ff233a84272e6424ebdeecd23 +14285 2015-challenge6.ipynb 0cd2bbd2f67683f696275cd6041d26a54d7cc43971ca0bef8daf91d5b61a80de +76477 2015-challenge7.ipynb de19305ec9c87c0c7d7db34cdf54f8dc67bca1330b15876835c4208167d662ed +3953 2015-challenge8.ipynb 6959c7a98353bda0028003491d2e558670f61ff5b0714756c8e18db93398c1be 1193 2a.ciphertext 412db1381dcb01f858bf848e48ada16aa4603cbb348c1f092ae39b06d2efa5f9 544 2b.ciphertext 5ff59d7cff1c4d27dee6414769bdbcfb0b0ab9c5931e772bf9f6442eeb9b6855 898 3a.ciphertext 5a9f89002db8520dbad882565a0130d3a462ed967e9cebeca828e9f727a267c4 @@ -134,14 +142,6 @@ size exec file contents 10000 pysol.zip 64e25c247e877f37285db635fcb5dea101e0c531fdbfe5000bcc088c22caad79|68d878fb019198e691d321be1dd6744fae0b48da9c4e705c34f96e351b00fbed 5281 sol.py dbea0e836eb158a26407ca3b74289d24fa7eae16ed1093eb7c598767a150fccc|e50319aa995f934a4cbd52bc28d8f49f376e62470170690cdbed7352f67a7942 2195 sol.py.zip 4c22e57eaacd8a91ef9b0c338429e400210a03dec9fbacec4a45fe1faed50720|1fd0a62af53125eacfa11016088451e2c58269d98aaef74c320730ebc7601b66 -3620 2015-challenge1.ipynb 2ab544f48c22a3a2e665b03ae094ac2de04aee8bdb37366209276a937d248d6a -4092 2015-challenge2.ipynb 58c2aeca6c73a8fef71d0cc8321469358803f392c02fd44631dd0b25c2755f4a -3987 2015-challenge3.ipynb dfec26ba881c7ad0af54d072aeba4d08162661e863266936963130548ff86b65 -8030 2015-challenge4.ipynb f77ead0eae7fcd67039d500a31ad1748a4df115905adecd0e93e56f72bbdcfa0 -5039 2015-challenge5.ipynb b0c28829c329d7a2752f4991006e6d78a10415d7609b893b80b3bdb788d6e533 -14079 2015-challenge6.ipynb 7bd1dcff4b764d75e002622ce6a4cc3c00625aa311ef886e5a436822660c565c -76275 2015-challenge7.ipynb c48d71ef5c105dff987981c05ce4a9d2cce382e6d54358d7e2a3b6fe9fc74f10 -3741 2015-challenge8.ipynb d66fca286b89099f3ca296f1f8283f22c12ae9e5480192f2bdb316a46fd07f43 18025 LICENSE a01259a1b522cf0de95824f9860613b453153eebac468e96196d5d7dba84786c 7999 LJ!-Qt!-Fghxft-dferts%3B-hsjeukaxxn-sfedw.ipynb 429b6c6995096ff19c28a5ee342bef8ea4774200bdf9aaf6268de3cb8b28df28 61 README.md 277247b410300ee16477b12ca54ad878d81c8061f6134e2e1cadccaf299de3a3 @@ -150,8 +150,8 @@ size exec file contents 16832 cadenus-ciphers.ipynb 50e49b3ec5e6440b86fe13472b9f4ab9e133e5665c7280b2abf7a6b57bb8a89a 514 caesar_break_parameter_trials.csv 6586223bcc00e06e3ff79d107202d6c29ef962a6dd544add00610c5907407e85|1cb7cc77831ef3ef4f994a9ea77e82a841b38acdde45ede9cedbe7a54f1e8e46 318 cipher-training.sublime-project 58e5d5b4e54fb29abecaef2d41266e3355adccb8b6a70bd595e509bd07c16587 -42052 cipher.py 4ae3835f58782e76f8dc747ce46ae461c11236cf3397ee32adec8e974cf06153 -28736 cipherbreak.py cbda3e76773ad3125e00360622d1e01eccf376d4e783617c925cc4c557e97d86 +42922 cipher.py 58637b8946b4fb973b19a374a2066a896d86c928dacaa1ccd2252e6f8bb6e810 +28908 cipherbreak.py 0fb22645ddce4e04c7e441a1f7bdc0e4a397a3c9b2cfb3098bcb213e79a361c9 11564 count_1edit.txt 3bf563ef032ba151ec1a4b2d1f33f50c49f4a47e4dc5b8152394bc5b63f57655|b5fbacbebcc25f5011ce97bc9ac967a09c50eef28b4aa98379a6c426df6ac08b 223 count_1l.txt 335388d457db6ef1da05d8b55ab879e9be7d4e021085efc8d9dfeac0e4a79aa9 4956241 count_1w.txt 51df159fd3de12b20e403c108f526e96dbd723d9cabdd5f17955cdc16059e690 @@ -163,7 +163,7 @@ size exec file contents 3027 find_best_caesar_break_parameters.py 0347d80309179d937a88fd1c8684490a513ccd086366c5a0dd55b8a2fe5c565f 1236 find_wikipedia_titles.py f040bf855dfec7fff9d8e5eba2fb509179bc53bc02a20b26b7fc61fef983aa45 37128 hill-ciphers.ipynb ce802c2be807b4565858b568d3a82c65a3957aa625344189f8f2a055237b3fdd -5516 language_models.py 9f6c60892b385a8443202edda95074eb28e2b66981e25e27f4153b887e2c9ee3 +5645 language_models.py bfd5b60cdef8af20cdb061b24a1691f569984be3be333782c3d76e3370e16d14 368 lettercount.py ed36497d62cf75b91994055e4a18848b2fabe5ce793cd76a77fabfc94d81d4f3 592 make-cracking-dictionary.py 71791e64e4853cd9ca292cb436bbe8c72dd60f509811174df93ed2067683d5c1 7077 norms.py a657a36c1741e6f3a513386b318fcc99e6b11f98ec64a48284b47462ff2acf30 diff --git a/cipher.py b/cipher.py index eb0a169..266237a 100644 --- a/cipher.py +++ b/cipher.py @@ -836,11 +836,17 @@ def amsco_transposition_encipher(message, keyword, 'hotelerelh' >>> amsco_transposition_encipher('hellothere', 'acb', fillpattern=(2, 1)) 'hetelorlhe' + >>> amsco_transposition_encipher('hereissometexttoencipher', 'encode') + 'etecstthhomoerereenisxip' >>> amsco_transposition_encipher('hereissometexttoencipher', 'cipher', fillpattern=(1, 2)) + 'hetcsoeisterereipexthomn' + >>> amsco_transposition_encipher('hereissometexttoencipher', 'cipher', fillpattern=(1, 2), fillstyle=AmscoFillStyle.continuous) 'hecsoisttererteipexhomen' >>> amsco_transposition_encipher('hereissometexttoencipher', 'cipher', fillpattern=(2, 1)) - 'heetcisooestrrepeixthemn' + 'heecisoosttrrtepeixhemen' >>> amsco_transposition_encipher('hereissometexttoencipher', 'cipher', fillpattern=(1, 3, 2)) + 'hxtomephescieretoeisnter' + >>> amsco_transposition_encipher('hereissometexttoencipher', 'cipher', fillpattern=(1, 3, 2), fillstyle=AmscoFillStyle.continuous) 'hxomeiphscerettoisenteer' """ grid = amsco_transposition_positions(message, keyword, @@ -861,11 +867,17 @@ def amsco_transposition_decipher(message, keyword, 'hellothere' >>> amsco_transposition_decipher('hetelorlhe', 'acb', fillpattern=(2, 1)) 'hellothere' - >>> amsco_transposition_decipher('hecsoisttererteipexhomen', 'cipher', fillpattern=(1, 2)) + >>> amsco_transposition_decipher('etecstthhomoerereenisxip', 'encode') 'hereissometexttoencipher' - >>> amsco_transposition_decipher('heetcisooestrrepeixthemn', 'cipher', fillpattern=(2, 1)) + >>> amsco_transposition_decipher('hetcsoeisterereipexthomn', 'cipher', fillpattern=(1, 2)) 'hereissometexttoencipher' - >>> amsco_transposition_decipher('hxomeiphscerettoisenteer', 'cipher', fillpattern=(1, 3, 2)) + >>> amsco_transposition_decipher('hecsoisttererteipexhomen', 'cipher', fillpattern=(1, 2), fillstyle=AmscoFillStyle.continuous) + 'hereissometexttoencipher' + >>> amsco_transposition_decipher('heecisoosttrrtepeixhemen', 'cipher', fillpattern=(2, 1)) + 'hereissometexttoencipher' + >>> amsco_transposition_decipher('hxtomephescieretoeisnter', 'cipher', fillpattern=(1, 3, 2)) + 'hereissometexttoencipher' + >>> amsco_transposition_decipher('hxomeiphscerettoisenteer', 'cipher', fillpattern=(1, 3, 2), fillstyle=AmscoFillStyle.continuous) 'hereissometexttoencipher' """ diff --git a/cipherbreak.py b/cipherbreak.py index 120a89e..0ac8ae5 100644 --- a/cipherbreak.py +++ b/cipherbreak.py @@ -199,23 +199,27 @@ def keyword_break_worker(message, keyword, wrap_alphabet, fitness): return (keyword, wrap_alphabet), fit def monoalphabetic_break_hillclimbing(message, max_iterations=10000000, - fitness=Pletters): + alphabet=None, fitness=Pletters): ciphertext = unaccent(message).lower() - alphabet = list(string.ascii_lowercase) - random.shuffle(alphabet) - alphabet = ''.join(alphabet) + if not alphabet: + alphabet = list(string.ascii_lowercase) + random.shuffle(alphabet) + alphabet = ''.join(alphabet) return monoalphabetic_break_hillclimbing_worker(ciphertext, alphabet, max_iterations, fitness) def monoalphabetic_break_hillclimbing_mp(message, workers=10, - max_iterations = 10000000, fitness=Pletters, chunksize=1): + max_iterations = 10000000, alphabet=None, fitness=Pletters, chunksize=1): worker_args = [] ciphertext = unaccent(message).lower() for i in range(workers): - alphabet = list(string.ascii_lowercase) - random.shuffle(alphabet) - alphabet = ''.join(alphabet) - worker_args.append((ciphertext, alphabet, max_iterations, fitness)) + if alphabet: + this_alphabet = alphabet + else: + this_alphabet = list(string.ascii_lowercase) + random.shuffle(this_alphabet) + this_alphabet = ''.join(this_alphabet) + worker_args.append((ciphertext, this_alphabet, max_iterations, fitness)) with Pool() as pool: breaks = pool.starmap(monoalphabetic_break_hillclimbing_worker, worker_args, chunksize) diff --git a/language_models.py b/language_models.py index 19f886f..5a35b38 100644 --- a/language_models.py +++ b/language_models.py @@ -5,6 +5,7 @@ import collections import unicodedata import itertools from math import log10 +import os unaccent_specials = ''.maketrans({"’": "'"}) @@ -56,7 +57,7 @@ def sanitise(text): def datafile(name, sep='\t'): """Read key,value pairs from file. """ - with open(name, 'r') as f: + with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), name), 'r') as f: for line in f: splits = line.split(sep) yield [splits[0], int(splits[1])] @@ -70,7 +71,7 @@ normalised_english_bigram_counts = norms.normalise(english_bigram_counts) english_trigram_counts = collections.Counter(dict(datafile('count_3l.txt'))) normalised_english_trigram_counts = norms.normalise(english_trigram_counts) -with open('words.txt', 'r') as f: +with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'words.txt'), 'r') as f: keywords = [line.rstrip() for line in f]