Deliberately simple, thoroughly commented AES/DES/etc crypto implementations in various languages, for learning purposes.
C Go Ruby C# Smalltalk Shell Haskell
Latest commit c53fa66 Jan 12, 2015 @chrishulbert Merge pull request #1 from tbeu/clean-c-code
Clean-up AES C code
Failed to load latest commit information.
c-sharp C# RSA Jul 16, 2010
c Add const Jan 9, 2015
golang Golang RSA: using the big library for modular exponentiation Jul 29, 2010
haskell Haskell RSA Jul 16, 2010
ruby Presentation slides Jul 14, 2010 Readme links Jul 5, 2010

Crypto Implementations

This is my collection of various cryptographic techniques implemented in various languages. The idea is for these to be simple and thoroughly commented, with a document explaining how they work, so that you can learn how the magic of cryptography actually isn't really all that difficult to understand. They're certainly not intended for production use. There are lots of better pre-existing libraries for that.


Documentation is in here, as well as on my scribd account:


I also have these tutorials on my blog: