Generate a pronouncable password with special characters

  • Homepage
  • Software
  • Thoughts and Ideas
  • Photos and Art
  • Contact

The Password Generator Library supports the generation of pronouncable passwords with special characters. That means, that it outputs for example instead of an "a" an "@" or instead of an "i" a "|".

To do this, you need to pass additionally to PasswordOptions.UppercaseCharacters or PasswordOptions.LowercaseCharacters the password option PasswordOptions.OtherCharacters to the constructor of the PronouncablePasswordGenerator class. You can also simply pass PasswordOptions.AllCharacters to the constructor.

using CAM.PasswordGeneratorLibrary;
...
PasswordGenerator pwdGen = 
  new PronouncablePasswordGenerator(PasswordOptions.UppercaseCharacters | 
    PasswordOptions.LowercaseCharacters | 
    PasswordOptions.OtherCharacters);

Console.WriteLine(pwdGen.Generate(8));

Or:

using CAM.PasswordGeneratorLibrary;
...
PasswordGenerator pwdGen = 
  new PronouncablePasswordGenerator(PasswordOptions.AllCharacters);

Console.WriteLine(pwdGen.Generate(8));
© Christoph A. Müller - Contact/Imprint - Privacy