Skip to content

mysql_hash_bcrypt

imshooter edited this page Nov 29, 2026 · 1 revision

Hash a password with bcrypt, as $2b$, on a thread of the plugin, and call a public with the hash.

The public takes its values first, then const hash[]. Only the first 72 bytes of the password count. The cost comes from mysql_bcrypt_cost.

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

With open.mp names, from the same include:

native bool:MySQL_HashBcrypt(
    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