Click or drag to resize

SecurityProviderUtilityGeneratePassword Method

Generates a random password of the specified length with at least one uppercase letter, one lowercase letter, one special character and one digit.

Namespace: GSF.Security
Assembly: GSF.Security (in GSF.Security.dll) Version: 2.4.205-beta
Syntax
public static string GeneratePassword(
	int length
)
View Source

Parameters

length  Int32
Length of the password to generate.

Return Value

String
Randomly generated password of the specified length.
Exceptions
ExceptionCondition
ArgumentExceptionA value of less than 8 is specified for the length.
See Also