4AspNet Parole v1.1 Documentation

Parole.generatePassword Method (Int32, Int32, Int32)

Returns the password ("pronounceable" word + with CharactersPair*2 length char ID).

public string generatePassword(
   int minimumLength,
   int maximumLength,
   int CharactersPair
);

Parameters

minimumLength
Minimum password length
maximumLength
Maximum password length
CharactersPair
Count of characters pair you want to add to password

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