# 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:** 10

<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 22, 2023, 4:50am UTC](https://support.nitrokey.com/t/setup-otp-challenge-response-for-keepassxc/5497/10 "2023-10-22T04:50:15Z")

</div>

> [@SecureBoot](#):
>
> Can you create a hex for Nitrokey without a Yubikey?

If you don’t have a Yubikey, you don’t need a hex string.  
As @nku explained, a twenty digit random value converted to a SHA-1 hash with base32 is sufficient.

E.g. like this ([source: comment from Anonymous on 22. August 2023 - 19:16](https://www.nitrokey.com/de/blog/2023/keepassxc-276-unterst%C3%BCtzt-nitrokey-3)):

```auto
Generate a 20-byte random string with:
dd if=/dev/urandom of=/tmp/nk bs=20 count=1

Encode this and add to your nitrokey in a slot (slot 2 here):
nitropy nk3 secrets add-challenge-response 2 $(base32 /tmp/nk)

```

---

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