Brian posted this question in the comments for my blog post A Password Method that Creates Strong Passwords and Requires Little Memorization (RSM).[1] I think this question is worth reposting. It's well thought out.
Brian:
Have you (or someone else) done any work to determine the ideal number of substitutions to make for each password? In the examples you provide, you're replacing 13 characters, for example. Obviously the more you replace, the more closely your password resembles the substitution key; fewer replacements results in a password more closely resembling the original phrase string.
Just curious....
Daniel:
Brian,
Thanks for the comment! It's very gratifying that someone has studied my method so carefully. Sorry for the delay, I've been really busy.
Short Answer.
For each login, look at that site's password length guidelines. In the Capital One example,[2] the length is 8-15 characters. Use the smaller number as the number of Random Substitutions. The phrase string should be as long as the bigger number in the password guidelines.
Why
The individual site will have calculated the minimum password length based on the characters they allow, the brute force protections they have in place, and other security data.[3]
By using Random Substitutions equal to the smaller number, the user is assured their password is strong.
By not using more Random Substitutions than the smaller number, the user achieves the maximum difficulty needed to guess the password from the Random Substitutions if they are ever lost. This would be the optimum configuration.
By not using more Random Substitutions than the smaller number, the user achieves the maximum difficulty needed to guess the password from the Random Substitutions if they are ever lost. This would be the optimum configuration.
Long Answer.
I made RSM to solve problems with other password creation methods. I focused on three problems: 1. writing down passwords in plain text;[4] 2. adding a site specific prefix or suffix to make the same password different for multiple logins;[5] and 3. no help in memorizing the placement of Capitals, Numbers, and Symbols.[6]
Problem 1. and 3. are solved by the use of a substitution key that can be written down without disclosing the phrase string.
Problem 2. is somewhat more complicated. A site specific prefix or suffix is to enable the use of only one strong password for all sites. The reason is memory strain. However, that admits users are not going to choose random characters for a site specific prefix or suffix. Instead, for a Gmail login, they would use some obvious variant of Gmail, etc.
A stolen password has to be converted into plain text before it poses any threat to the user. If the base password is strong and was securely hashed, the password is safe. If all sites securely hashed passwords, the same base password could safely be used for all sites without any site specific prefix or suffix. If instead a plaintext of the password is lost, a prefix or suffix based on the site should be easy to spot. In that case, a prefix or suffix would actually tell an attacker that there are more accounts out there where only the prefix or suffix needs to be brute forced. A simple matter since the prefix or suffix is based on the site.
RSM solves this problem using the substitution key. The substitution key effectively functions in the same way as a prefix or suffix in that it is unique to each site with one important difference: unlike a prefix or suffix, the substitution key is random.
I didn't include a minimum substitution rule since I wanted to make RSM as simple to understand as possible. People already know a strong password must include non lowercase characters, so given the chance to add these characters knowing they wouldn't have to remember them would cause them to instinctively add more characters than less. However, your point is valid.
You mention that in the examples, I replace 13 characters. That number was an accident. I tried to make the replacements purely random without reguard to the total number. Interesting.
Again, I appreciate your feedback. If you have any other questions, please let me know. All the best this holiday season.
By Daniel Lindstrom © 12/19/2010
[2] CapitalOne.com: “8-15 characters, not case sensitive: Aa-Zz, 0-9, (-), and (_) only; at least 1 letter and 1 number no spaces.” Password guidelines current as of 12/18/10.