# Setup OTP / challenge-response for KeePassXC

**URL:** <https://support.nitrokey.com/t/setup-otp-challenge-response-for-keepassxc/5497>\
**Category:** Nitrokey Generic\
**Created:** [October 11, 2023, 5:41am UTC](https://support.nitrokey.com/t/setup-otp-challenge-response-for-keepassxc/5497 "2023-10-11T05:41:06Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![mepi0011](https://support.nitrokey.com/user_avatar/support.nitrokey.com/mepi0011/32/1416_2.png) [@mepi0011](https://support.nitrokey.com/u/mepi0011)\
**Post date:** [October 13, 2023, 4:58pm UTC](https://support.nitrokey.com/t/setup-otp-challenge-response-for-keepassxc/5497/6 "2023-10-13T16:58:34Z")

</div>

To create the challenge-response I did following steps:

1. I create a hexinput.txt with the 20 bytes hex of the Yubikey secret without spaces.  
`echo "cef8d6f48d5bd5dcc2237932a7a67ef2bfc4edbe`

2. Convert the text file to a bin file.  
`xxd -r -p ./hexinput.txt out.bin`

3. Output the bin.file as base32  
`cat out.bin | base32`

4. Copy the output from previous command as to create the challenge response  
`itropy nk3 secrets add-challenge-response 2 <my secret>`

[Once I have solved the problem](https://support.nitrokey.com/t/nitrokey-3-not-detected-by-keepassxc-on-arch-linux/5507) and the Nitrokey is recognized by KeePassXC, I will see if I could create a backup of my Yubikey. Then I will report back here.

---

_[View the full topic](https://support.nitrokey.com/t/setup-otp-challenge-response-for-keepassxc/5497)._
