4AspNet Parole v1.1 Documentation

Parole Class

Class Parole Provides methods for Pronounceable Passwords generation, password encryption/decryption functionality.

For a list of all members of this type, see Parole Members.

System.Object
   Parole

public class Parole

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

The Parole is a central class of the product. It is provides methods for Pronounceable Passwords generation, password encryption/decryption functionality.

Note   Before using of Parole object make sure what LicenseKey property of License class is set to correct license key string; otherwise the exception of type License.LicenseException will be thrown during initializing of a new instance of POP3 object.

Example

This sample shows how to use the ForAspNet.Parole

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));
string encrypedPassword = objParole.encryptPassword("password");
Console.WriteLine("Encryped Password: " + encrypedPassword);
Console.WriteLine("Decryped Password: " + objParole.decryptPassword(encrypedPassword));
Console.WriteLine("Press Enter to exit...");
Console.ReadLine();

Requirements

Namespace: ForAspNet.Parole

Assembly: 4AspNet.Parole (in 4AspNet.Parole.dll)

See Also

Parole Members | ForAspNet.Parole Namespace