Yubico Forum
https://forum.yubico.com/

[BUG] keyboard error
https://forum.yubico.com/viewtopic.php?f=30&t=1006
Page 1 of 2

Author:  null [ Mon Mar 18, 2013 6:09 pm ]
Post subject:  [BUG] keyboard error

I programmed a static password with the character "&" in it and it appears correctly in the field, but after programming it it Yubikey returns a "/" instead. When I compare keyboard layout then I see that that the shift-6 I entered on the Spanish keyboard is a slash on the US keyboard.

I am talking here about the binary version for Ubuntu 12.04 LTS:
version 3.1.8
library ver. 1.12.0

Author:  Klas [ Thu Mar 21, 2013 8:29 am ]
Post subject:  Re: [BUG] keyboard error

Hello.

The scan-code mode (used when you want to enter a password yourself) is very keyboard layout dependent.

The tool could probably be proved for this.. but it's a bit tricky to capture this in a meaningful way.
So what the tool does is take what you enter and convert it to the US scan code equivalent. So if you want to control exactly what is sent to the key you need to convert your strings to scan codes for your layout and then enter that in the "scan codes" field in the tool.

/klas

Author:  phoen1x [ Sun Apr 28, 2013 2:51 pm ]
Post subject:  Re: [BUG] keyboard error

Hi,

I'm also running into spechial chars problem. Tryed to toy around with the "scan codes" field but caused a

"Speicherzugriffsfehler" == "memory access violation"

in the yubikey-personalization-gui when I put in "ad" which should result in "_".

Could you please provide more information about how to convert ASCII to "scan codes" (cli tools) and the language settings (german).

Regards,
Thomas

Ubuntu 12.04 LTS
yubikey-personalization-gui version: 3.1.9-1~ppa1~precise1

Author:  Klas [ Fri May 31, 2013 7:31 am ]
Post subject:  Re: [BUG] keyboard error

Hello,

As you've noted there's a bug with entering the raw scancodes.. A fix for this is already in the git repo (https://github.com/Yubico/yubikey-perso ... 948561c497) and will be in the next release.

/klas

Author:  ifci [ Sun Nov 17, 2013 11:48 am ]
Post subject:  Re: [BUG] keyboard error

Yeah, makes it quiet hard to use if you want to enter a specific password (especially with some ((german)) spezial-chars)...

Author:  Klas [ Mon Nov 18, 2013 8:40 am ]
Post subject:  Re: [BUG] keyboard error

A fix for this is in since the release of version 3.1.10, do you see issues with this since that version as well?

/klas

Author:  ifci [ Mon Nov 18, 2013 7:29 pm ]
Post subject:  Re: [BUG] keyboard error

I'm using App. Version: 3.1.11, Library Version 1.14.1, Built 09.10.2013, 10:44:44
Please also see my other post:
viewtopic.php?f=30&t=1237

Author:  Klas [ Tue Nov 19, 2013 7:46 am ]
Post subject:  Re: [BUG] keyboard error

Hello,

To be clear, the bug discussed here is that when you enter a scancode password by entering the raw scancodes the application crashes, is that what you're seeing?

If the issue you're seeing is that some characters you enter come out another way that's more or less expected when you're not using a US keyboard. There is no way (or at least no good way) for the application to know what layout you're using or what scancodes the characters you enter correspond to. So it's mapping the characters you enter to US scancodes.
(see https://github.com/Yubico/yubikey-perso ... /issues/19)

/klas

Author:  ifci [ Tue Nov 19, 2013 9:40 pm ]
Post subject:  Re: [BUG] keyboard error

I actually get the error described there, the application does not crash.

I made a quick sketch about the problem:
Image
( Source for the Keyboard => Numbers convertions: http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00000520.html )

Is this around right? Then I'd have some ideas how to solve this...

Btw: The posts you mention are almost 6 months old...

Author:  Klas [ Wed Nov 20, 2013 9:29 am ]
Post subject:  Re: [BUG] keyboard error

Hello,

Yes, that is a good summary of the problem, though the scancodes are not ascii but according to this (http://www.win.tue.nl/~aeb/linux/kbd/scancodes-14.html) table for us keyboard. The code in the personalization tool to handle this is at https://github.com/Yubico/yubikey-perso ... anedit.cpp

We're happy to receive any contributions of either code or ideas to make the personalization tool better!

/klas

Page 1 of 2 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/