C# 클래스 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).
파일 보기 프로젝트 열기: 1508/upac-for-umbraco

공개 메소드들

메소드 설명
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.

메소드 상세

Generate() 공개 정적인 메소드

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
리턴 string

Generate() 공개 정적인 메소드

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

Generate() 공개 정적인 메소드

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. ///
리턴 string