Added code for blog post http://www.babaei.net/blog/2013/02/15/write-your-own-cross-platform-cryptographic-library/