Yubico Forum

...visit our web-store at store.yubico.com
It is currently Tue Jan 30, 2018 5:09 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 26 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
PostPosted: Tue Sep 15, 2009 6:54 pm 
Offline

Joined: Tue Aug 11, 2009 6:03 pm
Posts: 7
I wrote the php anything -> modhex converter. Code is at http://dingoskidneys.com/cgi-bin/hgwebdir.cgi/yubikey

modhex.php provides a function decode_modhex($otp, $to); where $to is the destination alphabet and defaults to standard hexadecimal. It returns a (usually one element) 0-n element array of possible interpretations of $otp. As long as you provide $otp in UTF-8, decode_modhex() can interpret $otp for almost any keyboard layout and give it back to you in standard hexadecimal.


Top
 Profile  
Reply with quote  

Share On:

Share on Facebook FacebookShare on Twitter TwitterShare on Tumblr TumblrShare on Google+ Google+

PostPosted: Mon Jan 25, 2010 9:09 pm 
Offline

Joined: Mon Jan 25, 2010 8:59 pm
Posts: 1
Has there been any progress on getting this integrated into the validation server? As a Dvorak user and new YubiKey owner, it just took me a good hour to figure out that I needed to switch back into QWERTY for my YubiKey to work. I was in the middle of explaining the problem in a support email when the light bulb finally went off :)


Top
 Profile  
Reply with quote  
PostPosted: Wed Jan 27, 2010 12:14 am 
Offline
Site Admin
Site Admin

Joined: Wed May 28, 2008 7:04 pm
Posts: 263
Location: Yubico base camp in Sweden - Now in Palo Alto
Sorry for keeping all Dvorak guys on the hook in this matter. We've been evaluating several options for not just supporting Dvorak keyboards but also other languages. Given the overall complexity of of the task, it has been somewhat dangling. I hope we'll be able to present a good solution meeting the needs later this spring. That's the best guess for now.

With the best regards,

JakobE
Hardware- and firmware guy @ Yubico


Top
 Profile  
Reply with quote  
PostPosted: Tue Feb 09, 2010 1:55 pm 
Offline

Joined: Tue Aug 11, 2009 6:03 pm
Posts: 7
I moved my keyboard layout translation software to http://bitbucket.org/dholth/yubikey/ . It takes a Yubikey OTP from almost any keyboard layout and spits out the possible modhex translations. There is usually only one possibility but occasionally there are a couple of possibilities. The JavaScript version is still demoed at http://dingoskidneys.com/~dholth/yubikey/

The source includes the JavaScript version, a PHP version that could basically replace the "is this a valid yubikey" regex inside the server, a Python version, and some other stuff. If you're running your own validation server you might want to check it out.


Top
 Profile  
Reply with quote  
PostPosted: Sat Oct 23, 2010 9:14 pm 
Offline

Joined: Sat Oct 23, 2010 9:10 pm
Posts: 2
For those using X11 >= 1.7.99.901-1, put the following in /etc/X11/xorg.conf to have the yubikey get a us keyboard layout regardless of what layout you normally have:
Code:
Section "InputClass"
  Identifier      "yubikey"
  MatchVendor "Yubico"
  MatchProduct "Yubikey"
  Option "XkbModel" "pc101"
  Option "XkbLayout" "us"
  Option "XkbVariant" "intl"
EndSection


Top
 Profile  
Reply with quote  
PostPosted: Sat Oct 23, 2010 9:18 pm 
Offline

Joined: Sat Oct 23, 2010 9:10 pm
Posts: 2
A bit late late to the discussion, but to throw in my 2 cents; wouldn't the easiest be to just prepend each OTP with each of the modhex characters? That way you can read which character in the current keymap represents each modhex character?


Top
 Profile  
Reply with quote  
PostPosted: Sun Oct 24, 2010 7:55 am 
Offline

Joined: Fri Jun 20, 2008 2:59 am
Posts: 84
The "language prefix" approach has been thought of long ago, but just makes the entry time even longer.

When making AuthLite we did some calculation and it turns out to be VERY easy to discern Dvorak vs Qwerty with a high level of confidence. There are some very unlikely cases where an OTP could be either language. In these cases we have chosen to ASSUME qwerty. One could also try qwerty first and fail over to dvorak and try again with that.

It seriously took us like, one day to figure all this out in AuthLite and build it in. But that's because I am a dvorak user so any product I work on had better support it :D


Top
 Profile  
Reply with quote  
PostPosted: Sat Oct 30, 2010 12:19 am 
Offline
Site Admin
Site Admin

Joined: Wed May 28, 2008 7:04 pm
Posts: 263
Location: Yubico base camp in Sweden - Now in Palo Alto
We have the option of sending all modhex characters first by setting the CFGFLAG_SEND_REF flag during configuration. Then, the string "cbdefghijklnrtuv" is sent first in all OTP outputs.

Regards,

JakobE
Hardware- and firmware guy @Yubico


Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 02, 2011 11:40 pm 
Offline

Joined: Thu Jun 02, 2011 11:39 pm
Posts: 1
Couldn't you just integrate dholth's code into the main server and then this problem would be solved? That seems the easiest and best solution. Switching back and forth is annoying :P


Top
 Profile  
Reply with quote  
PostPosted: Wed Jun 29, 2011 8:35 pm 
Offline

Joined: Wed Jun 29, 2011 8:30 pm
Posts: 1
Isn't there a way to use udev and xorg.conf file to get ubikey seen as qwerty keyboard whatever layout used by user?
Of course this should be useful only for Linux system.


Sorry for my bad English I don't speak it very often.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 26 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group