bcrypt

Hash and verify user passwords with BCrypt in ColdBox and BoxLang applications.

1|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ColdBox/skills --skill bcrypt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bcrypt
Source: https://github.com/ColdBox/skills/tree/main/modules/bcrypt
Command: npx skills add https://github.com/ColdBox/skills --skill bcrypt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Protects user accounts by converting plaintext or legacy-stored passwords into secure BCrypt hashes and verifying credentials during authentication to prevent credential theft and user enumeration.

Core Features & Use Cases

  • Installation and configuration guidance including sensible work-factor defaults and tuning for production.
  • Dependency injection and mixin helpers for handlers, interceptors, views, and services to hash, verify, and generate salts.
  • End-to-end patterns for user registration, authentication, password change, and token-based password resets.
  • Best practices for avoiding plaintext storage, preventing user enumeration, upgrading legacy hashes, and rate-limiting login attempts.

Quick Start

Hash and store a new user's password with the bcrypt helper before saving the user record.

Frequently Asked Questions about bcrypt

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I hash and verify user passwords with bcrypt in a ColdBox application?

To hash and verify user passwords with bcrypt in a ColdBox application, use the provided dependency injection helpers to hash plaintext passwords during registration and verify credentials with constant-time comparison during authentication.

What is the best way to migrate legacy password hashes to bcrypt?

The best way to migrate legacy password hashes to bcrypt is to upgrade them during user login by verifying the legacy hash and immediately rehashing the plaintext password with bcrypt before storing it.

How does bcrypt work factor tuning affect password hashing performance?

Bcrypt work factor tuning affects password hashing performance by increasing the computational cost needed to generate each hash, which slows down brute-force attacks but requires careful configuration for production environments.

Can I implement token-based password reset workflows using bcrypt in BoxLang?

Yes, you can implement token-based password reset workflows in BoxLang by using the bcrypt helper to securely hash new passwords after validating the reset token during the password change process.

How do I prevent user enumeration during authentication when using bcrypt?

To prevent user enumeration during authentication with bcrypt, apply constant-time verification techniques and ensure your login handlers return generic error messages regardless of whether the username or password was the invalid credential.