<?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=16&amp;t=593" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2012-05-26T10:34:02+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=16&amp;t=593</id>
<entry>
<author><name><![CDATA[saa]]></name></author>
<updated>2012-05-26T10:34:02+01:00</updated>
<published>2012-05-26T10:34:02+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=593&amp;p=3119#p3119</id>
<link href="https://forum.yubico.com/viewtopic.php?t=593&amp;p=3119#p3119"/>
<title type="html"><![CDATA[Re: Linux static scan mode?]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=593&amp;p=3119#p3119"><![CDATA[
Sorry for posting to an old topic, but I also just got my Yubikey.  To get all 38 characters, you need to modify ykpers-args.c to allow 16 bytes (32 hex digits) of fixed identity.  I couldn't figure out a filename extension that was acceptable for a file upload, so here's the patch inline:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">--- ykpers-1.6.3/ykpers-args.c.~1~   2011-12-14 08:41:11.000000000 -0800<br />+++ ykpers-1.6.3/ykpers-args.c   2012-05-26 01:59:59.000000000 -0700<br />@@ -309,7 +309,7 @@<br />             size_t fixedbinlen = 0;<br />             int rc = hex_modhex_decode(fixedbin, &amp;fixedbinlen,<br />                         fixed, fixedlen,<br />-                        0, 16, true);<br />+                        0, 32, true);<br />             if (rc &lt;= 0) {<br />                fprintf(stderr,<br />                   &quot;Invalid fixed string: %s\n&quot;,<br /></div><br /><br />After doing that, you should be able to do something like:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">$ ./ykpersonalize -2 -o-static-ticket -oshort-ticket -o-strong-pw1 -o-strong-pw2 -o-man-update \<br />-ofixed=h:0405060708090a0b0c0d0e0f10111213 -ouid=141516171819 -a1a1b1c1d1e1f20212223242526278485<br />Firmware version 2.2.3 Touch level 1795 Program sequence 4<br /><br />Configuration data to be written to key configuration 2:<br /><br />fixed: m:cfcgchcicjckclcncrctcucvbcbbbdbe<br />uid: h:141516171819<br />key: h:1a1b1c1d1e1f20212223242526278485<br />acc_code: h:000000000000<br />ticket_flags: APPEND_CR<br />config_flags: SHORT_TICKET<br />extended_flags: <br /><br />Commit? (y/n) &#91;n&#93;: y<br /></div><br />A long press then yields: <div class="codetitle"><b>Code:</b></div><div class="codecontent">abcdefghijklmnopqrstuvwxyz1234567890AB</div><p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=2067">saa</a> — Sat May 26, 2012 10:34 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[kaibookblue]]></name></author>
<updated>2011-03-09T09:02:34+01:00</updated>
<published>2011-03-09T09:02:34+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=593&amp;p=2606#p2606</id>
<link href="https://forum.yubico.com/viewtopic.php?t=593&amp;p=2606#p2606"/>
<title type="html"><![CDATA[Re: Linux static scan mode?]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=593&amp;p=2606#p2606"><![CDATA[
Hopefully not too late for you - I only got my yubikey a couple of days ago - but it is possible to set a scan-mode password using the Linux tool.  I'm running Debian sid so YMMV.  It seems the password is made up of the fixed identity (first 8 characters), the uid (next 6 characters) and the AES key (next 16 characters) catted together.  This is only 30 characters - I haven't found out where the missing 8 are yet.  Below is the command I used to set the 2nd config to be a static password of &quot;Hello world!&quot;<br /><br />ykpersonalize -2 -v -o -static-ticket -oshort-ticket -o fixed=h:8b080f0f122c1a12 -o uid=150f079e0000 -a 00000000000000000000000000000000<br /><br />I got the USB scan codes from <a href="http://geekhack.org/showwiki.php?title=Scan+Codes" class="postlink">http://geekhack.org/showwiki.php?title=Scan+Codes</a> and you add 0x80 to get a capital/shifted character.  Put zeros at the end to pad a short password.  You may also want  &quot;-o -man-update&quot; to disable the feature to change the static password with a long press as mentioned in the user guide.<br /><br />Hope this helps.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1572">kaibookblue</a> — Wed Mar 09, 2011 9:02 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[cybermage]]></name></author>
<updated>2010-11-14T21:10:16+01:00</updated>
<published>2010-11-14T21:10:16+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=593&amp;p=2440#p2440</id>
<link href="https://forum.yubico.com/viewtopic.php?t=593&amp;p=2440#p2440"/>
<title type="html"><![CDATA[Re: Linux static scan mode?]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=593&amp;p=2440#p2440"><![CDATA[
Doesn't really help - since I don't run Windows anywhere.  But thanks for confirming what I suspected.  Thank goodness that's not what I ordered the keys for, it was just a nice side-effect I was hoping for.<br /><br />FYI, I tried the windows tool in Wine before posting the question and it wouldn't find the key.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1431">cybermage</a> — Sun Nov 14, 2010 9:10 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[samir]]></name></author>
<updated>2010-11-11T11:35:48+01:00</updated>
<published>2010-11-11T11:35:48+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=593&amp;p=2434#p2434</id>
<link href="https://forum.yubico.com/viewtopic.php?t=593&amp;p=2434#p2434"/>
<title type="html"><![CDATA[Re: Linux static scan mode?]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=593&amp;p=2434#p2434"><![CDATA[
As of now, the functionality to set the scan-code mode password is not available in the Linux Personalization Tool. However, you can use the Windows based Personalization Tool to set your own password using the scan code mode. <br /><br />The Windows based Personalization Tool can be downloaded from the link below:<br /><br /><!-- m --><a class="postlink" href="http://www.yubico.com/personalization-tool">http://www.yubico.com/personalization-tool</a><!-- m --><br /><br />We hope this helps!<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1076">samir</a> — Thu Nov 11, 2010 11:35 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[cybermage]]></name></author>
<updated>2010-11-08T18:59:46+01:00</updated>
<published>2010-11-08T18:59:46+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=593&amp;p=2429#p2429</id>
<link href="https://forum.yubico.com/viewtopic.php?t=593&amp;p=2429#p2429"/>
<title type="html"><![CDATA[Linux static scan mode?]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=593&amp;p=2429#p2429"><![CDATA[
Is there no way to use the scan mode to set a static password in Linux?  I don't see any option for it.<br /><br />I'm able to set a random password, but believe it or not I have a bank account website that won't take a password longer than 12 characters.  Yeah, I know...<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1431">cybermage</a> — Mon Nov 08, 2010 6:59 pm</p><hr />
]]></content>
</entry>
</feed>