Giter Site home page Giter Site logo

mithi / simple-cryptography Goto Github PK

View Code? Open in Web Editor NEW
58.0 6.0 13.0 28.9 MB

Scripts that illustrate basic cryptography concepts based on Coursera Standford Cryptography I course and more.

License: MIT License

Python 100.00%
cryptography coursera crypto stanford cryptographic-algorithms cryptographic-attacks public-key-cryptography symmetric-key-cryptography symmetric-encryption algorithm

simple-cryptography's Introduction

About

  • Python scripts that illustrate basic cryptography concepts based on Coursera Standford Cryptography I course and more
  • Each has tests, notes and detailed explanations in the hopes that you can clearly understand what's happening
  • The references section of this README links to awesome websites you can use for learning cryptography
  • This script will be able to decrypt a target ciphertext, given a bunch on intercepted ciphertexts encrypted with the same key (which may or may not have random errors). A stream cipher key should never be used more than once.
  • You'll be able to encrypt or decrypt a message given a key using two modes of block cipher operations; CBC mode and CTR mode.
  • A simple file authentication system that simulate how you'd be able to authenticate and play video chunks as they are downloaded without having to wait for the entire file.
  • This script illustrates how you'd be able to decrypt an intercepted ciphertext if the receiver reveals whether a sent ciphertext is of valid format or not.
  • The meet-in-the-middle attack (MITM) is a generic space–time tradeoff cryptographic attack. We demonstrate the MITM attack by using it to solve a discrete log problem.
  • RSA can be broken when the public modulus N is generated incorrectly. These scripts illustrate how you'd be able to factor N when p and q are close to each other.
  • An example pipeline that demonstrates basic RSA encryption and decryption.

References

simple-cryptography's People

Contributors

mithi avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

simple-cryptography's Issues

Counter Mode

  • Scripts
  • Tests and Sample Data
  • Readme
    • Theory and Diagrams
    • Dependencies and sample usage

Simple Textbook RSA

  • Scripts
  • Tests and Sample Data
  • Readme
    • Theory and Diagrams
    • Dependencies and sample usage

CBC Mode

  • Scripts
  • Tests and Sample Data
  • Readme
    • Theory and Diagrams
    • Dependencies and sample usage

Meet in the Middle

  • Scripts
  • Tests and Sample Data
  • Readme
    • Theory and Diagrams
    • Dependencies and sample usage

Integrity

  • Scripts
  • Tests and Sample Data
  • Readme
    • Theory and Diagrams
    • Dependencies and sample usage

Factoring

  • Scripts
  • Tests and Sample Data
  • Readme
    • Theory and Diagrams
    • Dependencies and sample usage

Padding Oracle

  • Scripts
  • Tests and Sample Data
  • Readme
    • Theory and Diagrams
    • Dependencies and sample usage

Many time pad

  • Scripts
  • Tests and Sample Data
  • Readme
    • Theory and Diagrams
    • Dependencies and sample usage

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.