winauth
winauth copied to clipboard
Doesn't correctly decode the label in an otpauth:// URI
According to this the label is "URI-encoded string": https://github.com/google/google-authenticator/wiki/Key-Uri-Format
However, if I paste in my URI and click Decode, WinAuth doesn't correctly decode the label. Space characters appear as %20 for instance.
To reproduce:
- Add new "Authenticator"
- Paste in "otpauth://totp/My%20Label?secret=AAAAAAAAAAAAAAAA"
- Click "Decode"
- Click "Verify Authenticator"
- Notice the name is "My%20Label" instead of "My Label"
I've just noticed that this leads to another bug as WinAuth then doesn't split the label if the colon is escaped, represented by %3A. So instead of ending up with the Name: My Label (My Username) you end up with a very ugly Name: My Label (My%20Label%3AMy%20Username) entry.