Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Latest commit

 

History

History
22 lines (17 loc) · 510 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 510 Bytes

passgen

A fully configurable .NET password generator and strength tester library. Supporting alphanumeric/special characters other options.

Sample usage

PasswordGenerator p = new PasswordGenerator();

p.length = 8;
p.azUpper = true;
p.azLower = false;
p.numbers = true;
p.special = false;
p.minAmmountOfNumbers = 1;
p.requireEveryCharType = true;
p.avoidAmbiguousChars = true;

string password = p.Password;

int i = PasswordStrengthTester.Test(password);
int passwordStrength = i > 100 ? 100 : i;