<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="https://forum.yubico.com/feed.php?f=26&amp;t=1601" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2015-02-06T16:00:53+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=26&amp;t=1601</id>
<entry>
<author><name><![CDATA[brendanhoar]]></name></author>
<updated>2015-02-06T16:00:17+01:00</updated>
<published>2015-02-06T16:00:17+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6838#p6838</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6838#p6838"/>
<title type="html"><![CDATA[Re: [BUG] YubiOATH password handling is broken and inconsist]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6838#p6838"><![CDATA[
The crash I reported was fixed in 0.1.11 (released today). Thanks Dain!<br /><br />Brendan<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3142">brendanhoar</a> — Fri Feb 06, 2015 4:00 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[brendanhoar]]></name></author>
<updated>2015-02-06T16:00:53+01:00</updated>
<published>2015-02-06T13:34:06+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6837#p6837</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6837#p6837"/>
<title type="html"><![CDATA[Re: [BUG] YubiOATH password handling is broken and inconsist]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6837#p6837"><![CDATA[
<div class="quotetitle">dain wrote:</div><div class="quotecontent"><br />The new version (0.1.10) of the Android app has been released and pushed to the Play store. I'll now consider my work on the topic completed.<br /></div><br /><br />UPDATE: nevermind, fixed in 0.1.11 (I'd been testing 0.1.10). You can ignore the report below.<br /><br />Dain - 0.1.0 seems to be crashing on my Samsung Galaxy S5 whenever it (successfully?) reads the Neo. I've sent in the crash report via the automated system. Luckily I also kept the credential I needed in slot 2 for YubiTOTP use. Here's a manual excerpt:<br /><br />Exception class name<br />java.lang.ClassCastException<br /><br />Source file<br />SharePreferencesImpl.java<br /><br />Source Class<br />android.app.SharePreferencesImpl<br /><br />Source method<br />getStringSet<br /><br />Line number<br />232<br /><br />beginning of stack trace (perhaps some typos in my transcription)<br />java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Set at android.app.SharedPreferencesImpl.getStringSet(SharedPreferencesImpl.java:232) at com.yubico.yubioath.c.a.a(Unknown Source)  at com.yubico.yubioath.c.b.a(Unknown Source)  at com.yubico.yubioath.c.b.&lt;init&gt;(Unknown Source) at com.yubico.yubioath.MainActivity.onNewIntenet...<br /><br />Brendan<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3142">brendanhoar</a> — Fri Feb 06, 2015 1:34 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dain]]></name></author>
<updated>2015-02-05T14:05:14+01:00</updated>
<published>2015-02-05T14:05:14+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6832#p6832</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6832#p6832"/>
<title type="html"><![CDATA[Re: [BUG] YubiOATH password handling is broken and inconsist]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6832#p6832"><![CDATA[
The new version (0.1.10) of the Android app has been released and pushed to the Play store. I'll now consider my work on the topic completed.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=504">dain</a> — Thu Feb 05, 2015 2:05 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dwmw2]]></name></author>
<updated>2015-02-05T13:44:29+01:00</updated>
<published>2015-02-05T13:44:29+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6831#p6831</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6831#p6831"/>
<title type="html"><![CDATA[Re: [BUG] YubiOATH password handling is broken and inconsist]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6831#p6831"><![CDATA[
I've pushed a couple more commits to my tree. The first just moves the handling of the Android PBKDF2 bug down into the unlock_applet() function, so we don't have to reproduce it in the --disable-systray code path. Sorry, I should have realised I was going to need to do that.<br /><br />The second makes a start at making the --disable-systray code path actually work. Now authentication does work. It'll crash on seeing the non-existend &quot;send_message()&quot; function if anything goes wrong, and the main window doesn't actually do anything useful either. But it's a start...<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3261">dwmw2</a> — Thu Feb 05, 2015 1:44 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dwmw2]]></name></author>
<updated>2015-02-05T12:39:58+01:00</updated>
<published>2015-02-05T12:39:58+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6829#p6829</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6829#p6829"/>
<title type="html"><![CDATA[Re: [BUG] YubiOATH password handling is broken and inconsist]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6829#p6829"><![CDATA[
<!-- m --><a class="postlink" href="https://github.com/Yubico/yubioath-desktop/pull/18">https://github.com/Yubico/yubioath-desktop/pull/18</a><!-- m --><br /><br />This fixes the password handling, at least. Now I can authenticate. I do have to use systray mode because the --disable-systray mode crashes on asking for a password. as shown above. And in systray mode, it took me a long time to work out that although clicking on the icon in the systray does nothing, I can right-click and choose 'Show Code' from the resulting menu.<br /><br />And it still breaks when anything *else* talks to the Yubikey while it's running.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3261">dwmw2</a> — Thu Feb 05, 2015 12:39 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dwmw2]]></name></author>
<updated>2015-02-05T12:05:19+01:00</updated>
<published>2015-02-05T12:05:19+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6828#p6828</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6828#p6828"/>
<title type="html"><![CDATA[Re: [BUG] YubiOATH password handling is broken and inconsist]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6828#p6828"><![CDATA[
<div class="quotetitle">Tom2 wrote:</div><div class="quotecontent"><br />a minor patch for the Yubico Authenticator Desktop version should fix the systray bug.<br /><!-- m --><a class="postlink" href="https://github.com/Yubico/yubioath-desktop">https://github.com/Yubico/yubioath-desktop</a><!-- m --><br /><br />Test it out if you can.<br /><br />Thanks!<br /></div><br /><br />I'm not sure what the systray bug is but this version still isn't working at all once a password is set.<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent"><br />$ python yubico_authenticator.py   --disable-systray<br />list of readers<br />&lt;function readers at 0x7f857cfd8320&gt;<br />using reader<br />Yubico Yubikey NEO CCID 00 00<br />Traceback (most recent call last):<br />  File &quot;yubico_authenticator.py&quot;, line 232, in &lt;module&gt;<br />    password, ok = QtGui.QInputDialog.getText(self, &quot;Password&quot;, &quot;Password:&quot;, QtGui.QLineEdit.Password)<br />NameError: name 'self' is not defined<br />Exception AttributeError: AttributeError(&quot;'NoneType' object has no attribute 'disconnect'&quot;,) in &lt;bound method PCSCCardConnection.__del__ of &lt;smartcard.pcsc.PCSCCardConnection.PCSCCardConnection object at 0x7f857cfdee90&gt;&gt; ignored<br /></div><br /><br />And given that my password is still the pre-KitKat rendering of &quot;naïve ♡&quot; I doubt it was going to work even if it *did* manage to prompt me for the password without crashing <img src="https://forum.yubico.com/images/smilies/icon_e_smile.gif" alt=":)" title="Smile" /><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3261">dwmw2</a> — Thu Feb 05, 2015 12:05 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Tom2]]></name></author>
<updated>2015-02-05T11:42:01+01:00</updated>
<published>2015-02-05T11:42:01+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6827#p6827</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6827#p6827"/>
<title type="html"><![CDATA[Re: [BUG] YubiOATH password handling is broken and inconsist]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6827#p6827"><![CDATA[
a minor patch for the Yubico Authenticator Desktop version should fix the systray bug.<br /><!-- m --><a class="postlink" href="https://github.com/Yubico/yubioath-desktop">https://github.com/Yubico/yubioath-desktop</a><!-- m --><br /><br />Test it out if you can.<br /><br />Thanks!<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3364">Tom2</a> — Thu Feb 05, 2015 11:42 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dwmw2]]></name></author>
<updated>2015-02-04T14:20:06+01:00</updated>
<published>2015-02-04T14:20:06+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6815#p6815</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6815#p6815"/>
<title type="html"><![CDATA[Re: [BUG] YubiOATH password handling is broken and inconsist]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6815#p6815"><![CDATA[
<div class="quotetitle">dain wrote:</div><div class="quotecontent"><br />Diff available here: <!-- m --><a class="postlink" href="https://github.com/Yubico/yubioath-android/commit/fe5d6cef539691f8670529c9490386bbf095d8de">https://github.com/Yubico/yubioath-andr ... bbf095d8de</a><!-- m --><br /></div><br /><br />That looks sane to me.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3261">dwmw2</a> — Wed Feb 04, 2015 2:20 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dwmw2]]></name></author>
<updated>2015-02-04T14:06:07+01:00</updated>
<published>2015-02-04T14:06:07+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6814#p6814</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6814#p6814"/>
<title type="html"><![CDATA[Re: [BUG] YubiOATH password handling is broken and inconsist]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6814#p6814"><![CDATA[
Mine is here: <!-- m --><a class="postlink" href="http://git.infradead.org/users/dwmw2/openconnect.git/commitdiff/9a7acca">http://git.infradead.org/users/dwmw2/op ... ff/9a7acca</a><!-- m --><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3261">dwmw2</a> — Wed Feb 04, 2015 2:06 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dain]]></name></author>
<updated>2015-02-04T11:44:04+01:00</updated>
<published>2015-02-04T11:44:04+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6810#p6810</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6810#p6810"/>
<title type="html"><![CDATA[Re: [BUG] YubiOATH password handling is broken and inconsist]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6810#p6810"><![CDATA[
Diff available here: <!-- m --><a class="postlink" href="https://github.com/Yubico/yubioath-android/commit/fe5d6cef539691f8670529c9490386bbf095d8de">https://github.com/Yubico/yubioath-andr ... bbf095d8de</a><!-- m --><br /><br />I'm going to do some more testing after lunch, but so far it seems to do the trick.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=504">dain</a> — Wed Feb 04, 2015 11:44 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dwmw2]]></name></author>
<updated>2015-02-04T11:21:24+01:00</updated>
<published>2015-02-04T11:21:24+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6809#p6809</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6809#p6809"/>
<title type="html"><![CDATA[Re: [BUG] YubiOATH password handling is broken and inconsist]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6809#p6809"><![CDATA[
OK, setting passwords with KK works properly, modulo a little confusion about precisely *which* Unicode heart Android has accessible via its keyboard. It's U+2661 WHITE HEART SUIT, and not U+2665 BLACK HEART SUIT which I usually use for torture testing. I can now interoperate happily between KK and OpenConnect.<br /><br />I can also interoperate with the older Android. I tried setting a password of &quot;¿&quot;, which in UTF-8 is bytes c2 bf. The way to get the older Android to use those bytes is to tell it the password is U+00C2 U+00BF, or &quot;Â¿&quot;. As long as I actually type those correctly (unlike in the original, unedited version of this post), that works too.<br /><br />So I think I'm going to modify the OpenConnect code so that if authentication fails, *and* if the passphrase has non-ASCII characters in it, it'll try the low 8 bits of each character as the old Android does.<br /><br />My recommendation would be to make the Android app do the same. On KK that means trying the old PBKDF2WithHmacSHA1And8bit function to authenticate, if PBKDF2WithHmacSHA1 fails.<br /><br />On older Android, you actually want to *start* by converting the UTF-8 byte representation of your passphrase from ISO8859-1, as described above, and using *that* as the input to the broken PBKDF2WithHmacSHA1. Which is just working around the brokenness that's fixed in KK. Use that when setting passphrases, and for the first attempt at authenticating. If authenticating with that fails, *then* just pass the original passphrase to the broken PBKDF2WithHmacSHA1 and try that.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3261">dwmw2</a> — Wed Feb 04, 2015 11:21 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dwmw2]]></name></author>
<updated>2015-02-04T10:38:15+01:00</updated>
<published>2015-02-04T10:38:15+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6808#p6808</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6808#p6808"/>
<title type="html"><![CDATA[Re: [BUG] YubiOATH password handling is broken and inconsist]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6808#p6808"><![CDATA[
In November it won't have been Kit Kat. I do have Kit Kat now and can test both. It sounds like they *shouldn't* interoperate, right? <br /><br />It sounds like the workaround for older Android is to take each byte of the UTF-8 byte stream and treat it as a Unicode code point (which is basically the same as converting from ISO8859-1), then use *that* as the input to the broken PBKDF2WithHmacSHA1 function.<br /><br />So if you start with a passphrase of &quot;naïve ♥&quot;, that looks like this in UTF-8:<br /> 6e 61 c3 af 76 65 20 e2  99 a5<br /><br />If you interpret those bytes as ISO8859-1, you get<br /> U+006E U+0061 U+00C3 U+00AF U+0076 …<br />or &quot;naÃ¯ve â¥&quot;.<br /><br />That string, if passed to the broken PBKDF2WithHmacSHA1 function, should generate the correct result. AIUI.<br /><br />That assumes you want to switch to using the sane representation, of course. Since Android already switched its default PBKDF2WithHmacSHA1, you already *have* a compatibility problem, with passphrases set on KK doing one thing and older versions another. I suspect you might do best to *try* both for unlocking, and always use the fixed version when setting a passphrase.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3261">dwmw2</a> — Wed Feb 04, 2015 10:38 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dain]]></name></author>
<updated>2015-02-04T10:06:10+01:00</updated>
<published>2015-02-04T10:06:10+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6807#p6807</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6807#p6807"/>
<title type="html"><![CDATA[Re: [BUG] YubiOATH password handling is broken and inconsist]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6807#p6807"><![CDATA[
I've started looking into the issue for the android app, and I think the problem is in Android: <a href="http://android-developers.blogspot.se/2013/12/changes-to-secretkeyfactory-api-in.html" class="postlink">http://android-developers.blogspot.se/2013/12/changes-to-secretkeyfactory-api-in.html</a><br /><br />According to the link, it should correctly handle unicode characters in passwords in 4.4 (KitKat) and later. Can you confirm that you're running an older version of Android (otherwise my theory goes out the window)?<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=504">dain</a> — Wed Feb 04, 2015 10:06 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[dwmw2]]></name></author>
<updated>2014-11-24T17:22:58+01:00</updated>
<published>2014-11-24T17:22:58+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6339#p6339</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6339#p6339"/>
<title type="html"><![CDATA[Re: [BUG] YubiOATH password handling is broken and inconsist]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6339#p6339"><![CDATA[
Commit 574642a0 fixes the 'rôle ♥ foo' key to display properly; thanks.<br /><br />That just leaves the crash when prompting for password, and the misbehaviour of the Android app.<br /><br />Oh, and the fact that you need to call SCardBeginTransaction() / SCardEndTransaction(), and reselect the ykneo-oath applet, each time you talk to the device. Currently if anything else talks to the Yubikey the yubico-authenticator app stops working.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=3261">dwmw2</a> — Mon Nov 24, 2014 5:22 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Tom]]></name></author>
<updated>2014-11-24T11:38:42+01:00</updated>
<published>2014-11-24T11:38:42+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6333#p6333</id>
<link href="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6333#p6333"/>
<title type="html"><![CDATA[Re: [BUG] YubiOATH password handling is broken and inconsist]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=1601&amp;p=6333#p6333"><![CDATA[
Try with the latest commit 574642a0e773cf2782c9689ded033bd5c0cf2a34<br /><!-- m --><a class="postlink" href="https://github.com/Yubico/yubioath-desktop">https://github.com/Yubico/yubioath-desktop</a><!-- m --><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2195">Tom</a> — Mon Nov 24, 2014 11:38 am</p><hr />
]]></content>
</entry>
</feed>