Coder Social home page Coder Social logo

gabrielmbmb / aes Goto Github PK

View Code? Open in Web Editor NEW
16.0 1.0 8.0 39 KB

๐Ÿ”‘ An implemetantion of the AES algorithm in Python 3 and block cipher mode of operation ECB, CBC and CTR.

License: MIT License

Python 100.00%
aes cryptography ecb cbc ctr aes-algorithm encryption decryption cipher-mode

aes's Introduction

GitHub

What is this?

An implementation of the AES algorithm in Python 3 and the block cipher operation of mode ECB, CBC and CTR.

Why did you do this?

Because of learning purposes and also for being a project for Information and Coding Theory course.

Can I use it?

Yes, for sure.

Basic usage

Setup

pip3 install -r requirements.txt
chmod +x crypt.py

Encrypt

Encrypt "file_to_encrypt" using block cipher mode of operation CTR and with a key of length 256 bits. Output file "file_name_encrypted"

./crypt -i <file_to_encrypt> -o <file_name_encrypted> -m CTR -l 256

The key used for encryption will be displayed and saved in the file "key.txt".

Decrypt

The key used for decryption will be read from "key.txt"

./crypt.py -d -i <file_to_decrypt> -o <file_decrypted> -m CTR -l 256

References

  1. Nist Fips 197
  2. The Design of Rijndael
  3. Block cipher mode of operation
  4. Using Padding in Encryption

aes's People

Contributors

gabrielmbmb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.