Skip to content
The first easily-embeddable MD5 library for Arduino
Branch: master
Clone or download
Pull request Compare This branch is 31 commits ahead of scottmac:master.
Latest commit 8058633 Oct 22, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples/MD5_Hash Merge branch 'example-deallocation' of… Nov 8, 2014
MD5.cpp initialise the structure properly, zero everything Sep 26, 2017
MD5.h Add Function for Zero in Byte Arrays May 16, 2017 Update Oct 22, 2017

This is an MD5 library for the Arduino, based on scottmac's MD5 library, which you can find here:

I created this because I was having a really hard time finding an easy-to-install and use libray for the Arduino, so I decided to make my own. There is an example on how to use it.


Create a folder named MD5 in the libraries folder inside your Arduino sketch folder. If the libraries folder doesn't exist, create it. Then copy everything inside. (re)launch the Arduino IDE.

You're done. Time for a mojito


If you create md5 Hashes in a loop you must give the Memory back to the System

unsigned char* hash=MD5::make_hash("hello world");
//generate the digest (hex encoding) of our hash
char *md5str = MD5::make_digest(hash, 16);
//print it on our serial monitor
//Give the Memory back to the System if you run the md5 Hash generation in a loop
//free dynamically allocated 16 byte hash from make_hash()
You can’t perform that action at this time.