Giter Site home page Giter Site logo

cryptopals-aes_ecb's Introduction

cryptopals-AES_ECB

Usage

This script just requires Numpy (1.19.5 used). To make simple, just run :

pip3 install -r requirements.txt

Then you can run the script with python3 :

python aes.py -k "YELLOW SUBMARINE" -d "A text whish has a length 16 byt"

You can specify the output with -o filename, which will contain the output as binary. By default, the output is as hex on stdout

Note

Almost everywhere, I only saw "implementations" using AES library directly, and almost never complete python codes. So, I decide to make my own ! I started also by implement matrix things, but, as it's not the point of this exercise, I just used Numpy.

To do all that, i used a lot of documentations. I will not lie, and tell I pick code from the he(ll)aven.

Just, a lot of documentation, and a lot of tries (and fails :D )

Used Documentations

https://datatracker.ietf.org/doc/html/rfc2104.html https://kavaliro.com/wp-content/uploads/2014/03/AES.pdf https://fr.slideshare.net/Shiraz316/aes-by-example https://www.angelfire.com/biz7/atleast/mix_columns.pdf https://github.com/boppreh/aes/blob/master/aes.py , line 89->96. I picked only that, cause, admit, it's really a pain.. https://en.wikipedia.org/wiki/Rijndael_S-box

cryptopals-aes_ecb's People

Contributors

maeglin1908 avatar

Watchers

 avatar

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.