It seems like this (and all other libraries I have looked at so far) cannot properly deal with TOTP generation when the private key has spaces... which is a problem since Lastpass (which I wanted to use this with) insists on using spaces in the private key.
In other words, I can correctly generate TOTPs with both https://totp.danhersam.com/, oathtool and this library (on a ESP8266 with valid NTP synced GMT unixtime) where something like 'password' is the private key. As soon as I do 'test password' the ESP8266 no longer generates valid TOTP, whereas the other two tools do.
Do you have any ideas as to what is causing this, or how it can be corrected/worked around?
It seems like this (and all other libraries I have looked at so far) cannot properly deal with TOTP generation when the private key has spaces... which is a problem since Lastpass (which I wanted to use this with) insists on using spaces in the private key.
In other words, I can correctly generate TOTPs with both https://totp.danhersam.com/,
oathtooland this library (on a ESP8266 with valid NTP synced GMT unixtime) where something like 'password' is the private key. As soon as I do 'test password' the ESP8266 no longer generates valid TOTP, whereas the other two tools do.Do you have any ideas as to what is causing this, or how it can be corrected/worked around?