I'm not that good in math. Where did you get the 64 and 32 elements from?
And could you please explain your calculations to me?
Thanks!
Okay.
I chose the numbers 32 and 64 just because they're convenient for demonstrating my point. Both numbers are powers of two.
Two raised to the fifth power, which means 2 x 2 x 2 x 2 x 2, or 2
5, equals 32. An example of a set of 32 characters that are all easy to type would be abcdefghjklmnpqrstuvwxyz23456789. Using this character set for the case of a password consisting of a single character, there would be 2
5, or 32, possible passwords.
For the case of a password consisting of two characters, there would be 32 X 32 or 1024 possible combinations. This can be expressed as
32
2 = (2
5)
2 = 2
5 x 2 = 2
10.
The identity that applies here is (N
A)
B = N
A x B.
For the case of a password consisting of 16 characters, there would be 32
16 = 1,208,925,819,614,630,000,000,000 possible combinations. This can be expressed as
(2
5)
16 = 2
5 x 16 = 2
80.
(You can see the advantage of working with exponents when the numbers get huge like this.)
In the above case, if the character set is increased to 64 characters, which would necessarily involve using the shift key, there would be
(2
6)
16 = 2
6 x 16 = 2
96 = 79,228,162,514,264,300,000,000,000,000 combinations.
That's 65,536 times as many combinations and an impressive increase in security, to be sure, but look what happens if you keep the set of 32 characters and just tack on four more characters for a total of 20. In that case you get
(2
5)
20 = 2
5 x 20 = 2
100 = 1,267,650,600,228,230,000,000,000,000,000 combinations.
That's 16 times as many combinations from adding four more characters as what you'd get from increasing from a 32 character set to a 64 character set.
And that's why increasing password length is more effective than using a larger character set.