Giter Site home page Giter Site logo

generalzero / chacha-and-salsa Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 2.0 165 KB

A simple, commented and readable python implementation of ChaCha, Salsa, Poly1305, MD2, MD4, MD5, SHA1, SHA2, SHA3, Blake, Blake2, DES, 3DES, and more

License: MIT License

Python 100.00%
sha3 chacha salsa blake2 poly1305 md5 sha2 sha shake blake

chacha-and-salsa's Introduction

ChaCha-and-Salsa

A simple, commented and readable python implementations of

Asymetric Encryption:

  • Elgamal
  • ECC (ECIES)

Symetric Encryption:

  • AES
  • Blowfish
  • ChaCha
  • Salsa
  • XChaCha
  • XSalsa
  • DES
  • 3DES
  • TEA/XTEA

Hash Functions:

  • Bcrypt
  • Blake (Blake224, Blake256, Blake384, Blake512)
  • Blake2 (Blake2b, Blake2s)
  • Blake3 [TODO]
  • Gimli
  • MD2
  • MD4
  • MD5
  • RC4
  • RIPEMD-160
  • SHA1
  • SHA2 (SHA224, SHA256, SHA384, SHA512)
  • SHA3 (SHA3-224, SHA3-256, SHA3-384, SHA3-512, SHAKE-128, SHAKE-256, Keccak-224, Keccak-256, Keccak-384, Keccak-512)
  • XOODOO [TODO]
  • Whirlpool [TODO]
  • Rumba20 [TODO]
  • SipHash [TODO]

Key Derivation:

  • Argon2
  • Double Ratchet
  • HKDF
  • PBKDF
  • PBKDF2
  • Scrypt

Message Authentication Cods:

  • CMAC
  • CBC Mac
  • GMAC
  • HMAC
  • Poly1305

Signatures:

  • DSA
  • ECDSA
  • EdDSA

Key Exchange:

  • DH
  • ECDH
  • x3DH

While these should not be used in real world applications. Hopefully the simple implimenation and comments should let people under stand the flow of the program and how each of the implimenations work.

Special Mentions

@oiidmnk for bringing the MD2 RFC Eratta to my attention and making the Pull Request. https://www.rfc-editor.org/errata/eid555

These Implimenations have been verified against some of the Test Vectors in the RFC's to make sure that the functions are correct.

chacha-and-salsa's People

Contributors

generalzero avatar oiidmnk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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