Skip to main content

get_hashers

Instantiates and returns a list of password hasher instances defined in the project settings, ensuring each specifies a valid algorithm name.

def get_hashers() - > list

Instantiates and returns a list of password hasher instances defined in the project settings. This function caches the results to avoid repeated imports and validation of the hasher classes.

Returns

TypeDescription
listA list of initialized password hasher objects, each providing a unique 'algorithm' attribute for password verification and hashing.