Skip to content

Handling of private keys with spaces? #2

@pfeerick

Description

@pfeerick

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions