Nitrokey / pynitrokey

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

[0.4.46] nk3 secrets Unusual message when entering the wrong pin #525

Open tuxmaster5000 opened 2 months ago

tuxmaster5000 commented 2 months ago

When enter the wrong pin, the lase line of the out will be "No credentials found". I would say that the message should only appear if there is really no data. And if there is a problem, regardless of whether it is an incorrect PIN or something technical, this message should not appear at all. Sample:

nitropy nk3 secrets list
Command line tool to interact with Nitrokey devices 0.4.46
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
Authentication failed with error: "SecretsAppException(code=6300/VerificationFailed)" 
Please make sure the provided PIN is correct.
No credentials found