Giter Site home page Giter Site logo

htr-tech / vigenere-decoder Goto Github PK

View Code? Open in Web Editor NEW
13.0 4.0 2.0 13 KB

Decode / Bruteforce Vigenere cipher text just using the Flag Format!!

License: MIT License

Python 100.00%
caeser-cipher capture-the-flag cipher ciphertext crypto ctf ctf-challenges ctf-tools vigenere vigenere-cipher

vigenere-decoder's Introduction

Vigenère Cipher Decoder
Decode / Bruteforce Vigenere cipher text using the Flag Format!!

Demo

~$ time

Script & Source Time Taken
Brutes Each Char (example Dir) 60 Minutes
Vigenère Cipher Decoder (This) 0.484 Seconds

vigenere.py -c "RymJHS{XQ_MOWF_TTXU_DBHQBIZR?}" -t "CatCTF"

~$ cat usage.txt:

  • Simply clone the repository. Only python should be installed in your system.

    $ git clone https://github.com/htr-tech/Vigenere
    $ cd Vigenere
    $ python vigenere.py

    Ouput (Interactive Menu)

     _    _ _
    | |  | (_)
    | |  | |_  ____  ____ ____   ____  ____ ____
     \ \/ /| |/ _  |/ _  )  _ \ / _  )/ ___) _  )
      \  / | ( ( | ( (/ /| | | ( (/ /| |  ( (/ /
       \/  |_|\_|| |\____)_| |_|\____)_|   \____)
             (_____|                @htr-tech
    
    Input Cipher Text: RymJHS{XQ_MOWF_TTXU_DBHQBIZR?}
    Known/Flag Format: CatCTF
    
    Possible Key: python
    Possible Flag: CatCTF{IS_THIS_EVEN_POSSIBLE?}
    
  • You can also use command line argument to run this script.

    usage: vigenere.py [-h] [-c CIPHER] [-t TEXT]
    
    options:
      -h, --help            show this help message and exit
      -c CIPHER, --cipher CIPHER
                            cipher text
      -t TEXT, --text TEXT  known text / flag format

~ $ cat faq.txt

  • What is Vigenère Cipher:

    Vigenère cipher is a polyalphabetic encryption algorithm. It is a method of encrypting alphabetic text using a series of different Caesar ciphers based on the letters of a keyword.

    It is considered a stronger cipher than the Caesar cipher because it uses longer keys that allow the letters to be encrypted in multiple ways, making frequency analysis less effective.

  • What does this script do?

    This script allows you to decrypt a Vigenere cipher by providing the known part of the plaintext or flag format. It uses a Decoder class to decode the ciphered text with a given key, and a BruteForcer class to attempt to find the decryption key by comparing the flag format with the decrypted text. More details are commented inside the script.

  • More to be added...

~$ ./social:


vigenere-decoder's People

Contributors

htr-tech avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

sfteam gergeorg

vigenere-decoder's Issues

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.