Skip to main content
The National Cipher Challenge

Python imports?

  • This topic has 3 replies, 3 voices, and was last updated 1 day, 3 hours ago by Elf_on_the_Shift.
Viewing 2 reply threads
  • Author
    Posts
    • #166334
      IsaacLLoyd1
      Participant

      Hi, I was wondering if anybody knew which (if any) python imports are allowed for the challenge, as tools such as random seem to be useful but I do not know whether it is ok to use. Many thanks,

    • #166407
      Elf_on_the_Shift
      Keymaster

      In previous years when similar questions have been asked, importing general purpose libraries like numpy, numba, collections, math, time, re, itertools, string, random and matplotlib, etc. are fine but existing cipher cracking tools are not (the tools on this site are allowed, though)

      A good rule of thumb is that shouldn’t be using anything that “imports your way to victory”. So that rules out libraries like pycipher, online solvers like dCode and templates written by other people rather than our own code. You can use those to learn how a cipher works or how an attack is structured, then build your own tool from that.

      Hope that helps, but it’s always better to ask us so do let us know if there is anything you’re unsure about!

    • #166464
      CrypticCracker
      Participant

      When you say “templates”, does that include Madness’s book on ciphers? (For those who don’t know, it is a very helpful book containing a collection of ciphers, explanations, and how to break them.) – I have been using this book as reference for making most of my code…

      • #166472
        Elf_on_the_Shift
        Keymaster

        I imagine using Madness book is fine and very much encouraged in fact! What I meant to say was copying the codes for deciphering that other people have written online. Everything posted in the case files and BOSS library is for you to make use of!

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
Report a problem