Skip to content

mysql_bcrypt_cost

imshooter edited this page Dec 1, 2026 · 2 revisions

Set the cost of the bcrypt hashes started after it.

native bool:mysql_bcrypt_cost(cost = MYSQL_BCRYPT_COST);

With open.mp names, from the same include:

native bool:MySQL_SetBcryptCost(cost = MYSQL_BCRYPT_COST);

Parameters

Parameter Description
cost = MYSQL_BCRYPT_COST Cost, from 4 to 20, each step doubling the time.

Returns

  • true when it was set.
  • false when it is out of range.

Home

Guides

Reference

Functions

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

Clone this wiki locally