Click or drag to resize

VGSecurityManagerGeneratePassword Method

Generates a random password of the specified length.

Namespace:  Novalys.VisualGuard.Security
Assembly:  Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 2019.1.831.19 (2019.1.0831.19)
Syntax
public static string GeneratePassword(
	int length,
	int numberOfNonAlphanumericCharacters
)

Parameters

length
Type: SystemInt32
The number of characters in the generated password. The length must be between 1 and 64 characters.
numberOfNonAlphanumericCharacters
Type: SystemInt32
The number of punctuation characters in the generated password.

Return Value

Type: String
A random password of the specified length.
Exceptions
ExceptionCondition
ArgumentExceptionlength is less than 1 or greater than 64.

- or -

numberOfNonAlphanumericCharacters is less than zero or greater than length

See Also