Why you should use four different digits for keypad locks

Posted by Jonas Elfström Wed, 23 Sep 2009 17:49:00 GMT

I made a couple of very bad mistakes in this article so I took it down. Hopefully I'm more on track in the sequel.

Posted in Security, Ruby | 3 comments


    1. Avatar
      Jonas Elfström Wed, 23 Sep 2009 21:14:42 GMT

      An even more sinister approach would be to use an infrared meter a couple of seconds after someone just touched the keypad.

    2. Avatar
      jberryman Thu, 24 Sep 2009 04:22:35 GMT

      This was really interesting to read! I just discovered De Brujin sequences two days ago and was just working on a blog post when I read this.

      I implemented two binary De Brujin algorithms in haskell and wrote about it here.

    3. Avatar
      Fredrik Mansfeld Thu, 24 Sep 2009 07:47:32 GMT

      Just a minor correction: I think De Brujin’s method needs 10003 keystrokes in the worst case. The interesting thing is that the sequence itself is only 10000 digits. If you havn’t had any luck when you reach the end you just start over from the beginning to get the last three combinations. You can see it in your example too. The combinations 1114, 1144 and 1444 is missing, but you get them if you start over from the beginning when you reach the end.

Comments are closed