intrbiz / arduino-crypto

A minimal crypto library for ESP8266 Arduino
Other
140 stars 53 forks source link

SHA256HMAC different from online generators #29

Open pedrorodrigues1997 opened 3 years ago

pedrorodrigues1997 commented 3 years ago

Hi all! I might be doing something wrong, but using the sha256hmac example, and deleting the doUpdates leaving only the doUpdate for the GoodBye World should return(at least accordingly to the online generators) : 643e9493a4f2e47daa99b9cb0a2a90e77cb949d3c4f1f481e9e662d075884d6e

When i run it with your library, it returns: 021D8271FC5BD384C68FC1A492F9BA13FCC6F22CB64721413024EB9A98B3C0CE

Probably im getting the key wrong, since online generators ask for keys as strings. Can anyone tell me how do i get that array of bytes in the example to a string?