Sign in
Get Help

How can I use a Yubikey as a Security Key?

If you’re using Version or later of the AuthAnvil SoftToken YubiKey Programmer, you can use your YubiKey to store a 16 digit long security key that you can use with other applications, such as TrueCrypt or BitLocker. By default, when you program a YubiKey with an AuthAnvil SoftToken, the YubiKey’s second slot is used to store the token’s 9 digit serial number, followed by a random 7 digit value to make up this security key.

By default, this will be reset to the 9 digit serial number + the 7 digit random value every time you program the YubiKey, but this behavior can be changed by setting a registry key. Note: The usual warnings about editing the registry apply.

Create a DWORD registry key at HKEY_CURRENT_USER\Software\Scorpion Software\AuthAnvil SoftToken YubiKey Programmer\Slot2Behaviour. The possible values are:

  • 0 = Default Behavior
  • 1 = Generate a fully random 16 digit value. The serial number will not be included. Make sure to make a note of it somewhere else.
  • 2 = Don’t overwrite slot 2 at all. This will allow you to keep whatever value you had previously programmed in there.

For safekeeping, this key should also be kept in the AuthAnvil Password Server. If the Yubikey is lost, stolen or destroyed, the key can still be recovered so that you can access the protected information.


If you have any questions or need some help, we would be happy to assist. Open a case at or send an email to

Have more questions?

Contact us

Was this article helpful?
0 out of 0 found this helpful

Provide feedback for the Documentation team!

Browse this section