Done challenge 7
[cipher-tools.git] / 2019 / 2019-challenge6.ipynb
index 9fc55d9be7a5868aee937fd0f3c0f8a065ab21a3..71509efc442e25431df0c781bac88e476eb29fba 100644 (file)
   },
   {
    "cell_type": "code",
-   "execution_count": 10,
+   "execution_count": 5,
    "metadata": {},
    "outputs": [],
    "source": [
     "spb = keyword_decipher(scb, 'tovarishch', KeywordWrapAlphabet.from_last)\n",
-    "trs = list(itertools.permutations(range(5)))\n",
-    "column_transposition_break_mp(rcpb, translist=trs, fitness=Ptrigrams)"
+    "# trs = list(itertools.permutations(range(5)))\n",
+    "# column_transposition_break_mp(rcpb, translist=trs, fitness=Ptrigrams)"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": 6,
+   "metadata": {},
+   "outputs": [
+    {
+     "data": {
+      "text/plain": [
+       "'votirachsoiharunegisthtnsuevahocelcneduhtdrievnitseagioitasnhdnevatedmreenihtdttarehsiednideeasatobr'"
+      ]
+     },
+     "execution_count": 6,
+     "metadata": {},
+     "output_type": "execute_result"
+    }
+   ],
+   "source": [
+    "spb[:100]"
    ]
   },
   {
    "name": "python",
    "nbconvert_exporter": "python",
    "pygments_lexer": "ipython3",
-   "version": "3.7.5"
+   "version": "3.6.8"
   }
  },
  "nbformat": 4,