Miscellaneous
bcryptNeedsRehash()
Signature
Section titled “Signature”bcryptNeedsRehash() — returns boolean
Available in: controller, model, mapper, migrator, migration, tabledefinition
Description
Section titled “Description”Whether an existing bcrypt hash should be re-hashed because its cost factor differs from the target, or because it is malformed. Self-contained (regex cost parse) so it can ship on EVERY engine — including RustCFML, which provides bcryptHash/bcryptVerify as native builtins and therefore skips the main security.cfm include.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
hash | string | yes | — | |
cost | numeric | no | 10 |