acheck_password
See check_password().
def acheck_password(
password: string,
encoded: string,
setter: callable = None,
preferred: string = "default"
) - > boolean
See check_password().
Parameters
| Name | Type | Description |
|---|---|---|
| password | string | The raw password string to be verified against the hash. |
| encoded | string | The hashed password string used for comparison. |
| setter | callable = None | An optional asynchronous callback function used to update the password hash if the current algorithm is outdated. |
| preferred | string = "default" | The preferred hashing algorithm to determine if the password hash requires an update. |
Returns
| Type | Description |
|---|---|
boolean | True if the password matches the encoded hash, False otherwise. |