C# Class GSF.Security.Cryptography.PasswordGenerator

Generates random passwords.
Exibir arquivo Open project: GridProtectionAlliance/gsf

Public Methods

Method Description
GeneratePassword ( ) : string

Generates a random password with 8 characters or MinLength if it is greater than 8 characters.

GeneratePassword ( int length ) : string

Generates a password with the given length.

GeneratePassword ( int minLength, int maxLength ) : string

Generates a password with length between the given minLength and maxLength.

PasswordGenerator ( ) : System

Creates a new instance of the PasswordGenerator class.

PasswordGenerator ( IEnumerable characterGroups ) : System

Creates a new instance of the PasswordGenerator class.

Method Details

GeneratePassword() public method

Generates a random password with 8 characters or MinLength if it is greater than 8 characters.
public GeneratePassword ( ) : string
return string

GeneratePassword() public method

Generates a password with the given length.
public GeneratePassword ( int length ) : string
length int The length of the password to be generated.
return string

GeneratePassword() public method

Generates a password with length between the given minLength and maxLength.
public GeneratePassword ( int minLength, int maxLength ) : string
minLength int The minimum length of the generated password.
maxLength int The maximum length of the generated password.
return string

PasswordGenerator() public method

Creates a new instance of the PasswordGenerator class.
public PasswordGenerator ( ) : System
return System

PasswordGenerator() public method

Creates a new instance of the PasswordGenerator class.
public PasswordGenerator ( IEnumerable characterGroups ) : System
characterGroups IEnumerable The list of character groups used to generate passwords.
return System