Unofficial Hacker News companion — get notified on comment replies, and more.

Your family should have a shared two-factor authentication code (opens external site)

419 points by robin_reala 3 days ago | shkspr.mobi | 144 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (1)

  1. 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