GithubHelp home page GithubHelp logo

mayank-02 / simplified-aes Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 3.0 365 KB

Implementation of a simplified version of the AES algorithm

License: MIT License

Python 100.00%
advanced-encryption-standard simplified-aes python cryptography educational

simplified-aes's Introduction

Simplified AES

Simplified AES (S-AES) is an educational tool designed to help students learn the structure of AES using smaller blocks and keys.

  • Non-feistal block cipher
  • Plaintext: 16 bit
  • Key: 16 bit
  • Ciphertext: 16 bit

S-AES Structure

SAES Structure

S-AES Key Expansion

Key Expansion

Usage

Use the SimplifiedAES class in your program as follows.

For encryption:

from saes import SimplifiedAES

plaintext = 0b1101011100101000
key = 0b0100101011110101
ciphertext = SimplifiedAES(key).encrypt(plaintext) # 0b0010010011101100

For decryption:

from saes import SimplifiedAES

ciphertext = 0b0010010011101100
key = 0b0100101011110101
plaintext = SimplifiedAES(key).decrypt(ciphertext) # 0b1101011100101000

References

Check out theory.pdf for more information and worked out examples.

Authors

Mayank Jain

License

MIT

simplified-aes's People

Contributors

mayank-02 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

simplified-aes's Issues

Mixing columns

It seems as if the output of the function mix_columns() is different than what we get upon multiplying the given matrix with
{1 4}
{4 1}
and then looking up values from the standard multiplication table.
I just can't believe that output of this code would be wrong so I'm curious if there is another justification.

multiplication_lookup_table

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.