Skip to content

mysql_hash_argon2

imshooter edited this page Nov 29, 2026 · 1 revision

Hash a password with Argon2id on a thread of the plugin, and call a public with the hash.

The public takes its values first, then const hash[], as public OnPasswordHashed(playerid, const hash[]). An array of MYSQL_HASH_LENGTH cells holds it. The costs come from mysql_argon2_costs.

native bool:mysql_hash_argon2(
    const password[],
    const callback[],
    const format[] = "",
    {Float, _}:...
);

With open.mp names, from the same include:

native bool:MySQL_HashArgon2(
    const password[],
    const callback[],
    const format[] = "",
    {Float, _}:...
);

Parameters

Parameter Description
const password[] The password.
const callback[] Public to call.
const format[] = "" Letters of the values the public receives.
{Float, _}:... The values.

Returns

  • true when the work started.
  • false when the callback is not a public of the script, or the format does not match the values.

Home

Guides

Reference

Functions

Connections
Queries
Cache
JSON cells
ORM
Queries built in pieces
Prepared statements
Batches
Transactions
Passwords
Callbacks

Clone this wiki locally