Return password strength

This function measures the strength of a password.

Authorizations:
query Parameters
password
required
string

The password.

Example: password=12345luggage

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  get_password_strength \
  password='12345luggage'

Response samples

Content type
application/json
{
  • "data": {
    • "strength": 21
    },
  • "metadata": {
    • "command": "get_password_strength",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}