I set my password to 'naïve' in the Android Yubico Authenticator app.
The python yubico-authenticator crashes now; it doesn't seem to support asking for a password at all:
Code:
Traceback (most recent call last):
File "yubico_authenticator.py", line 231, in <module>
password, ok = QtGui.QInputDialog.getText(self, "Password", "Password:", QtGui.QLineEdit.Password)
NameError: name 'self' is not defined
Even if I fix that up and manually hard-code the password to "na\xc3\xafve" (because Python is horrid and I can't just type it), it doesn't work. It looks like "na\xefve" *does* work, implying that the Android app actually converted to a legacy 8-bit character set like ISO8859-1, which would be horridly wrong.
Please clarify the documentation at
https://developers.yubico.com/ykneo-oath/Protocol.html to make it clear that the password has to be treated as UTF-8 (which is the only sensible choice), and fix the Android and python apps accordingly.
Thanks.
Update:I used the python tool to create a credential with the name 'rôle ♥ foo'. It does appear to create it as UTF-8, perhaps purely because I'm running in a 21st century environment; if I was running with a legacy charset then I assume no conversion would be done. It displays correctly in the Android app too, implying that the Android tool *is* doing the right thing for credential names, if not passwords.
Unfortunately, the python app *displays* the credential in question as 'rôle ⥠foo', having failed to be consistent even within itself.