Guest User!

You are not Sophos Staff.

[9.200][ANSWERED] OTP Token Creation - Manual Method

I am having trouble determining the "correct" secret format/length.

If I go to randomkeygen.com and use a 152-bit WEP Key, I get the error message "The OTP shared secret '.....' must be at least 128 bits long." (Is it not 152 bits long?)

If I try some of the other hex keys I get the message ""The OTP secret '....' must be a hexadecimal octet string." message.

What is the correct format to use and if using the tool at randomkey.com, which one?

Thanks [:)]

  • If I go to randomkeygen.com and use a 152-bit WEP Key, I get the error message "The OTP shared secret '.....' must be at least 128 bits long." (Is it not 152 bits long?)


    What you get there are four keys with 64 bit each. Use two of them together and you should be fine.


    If I try some of the other hex keys I get the message ""The OTP secret '....' must be a hexadecimal octet string." message.

    What is the correct format to use and if using the tool at randomkey.com, which one?


    I've taken a look at the "256-bit WEP Keys". These have a length of 116 bits  (or 14.5 bytes).

    OTP secrets need to be a multiple of 8 bits (i.e. octets) and 128 bit at least. So, when you paste a hex string it needs to be 32 characters long or longer.

    Hope that helps.
  • What you get there are four keys with 64 bit each. Use two of them together and you should be fine.



    I've taken a look at the "256-bit WEP Keys". These have a length of 116 bits  (or 14.5 bytes).

    OTP secrets need to be a multiple of 8 bits (i.e. octets) and 128 bit at least. So, when you paste a hex string it needs to be 32 characters long or longer.

    Hope that helps.


    Thanks kindly, I have updated the KB for OTP to use/suggest this site for key generation. [:)]

    Password Generator