Nitrokey / pynitrokey

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

nk3 secrets: Ramdomly generate challenge-response secret #508

Open robin-nitrokey opened 3 months ago

robin-nitrokey commented 3 months ago

Users have to do something like this to set up a secret for use with KeypassXC:

$ nitropy nk3 secrets add-challenge-response 2 $(echo your-20-byte-secret | base32)

It would be more convenient to have an option that takes random bytes from the Nitrokey 3, performs the base32 encoding and then writes the slot.