Skip to main content

get_password_hash

Generates a secure hash of the provided password string using the password_hash utility.

def get_password_hash(
password: string
) - > string

Generates a secure cryptographic hash of a plain-text password for safe storage.

Parameters

NameTypeDescription
passwordstringThe plain-text password string to be hashed.

Returns

TypeDescription
stringThe hashed representation of the password, suitable for storage in a database.