{"id":342,"date":"2017-03-02T14:29:57","date_gmt":"2017-03-02T20:29:57","guid":{"rendered":"http:\/\/wp.cune.edu\/elearning\/?p=342"},"modified":"2017-03-30T16:16:22","modified_gmt":"2017-03-30T21:16:22","slug":"multi-lock-solution","status":"publish","type":"post","link":"https:\/\/wp.cune.edu\/elearning\/2017\/03\/02\/multi-lock-solution\/","title":{"rendered":"Multi-Lock Solution"},"content":{"rendered":"<p>We received\u00a0a\u00a0new <a href=\"http:\/\/www.breakoutedu.com\">BreakoutEDU<\/a> box the other day and it came with new and improved Multi-Locks. What is a multi-lock? <img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-343 alignright\" src=\"http:\/\/wp.cune.edu\/elearning\/files\/2017\/03\/IMG_3733-300x300.jpg\" alt=\"\" width=\"300\" height=\"300\" srcset=\"https:\/\/wp.cune.edu\/elearning\/files\/2017\/03\/IMG_3733-300x300.jpg 300w, https:\/\/wp.cune.edu\/elearning\/files\/2017\/03\/IMG_3733-150x150.jpg 150w, https:\/\/wp.cune.edu\/elearning\/files\/2017\/03\/IMG_3733-768x768.jpg 768w, https:\/\/wp.cune.edu\/elearning\/files\/2017\/03\/IMG_3733-1024x1024.jpg 1024w, https:\/\/wp.cune.edu\/elearning\/files\/2017\/03\/IMG_3733-144x144.jpg 144w, https:\/\/wp.cune.edu\/elearning\/files\/2017\/03\/IMG_3733-800x800.jpg 800w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>It&#8217;s a combination lock that uses letters or arrows instead of numbers. Cool idea, but I wanted to generate a list of all possible words I\u00a0could\u00a0make.<\/p>\n<p>After a bit of research, I found a post on the <a href=\"http:\/\/www.metafilter.com\/\">MetaFilter<\/a> community blog with the answer. In a thread about solving a bike lock combination, user <a href=\"http:\/\/www.metafilter.com\/user\/20528\">xueexueg<\/a>\u00a0provided a snippet of code that will run in the OSX Terminal app.<\/p>\n<p>At first it wouldn&#8217;t run properly and returned an error. So, more digging. The answer was found in a <a href=\"https:\/\/www.gnu.org\/software\/grep\/manual\/grep.html\">GREP manual on GNU.ORG<\/a>. I had to be sure the apostrophes were straight (not slanted) for the code to work. And voil\u00e5!<\/p>\n<p>The default ring set generated 70 words! Some of them weren&#8217;t immediately familiar\u00a0(names of European cities, Latin terms, and derivations) but others were.\u00a0I changed out one ring and the next list topped out at 256 words! Wow!<\/p>\n<p>Here&#8217;s the code if you want to try it yourself (it was easier for me to simply enter the code directly in Terminal than to copy\/paste, thus avoiding the apostrophe issue).<\/p>\n<pre>grep -iE '^[xxxxxxxxxx][xxxxxxxxxx][xxxxxxxxxx][xxxxxxxxxx][xxxxxxxxxx]$' \/usr\/share\/dict\/words<\/pre>\n<p>Enjoy!<\/p>\n<p>Update: after a bit more research, I&#8217;ve determined there are 240 possible ring combinations for this lock. The first 10 combinations alone resulted in over 1400 words.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We received\u00a0a\u00a0new BreakoutEDU box the other day and it came with new and improved Multi-Locks. What is a multi-lock? It&#8217;s a combination lock that uses letters or arrows instead of numbers. Cool idea, but I wanted to generate a list <a class=\"more-link\" href=\"https:\/\/wp.cune.edu\/elearning\/2017\/03\/02\/multi-lock-solution\/\">Continue reading <span class=\"screen-reader-text\">  Multi-Lock Solution<\/span><span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":164,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_s2mail":"yes","footnotes":""},"categories":[1],"tags":[],"class_list":["post-342","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/wp.cune.edu\/elearning\/wp-json\/wp\/v2\/posts\/342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.cune.edu\/elearning\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.cune.edu\/elearning\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.cune.edu\/elearning\/wp-json\/wp\/v2\/users\/164"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.cune.edu\/elearning\/wp-json\/wp\/v2\/comments?post=342"}],"version-history":[{"count":3,"href":"https:\/\/wp.cune.edu\/elearning\/wp-json\/wp\/v2\/posts\/342\/revisions"}],"predecessor-version":[{"id":347,"href":"https:\/\/wp.cune.edu\/elearning\/wp-json\/wp\/v2\/posts\/342\/revisions\/347"}],"wp:attachment":[{"href":"https:\/\/wp.cune.edu\/elearning\/wp-json\/wp\/v2\/media?parent=342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.cune.edu\/elearning\/wp-json\/wp\/v2\/categories?post=342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.cune.edu\/elearning\/wp-json\/wp\/v2\/tags?post=342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}