David W. answered 06/25/15
Tutor
4.7
(90)
Experienced Prof
If there is one code entered (with 6 digits ranging from 0 to 9), that creates numbers from 000000 to 999999. There are 1,000,000 of these.
Now, using my security certifications, you can reduce the number of possibilities by noticing which keys are worn or have fingerprints or dust or other things on them. You can try obvious 6-digit patterns, like mm-dd-yy of a person's birthday or other special event (computers often use this method) -- do you know the most-used passwords (like "password"); they are listed on a web site). There is a list of such common techniques used by code-breakers. Good systems have a delay between attempts. However, it is not good to disable an account after N failures (some computers do), because any good hacker that breaks in will immediately try everyone else's account using N bad passwords to keep them out.
Once, at a surplus store, I bought a $120 briefcase (without a scratch on it) that had the clip removed and the combination changed so that you could not lock it. I reasoned that I could try one set of three numbers per second. And, even it the second side had a different combination, I said to my computer security class, "I could guarantee that if you left your briefcase on your desk and went to lunch, I could open it and duplicate keys or papers and lock it back up in an hour."