lucadentella / TOTP-Arduino

152 stars 33 forks source link

change hmacKey #15

Closed diasrobson closed 4 years ago

diasrobson commented 4 years ago

Hi, there amazing work on this library works really well. this is more of a feater request than a bug.

I was wondering if you could make it so the hmacKey could be changed/updated in code, as I want to use the Chip ID as the hmacKey but from what I can see ill have to do that manually at the moment

thanks for all your works :)

lucadentella commented 4 years ago

Hi, I can't fully understand your question... you pass the key to the TOTP object:

TOTP(uint8_t* hmacKey, int keyLength);

so you can create a new object with an updated key... isn't it what you were looking for? thanks!