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 (2)

  1. The algorithm could be:

    2026-11-29 ... 2+0+2+6 + 1 + 1 + 2 + 9 = 23

    So 23 is today's date seed. The secret is the function. So everyone in your family needs to be able to, for instance, multiply by two and then round down to the nearest multiple of three and subtract one. Given this example secret function, today's code is 44

    If you want to verify in both directions, add something about the individual that the other would know. I'm 39 so maybe my code for today is 3449 and my niece is 11 so maybe her code for today is 1441.

    It wouldn't resist statistical analysis, but is that really the threat model here anyway?

    Replies (1)
    1. ...I think this has convinced me that an algorithm isn't possible, because even just coming up with the seed is at the limit of being too difficult IMO. Adding isn't hard, but keeping all the numbers in working memory is.