Skip to content
/ toycrypt Public

Educational crypto library from scratch

License

Notifications You must be signed in to change notification settings

gk646/toycrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Important

This is for educational purposes only. Do not use for real applications.

toycrypt is an educational crypto library that implements common algorithms and attack scenarios from scratch. It focuses on understandable and documented code and operates only on a limited space.

It features:

  • Many math primitives from modular arithmetic like gcd, lcm and extended euler
  • Multiple hash functions and their common attacks
  • XOR encryption and decryption
  • Geometric progression conversion to/from any base (hexadecimal, octal, binary, ...)
  • Network simulation and eavesdropping

Roadmap:

  • Diffie-Hellman Key Exchange
  • Digital Signatures
  • Man-in-the-middle Attack