4AspNet Parole v1.1 Documentation

Parole.generatePassword Method

Returns the pronounceable password (3-11 chars length).

Overload List

Returns the pronounceable password (3-11 chars length).

public string generatePassword();

Returns the pronounceable password with customizable length.

public string generatePassword(int,int);

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

public string generatePassword(int,int,int);

Remarks

minimumLength and maximumLength can be from 3 till 11

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(3, 11, 2));
Console.WriteLine("Press Enter to exit...");
Console.ReadLine();

See Also

Parole Class | ForAspNet.Parole Namespace | String