Skip to main content

acheck_password

See check_password().

def acheck_password(
password: string,
encoded: string,
setter: callable = None,
preferred: string = "default"
) - > boolean

See check_password().

Parameters

NameTypeDescription
passwordstringThe raw password string to be verified against the hash.
encodedstringThe hashed password string used for comparison.
settercallable = NoneAn optional asynchronous callback function used to update the password hash if the current algorithm is outdated.
preferredstring = "default"The preferred hashing algorithm to determine if the password hash requires an update.

Returns

TypeDescription
booleanTrue if the password matches the encoded hash, False otherwise.