C# Класс GSF.Security.Cryptography.PasswordGenerator

Generates random passwords.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

GeneratePassword() публичный Метод

Generates a random password with 8 characters or MinLength if it is greater than 8 characters.
public GeneratePassword ( ) : string
Результат string

GeneratePassword() публичный Метод

Generates a password with the given length.
public GeneratePassword ( int length ) : string
length int The length of the password to be generated.
Результат string

GeneratePassword() публичный Метод

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.
Результат string

PasswordGenerator() публичный Метод

Creates a new instance of the PasswordGenerator class.
public PasswordGenerator ( ) : System
Результат System

PasswordGenerator() публичный Метод

Creates a new instance of the PasswordGenerator class.
public PasswordGenerator ( IEnumerable characterGroups ) : System
characterGroups IEnumerable The list of character groups used to generate passwords.
Результат System