encrypt_pw_with_algorithm(algorithm,
password)

Valid values for algorithm are 'md5' and 'sha1' or 'custom'. If the
algorithm is 'custom', the config setting 'identity.custom_encryption'
needs to be set to a dotted-notation path to a callable that takes an
unencrypted password and gives back the password hash.

All other algorithms values will be essentially a no-op.

_encrypt_password(*args,
**kwargs)

Valid values for algorithm are 'md5' and 'sha1' or 'custom'. If the
algorithm is 'custom', the config setting 'identity.custom_encryption'
needs to be set to a dotted-notation path to a callable that takes an
unencrypted password and gives back the password hash.