public bool ConsecutiveCharacters { get { return this.hasConsecutive; } set { this.hasConsecutive = value;} }
public bool ExcludeSymbols { get { return this.hasSymbols; } set { this.hasSymbols = value;} }
public string Exclusions { get { return this.exclusionSet; } set { this.exclusionSet = value; } }
public int Maximum { get { return this.maxSize; } set { this.maxSize = value; if ( this.minSize >= this.maxSize ) { this.maxSize = PasswordGenerator.DefaultMaximum; } } }
public int Minimum { get { return this.minSize; } set { this.minSize = value; if ( PasswordGenerator.DefaultMinimum > this.minSize ) { this.minSize = PasswordGenerator.DefaultMinimum; } } }
public bool RepeatCharacters { get { return this.hasRepeating; } set { this.hasRepeating = value;} }
private const int DefaultMaximum = 10; private const int DefaultMinimum = 6; private const int UBoundDigit = 61; private string exclusionSet; private bool hasConsecutive; private bool hasRepeating; private bool hasSymbols; private int maxSize; private int minSize; private char[] pwdCharArray = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567 89`~!@#$^*()-_=+[]{}\\|;:'\",./".ToCharArray(); private RNGCryptoServiceProvider rng; } }