<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d12969692\x26blogName\x3dLearning+Strategies\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dBLUE\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttps://larrydavidson.blogspot.com/search\x26blogLocale\x3den_US\x26v\x3d2\x26homepageUrl\x3dhttp://larrydavidson.blogspot.com/\x26vt\x3d-7810603580866381255', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

Tuesday, August 29, 2006

When you've forgotten the combination to your lock...

As we all know, combination locks should really be called permutation locks.

Actually, that isn’t quite right. Duplicates are allowed, so you aren’t really taking permutations of 40 numbers. But that isn’t the subject of this post. The point is that with three numbers, each of which can be one of 40, there should be 64,000 possible “combinations.” That means that the probability that two locks will have the same combination is small enough not to worry about. It also means that it would take you a long time to try every possibility if you forget what your combination is. Let’s suppose you can try five possible combinations per minute, which seems reasonable, then it should take 12,800 minutes, which is 213 hours. At eight hours per day, we’re talking about 27 days of work, or over five solid weeks if you give yourself weekends off.

That seems pretty secure, doesn’t it? Clearly nobody will devote that amount of time.

Actually, that’s the worst-case scenario. You might, after all, hit on the correct combination in your first try. So we need the expected value, which is half the previous figure: on the average it should take less than three weeks. Still ridiculous.

But Liam Bowen has shown that there’s a way to get the expected value down to a very manageable ten minutes, still at five tries per minute! In other words, the worst case becomes 100 trials rather than 64,000. In his interesting and much linked-to article, he uses modular arithmetic and lock knowledge (occasionally confusing numbers with digits) to explain how to do this. But let me quote and emphasize Bowen’s caution:
PLEASE don’t use this to break into anything other than your own stuff.

Labels:


ARCHIVES

This page is powered by Blogger. Isn't yours? Made with Macintosh