Hacker News new | past | comments | ask | show | jobs | submit login

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.



The 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.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: