|
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.SecurityAssembly: GSF.Security (in GSF.Security.dll) Version: 2.4.205-beta
Syntax public static string GeneratePassword(
int length
)
Public Shared Function GeneratePassword (
length As Integer
) As String
public:
static String^ GeneratePassword(
int length
)
static member GeneratePassword :
length : int -> string
GSF.Security.SecurityProviderUtility.GeneratePassword = function(length);
View SourceParameters
- length Int32
- Length of the password to generate.
Return Value
StringRandomly generated password of the specified
length.
Exceptions Exception | Condition |
---|
ArgumentException | A value of less than 8 is specified for the length. |
See Also