Generate a pronouncable password

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

The generation of a pronouncable password is similar to the generation of a random password. The only difference is, that you need to create an instance of the PronouncablePasswordGenerator class instead of the RandomPasswordGenerator class. Again the character groups which are to be used for the generation of the password are passed to the constructor. The character group "Numbers" can't be used with the PronouncablePasswordGenerator class.

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

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