SHA1 / SHA256 and HMAC-SHA1 / HMAC-SHA256 Hash library
SHA1 / SHA256 and HMAC-SHA1 / HMACSHA256 Hash library
sha1test.pde

For Arduino
Updated: spaniakos 2015

This is an example of how to use SHA1 hashing and HMAC SHA-1 HMAC of this SHA library.
The text and keys can be either in HEX or String format.
The examples are from the FIPS 180-2 , RFC3174 and FIPS 198a

to use String key it must be in the form of : uint8_t hmacKey2= (unsigned char)"0123456789:;<=>?@ABC";