Skip to content

Miscellaneous

bcryptNeedsRehash()

bcryptNeedsRehash() — returns boolean

Available in: controller, model, mapper, migrator, migration, tabledefinition

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.

NameTypeRequiredDefaultDescription
hashstringyes—
costnumericno10