OTP or S/KEY - Conversion of Hex string into 6 readable words

Posted by Garbit on Stack Overflow See other posts from Stack Overflow or by Garbit
Published on 2010-02-18T16:40:29Z Indexed on 2010/04/21 17:23 UTC
Read the original article Hit count: 710

Filed under:
|
|

As seen in RFC2289 (S/KEY), there is a list of words that must be used when converting the hexadecimal string into a readable format.

How would i go about doing so?

The RFC mentions:

The one-time password is therefore converted to, and accepted as, a sequence of six short (1 to 4 letter) English words. Each word is chosen from a dictionary of 2048 words; at 11 bits per word, all one-time passwords may be encoded.

Read more: http://www.faqs.org/rfcs/rfc1760.html#ixzz0fu7QvXfe

Does this mean converting a hex into decimal and then using that as an index for an array of words. The other thing it could be is using a text encoding e.g. 1111 might equal dog in UTF-8 encoding

thanks in advance for your help!

© Stack Overflow or respective owner

Related posts about one-time-password

Related posts about java-me