robbiev / two-factor-auth

Generate 2FA tokens compatible with Google Authenticator

Home Page:http://garbagecollected.org/2014/09/14/how-google-authenticator-works/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

where is the key?

tamadezhenshiyuncai opened this issue · comments

I am only a layman. i don,t know where the key is,
from the following parts. if the key is there?
$ cat /home/blc/liufeia/key
Warning: pasting the following URL into your browser exposes the OTP secret to Google:
https://www.google.com/chart?chs=200x200&chld=M|0&cht=qr&chl=otpa
Your new secret key is: 7QOJCMH2YGT
Your verification code for code 1 is 0942
Your emergency scratch codes are:
38106
appreciate

This 11 character string looks like an incomplete base32 string. 11 base32 characters is the encoding of 55 bits, and most base32 decodes would ignore the 11th character and decode this as 6 bytes. It doesn't look like a complete base64 string, because mime decoders would treat that 11th character "T" the same as they would Q or R or S.