Skip to content

mysql_verify_password

imshooter edited this page Nov 29, 2026 · 1 revision

Verify a password against an Argon2 or bcrypt hash on a thread of the plugin, and call a public with whether they match.

The public takes its values first, then bool:match. A hash that cannot be read never matches, and the reason is logged.

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

With open.mp names, from the same include:

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

Parameters

Parameter Description
const password[] The password.
const hash[] The hash, from this plugin or any other Argon2 or bcrypt library.
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