OTP or S/KEY - Conversion of Hex string into 6 readable words
- by Garbit
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!