PasswordGenerator - Generate Font Safe password

Oct 26, 2012 at 2:23 PM
Edited Oct 26, 2012 at 2:23 PM

Would it be possible to generate a password from safe letters?

For example, excluding 1 and l. 0 and O. etc. 

Right now I'm using UpperCase/Number and 0 and O are my concerns but other scenario could be possible where it will confuse a user retyping a password.

Oct 26, 2012 at 10:47 PM

I've added a new optional parameter to each of the Generate methods, where you can specify a string (or array of characters) to exclude from the list of allowed characters.

So, for example, in your scenario, you would now do this:

PasswordCharacters allowedCharacters =
    PasswordCharacters.UppercaseLetters |
string password = PasswordGenerator.Generate(
    10, allowedCharacters, "1l0O");

The latest code has been uploaded to NuGet as version 1.3.0.