Password Helper
MeNeedz password helper supports the following features:
- Checking strength of a password
- Generating secure passwords
Examples
Checking the strength of a password is very easy. Here is a basic example:
Controller
Generating a secure password is equally easy. Here is a basic example:
Controller
check_strength()
Lets you check the strength of a password.
echo check_strength($password);
Returns the rating of the given password as an integer or string depending on the the second parameter. If the second parameter is 1 (that's the default), then the rating is returned as an integer else it's returned as a string.
generate_secure_password()
Lets you generate a secure password.
echo generate_secure_password();
Returns a string containing the new password.