4AspNet Parole v1.1 Documentation

Parole.generatePassword Method (Int32, Int32)

Returns the pronounceable password with customizable length.

public string generatePassword(
   int minimumLength,
   int maximumLength
);

Parameters

minimumLength
Minimum password length
maximumLength
Maximum password length

Return Value

Example

This sample shows how to use the generatePassword method.

ForAspNet.Parole.License.LicenseKey = "<put license string here>";
Parole objParole = new Parole();
for(int i = 1; i< 10; i++)
    Console.WriteLine(objParole.generatePassword());
Console.WriteLine("Press Enter to exit...");
Console.ReadLine();

See Also

Parole Class | ForAspNet.Parole Namespace | Parole.generatePassword Overload List | String | String