Giter VIP home page Giter VIP logo

vigenere's Introduction

Vigenère cipher

Vigenere encryption, decryption and ciphertext-only attack in python. @gjs990825
Check Vigenère cipher on Wikipedia for more information.


Assignments

多表代换Virginia加密算法及秘钥破解算法的实现:编程语言为C语言或其它语言,要求提交加密、解密、破解源代码文件。

  • 实现对任意有意义的英文文本文件(*.txt)的Virginia加密、解密算法,其中秘钥是任意输入的一个字符串。要求提供明文文本文件、密文文本文件。
  • 在不知道秘钥的情况下,对一个用Virginia加密算法生成的密文文本文件进行破解,包括破解秘钥、生成对应的明文。要求提供程序测试说明文档。

Interactive Jupyter Notebook to play with, click title to open notebook.


A Python script able to perform required functions. Type python vigenere.py {normal, crack} -h in command-line for its usage.
Support standard input, output.

Encryption

python vigenere.py normal -e -k infosec original.txt encrypted.txt

Decryption

python vigenere.py normal -d -k infosec encrypted.txt decrypted.txt

Cracking

python vigenere.py crack cipher_to_break.txt breaking_results.txt

stdin as input, stdout as output

cat original.txt | python vigenere.py normal -e -k infosec

vigenere's People

Contributors

at915 avatar gjs990825 avatar

Watchers

 avatar

Forkers

at915

vigenere'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.