One system I use just changed their password policy. Previously, the only requirement was 6 digits. (e.g. 123456, 111111)
Now it's 8 digit, with no bigger then 3 digit sequence, and no pattern such as abab anywhere.
No clear rules but the following are invalid:
- 11111111
- 12345678
- 12393659 (because of ^123)
- 76768747 (because of ^7676)
- 11195712 (because of ^111)
Any way to calculate the difference in randomness? mainly, is the set now bigger or smaller?
Six digits gives $10^6$ possibilities, and $\log_2(10^6)\approx 20$ so the old way is about $20$ bits. Eight digits gives $10^8$ possibilities, which is about $26.6$ bits. The restrictions don't hurt too much. A rough approximation would be to say the three successive digit rule removes $\frac1{1000}$ after the second digit and the three repeated digit rule the same. So you only lose $\frac{12}{1000}$ of your passwords. The repeated pairs is even less. Practically, if you were brute forcing, you would probably ignore the restrictions and try them all as it would be so much easier to program.