6 ms·
Out of curiosity, do you know what happened if the pin number was a palindrome? Did they restrict your selection to prevent that?
by gillygize 15y ago
Out of curiosity, do you know what happened if the pin number was a palindrome? Did they restrict your selection to prevent that?
- Lost_BiomedE 15y agoYes, they restricted the selection. They also encouraged each number to be unique.
- botker 15y agoThat's a funny requirement. Requiring uniques reduces password strength.
- slowpoke 15y agoBank PINs aren't really about password strength though. To prevent brute force, they simply block access after n tries (usually n = 3). They are just a way of preventing access to the card in case of loss or theft. So as long as there are enough combinations to make the chance of a successful brute force after three tries small enough, it doesn't really matter how strong the password is. For online banking, there are usually added security schemes and the PIN isn't used at all.
- etcet 15y agoFor the interested: enforcing no palindromes and unique digits reduces the number of possible PINs by about a factor of 2, bringing it down to 5040 4-digit combinations. [JS code] http://pastebin.com/3A46BP1C http://pastebin.com/3A46BP1C
- Jabbles 15y agoIf the digits are unique then there are no palindromes. Therefore there are 1098*7 = 5040 combinations.
- etcet 15y agoThe formatting ate your *'s but I understand. That's definitely the better way to reason the problem. In my defense it was late (after a trip to the bar) and my code is basically stream of consciousness.