Yubico / yubikey-manager-qt

Cross-platform application for configuring any YubiKey over all USB interfaces.
https://developers.yubico.com/yubikey-manager-qt/
BSD 2-Clause "Simplified" License
238 stars 29 forks source link

Add keyboard layout option to `OtpStaticPasswordView.qml` #348

Open piotrpdev opened 1 year ago

piotrpdev commented 1 year ago

https://github.com/Yubico/yubikey-manager-qt/assets/99439005/767e2a94-00e6-43dd-910f-1fc21590dc4c

Currently this program only allows the user to set the OTP static password using the "MODHEX" or "US" scancodes, however many people[1][2][3] including me would like to use other keyboard layouts for this.

The regular expressions used for validation were generated using the scancodes from yubikey-manager, I made a short Python script for this: https://github.com/piotrpdev/yubikey-scancode-regexp-gen. This way it should be easy to update the regular expressions in the future (I also released the code under The Unlicense).