Giter VIP home page Giter VIP logo

torch's Introduction

torch

Command-line Cryptanalysis

Installation

Within a virtual environment:

pip3 install -U torch-crypto

Globally:

sudo pip3 install -U torch-crypto

Usage

$ torch -h          
Usage: torch [OPTIONS] COMMAND [ARGS]...

  Command-line Cryptanalysis.

  Easily crack and decrypt classic ciphers from a terminal.

Options:
  -n INTEGER     The upper limit on the number of possible decryptions to be
                 printed
  -v, --verbose  Additionally print out the key and score for each decryption
  -h, --help     Show this message and exit.

Commands:
  shift         Decrypt or crack a shift cipher
  substitution  Decrypt or crack a simple substitution cipher
  vigenere      Decrypt or crack a vigenere cipher

Example - Krypton Level 3

$ cat cipher  | torch -v substitution --ntrials 2
INCRY PTOGR APHYA CAESA RCIPH ERALS OKNOW NASAC AESAR SCIPH ERTHE SHIFT
CIPHE RCAES ARSCO DEORC AESAR SHIFT ISONE OFTHE SIMPL ESTAN DMOST WIDEL
YKNOW NENCR YPTIO NTECH NIQUE SITIS ATYPE OFSUB STITU TIONC IPHER INWHI
CHEAC HLETT ERINT HEPLA INTEX TISRE PLACE DBYAL ETTER SOMEF IXEDN UMBER
OFPOS ITION SDOWN THEAL PHABE TFORE XAMPL EWITH ASHIF TOFAW OULDB EREPL
key: QAZWSXEDCRFVTGBYHNUJMIKOLP
score: -9194.23851696

$ torch substitution -k QAZWSXEDCRFVTGBYHNUJMIKOLP
KSVVW BGSJD SVSIS VXBMN YQUUK BNWCU ANMJS
WELLD ONETH ELEVE LFOUR PASSW ORDIS BRUTE

Torch versus Krypton

OverTheWire Krypton Wargame

asciicast

torch's People

Contributors

cameronlonsdale avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

torch's Issues

V0.1 Roadmap

  • Asciinema video of krypton showing how to solve the challenges
  • Update README to have -U upgrade

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.