|
Home » ASP Home » Security Home » StrongPwd Object
A D V E R T I S E M E N T
Title |
StrongPwd Object |
Description |
The StrongPwd Object exposes properties and methods to create and test passwords to ensure that they meet or exceed strong password standards.
Create Method syntax: string = object.Create() description: Creates a strong password. The mechanism used to create passwords is pseudo-random so it is not entirely guaranteed that the password created will be strong. To guarantee a strong password, Call the CreateEx Method instead. arguments: None returns: string.
CreateEx Method syntax: string = object.CreateEx() description: CreateEx creates a password that is guaranteed to pass the requirements specified in the Check method. CreateEx ensures a strong password by calling Create over and over again and testing the returned password against the Check method. Once the Create method returns a strong password that passes all tests, that password is returned by CreateEx. arguments: None returns: string.
FailurePoint Property syntax: string = object.FailurePoint description: The FailurePoint property contains valid data if the Check method returns false. In other words, when you test a password using the Check method and the check method returns false, the FailurePoint property will tell you why the Check method considers the password not strong. returns: string. read-only.
Check Method syntax: boolean = object.Check(usrname, password) description: The Check method checks a password to ensure that is strong. It checks the following criteria: 1.) password must have at least 6 characters 2.) password must not contain the user name 3.) password must contain at least 3 character classes: - English Upper Case Letters - English Lower Case Letters - Westernized Arabic Numbers - Non-Alphanumeric (Special Characters) arguments: 1.) usrname. string. The user name that this password is being used with. 2.) password. string. The password to check. returns: boolean.
|
Category |
ASP » Security |
Hits |
385579 |
Code |
Select and Copy the Code
|
|
|
Related Source Codes
A D V E R T I S E M E N T
|
Subscribe to SourceCodesWorld - Techies Talk |
New! Click here to Add your Code!
ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home
Source Codes Home Page | |
|