C# Class Upac.Core.Security.RandomPassword

This class can generate random passwords, which do not include ambiguous characters, such as I, l, and 1. The generated password will be made of 7-bit ASCII symbols. Every four characters will include one lower case character, one upper case character, one number, and one special symbol (such as '%') in a random order. The password will always start with an alpha-numeric character; it will not start with a special symbol (we do this because some back-end systems do not like certain special characters in the first position).
Datei anzeigen Open project: 1508/upac-for-umbraco

Public Methods

Method Description
Generate ( ) : string

Generates a random password.

The length of the generated password will be determined at random. It will be no shorter than the minimum default and no longer than maximum default.

Generate ( int length ) : string

Generates a random password of the exact length.

Generate ( int minLength, int maxLength ) : string

Generates a random password.

The length of the generated password will be determined at random and it will fall with the range determined by the function parameters.

Method Details

Generate() public static method

Generates a random password.
The length of the generated password will be determined at random. It will be no shorter than the minimum default and no longer than maximum default.
public static Generate ( ) : string
return string

Generate() public static method

Generates a random password of the exact length.
public static Generate ( int length ) : string
length int /// Exact password length. ///
return string

Generate() public static method

Generates a random password.
The length of the generated password will be determined at random and it will fall with the range determined by the function parameters.
public static Generate ( int minLength, int maxLength ) : string
minLength int /// Minimum password length. ///
maxLength int /// Maximum password length. ///
return string