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

  1. I was kind of hoping this would be about an analog way to use the idea of TOTP to authenticate IRL. Like, you look at the date and/or time, perform some calculation simple enough for a child to do easily in their head, and then come up with a code you can provide and/or verify. If someone overhears, no problem.

    I'm not sure an algorithm like this exists, but that was why I clicked.

    Requiring everyone to have their phones is a non-starter IMO.

    Replies (2)
    1. How do you handle different timezone?
      Replies (2)
      1. A family would usually be in the same timezone. For edge cases, I guess you would use the timezone where most of the family lives? Children probably don't need to be taught this part, worst case scenario the adult adjusts for the child's timezone.

        This feels to me like it's not the biggest problem. Coming up with a practical algorithm is.

      2. Always convert it to UTC.
        Replies (1)
        1. Probably too difficult for a child to do in their head alongside other calculations.
    2. 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.