4 ms·
Yeah this is annoying. Simply consider a^b, what makes that expression grow faster, increasing a, or increasing b? b is better mathematically and for mental ove
by shiado 8y ago
Yeah this is annoying. Simply consider a^b, what makes that expression grow faster, increasing a, or increasing b? b is better mathematically and for mental overhead.
- zawerf 8y agoThe mathematical part was not obvious to me, so: The derivative with respect to a is: b(a^(b-1)). The derivative with respect to b is: log(a)(a^b) or (a log(a))(a^(b-1)). So it's better to increase b when alog(a) > b. Which is typically the case where a is 26 for lowercased letters and b is like 10 for password length. This analysis might not be totally correct since the cost of adding one extra allowed character vs increasing password length by one is not the same but w/e.