As Andrew indicates workable code is a Google search away, compiling MD5 or SHA, or frankly doing DES, RC4 or AES, is a trivial exercise in compiling C code.
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.