prjseal / PasswordGenerator

A library which generates random passwords with different settings to meet the OWASP requirements
MIT License
178 stars 43 forks source link

Error while generating the password with special characters #10

Closed Sigmanor closed 4 years ago

Sigmanor commented 4 years ago

When I try to generate password with some special characters, I got an error Try again.

Sample code (taken from here):

var pwd = new Password().IncludeLowercase().IncludeUppercase().IncludeNumeric().IncludeSpecial("[]{}^_=");
var password = pwd.Next();
Console.WriteLine("Password: " + password);

Link to dotnetfiddle for test - https://dotnetfiddle.net/NwyQDT

prjseal commented 4 years ago

Thanks for raising this. I have just spent the last 40 minutes fixing the issue after you raised it. I should have a release ready in the morning

prjseal commented 4 years ago

I've just pushed v2.0.3 now to nuget, give it 15 minutes to publish

Sigmanor commented 4 years ago

Yes, thank you.