You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an issue when the TOTP seed is padded with = characters, then when trying to copy the TOTP an error message will be shown "Error, bad seed! (-1)", with the -1 part of the error being repeated once per each occurence of a padding = character.
I noticed this when scanning QR codes using Strongbox on iOS, which will add these padding characters, and then trying to create a TOTP in KeePass using Tray TOTP plugin.
After manually removing the padding = characters everything works fine.
I am not 100% whether it is incorrect of Strongbox to add the padding = characters or of Tray TOTP plugin to fail when they exist.
REQUIRED: The secret parameter is an arbitrary key value encoded in Base32 according to RFC 3548. The padding specified in RFC 3548 section 2.2 is not required and should be omitted.
So we should indeed accept with and without padding, and omit padding when exporting to a Key Uri.
There is an issue when the TOTP seed is padded with = characters, then when trying to copy the TOTP an error message will be shown "Error, bad seed! (-1)", with the -1 part of the error being repeated once per each occurence of a padding = character.
I noticed this when scanning QR codes using Strongbox on iOS, which will add these padding characters, and then trying to create a TOTP in KeePass using Tray TOTP plugin.
After manually removing the padding = characters everything works fine.
I am not 100% whether it is incorrect of Strongbox to add the padding = characters or of Tray TOTP plugin to fail when they exist.
See also here my reddit post to the Strongbox author and his response:
https://www.reddit.com/r/strongbox/comments/g5i2fe/totp_qr_scanning_switching_to_new_device/
The text was updated successfully, but these errors were encountered: