Static password does not take into account the length #29
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It seems for static password the length is limited to 8 characters:
Then pressing the button gives only
bbbbbbbbThe same happens with password generation:
It is fixed but
ykmansets theSHORT_TICKETflag, which implies only the half of the password is sent. Is this happening with a Yubikey too? To me is quite strange.For the static password mode, the full programmed password is returned. I think this option is used only for Yubico OTP: https://developers.yubico.com/yubikey-personalization/Manuals/ykpersonalize.1.html
From the ykpersonalize webpage:
and YKMAN sets by default SHORT_TICKET flag:
51a7ae438c/yubikit/yubiotp.py (L474)It does not set STATIC_TICKET, so I guess it is used as raw scancode mode.
When you do
$ ykman otp static --length 24 --generate 1, does it return 24 chars or 12 in a Yubikey?It returns a 24 characters password when pressing the Yubikey. Tested on my YubiKey 5C NFC.
Fixed in Release 5.8