-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Description
Services like gitlab or firefox provides the secret key in the format "XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX" (group of chars separated by spaces). Currently, the pass-otp does not support this kind of key because it is not possible to insert a URI with spaces. Nevertheless, that key format is compatible with oathtool if you provide it between quotation marks:
$ oathtool -b --totp=SHA1 "XXXX XXXX XXXX XXXX XXXX XXXX XXXX XXXX"
A solution might be to encode the URI replacing the spaces with %20 and decode the key before processing internally on pass-otp. In order to accomplish the code generation, the oathtool execution must encapsulate the decode key between the quotes.
Metadata
Metadata
Assignees
Labels
No labels