sqlpage.hash_password(password)
Introduced in SQLPage 0.7.2.
Hashes a password using the Argon2 algorithm. The resulting hash can be stored in the database and then used with the authentication component.
Example
SELECT 'form' AS component;
SELECT 'username' AS name;
SELECT 'password' AS name, 'password' AS type;
INSERT INTO users (name, password_hash) VALUES (:username, sqlpage.hash_password(:password));
Try online
You can try the password hashing function on this page.
Parameters
password
The password to hash.
basic_auth_password
basic_auth_username
cookie
current_working_directory
environment_variable
exec
fetch
hash_password
header
link
path
persist_uploaded_file
protocol
random_string
read_file_as_data_url
read_file_as_text
request_method
run_sql
uploaded_file_mime_type
uploaded_file_name
uploaded_file_path
url_encode
variables
version