Nitrokey / pynitrokey

Python client for Nitrokey devices
Apache License 2.0
93 stars 28 forks source link

secrets: list requires app version 0.4.11 #406

Closed robin-nitrokey closed 1 year ago

robin-nitrokey commented 1 year ago

SecretsApp.list_with_properties (that is used for the list subcommand) requires app version 0.4.11 (firmware version 1.5.0). Otherwise, the last byte of the credential label is interpreted as the property byte (that is actually not part of the response).

$ nitropy nk3 secrets list
Command line tool to interact with Nitrokey devices 0.4.38
Please provide PIN to show PIN-protected entries (if any), or press ENTER to skip
Please touch the device if it blinks
Current PIN (7 attempts left): 
Please touch the device if it blinks
01. HOTP test vecto     Hotp/Sha1       PIN required
02. Tes Totp/Sha1       PWS data available
03. Test        Totp/Sha1       PIN required
04. Test        Totp/Sha1       touch required,PIN required

$ nitropy nk3 update
...
Current firmware version:  v1.4.0
Updated firmware version:  v1.5.0
....

$ nitropy nk3 secrets list
Command line tool to interact with Nitrokey devices 0.4.38
Please provide PIN to show PIN-protected entries (if any), or press ENTER to skip
Please touch the device if it blinks
Current PIN (8 attempts left): 
Please touch the device if it blinks
01. HOTP test vector    Hotp/Sha1
02. Test        Totp/Sha1       PIN required
03. Test2       Totp/Sha1
04. Test3       Totp/Sha1