logoalt Hacker News

angry_octet • yesterday at 7:55 PM • 0 replies • view on HN

Apart from the practicalities of this, using the authors server side secret processor is awful. The open source tools qrencode and oathtool are available in every good packaging system.

Sequence based HOTP might be more suitable for the out of band nature of the problem. Initialise this in Google Authenticator like this:

qrencode -o hotp.png 'otpauth://hotp/FamilySecrets:home?secret=RANSOMSEED&issuer=MyService&counter=0'

Or in the terminal directly:

qrencode -t ANSIUTF8 'otpauth://hotp/FamilySecrets:home?secret=RANSOMSEED&issuer=MyService&counter=0'

Then you tap on Authenticator to advance the code.

Generate the codes in the terminal, with your own RANDOM SEED and the $COUNTER value:

oathtool --hotp -b -c $COUNTER -w 5 RANDOMSEED