bcrypt
Installation
SKILL.md
Bcrypt
Bcrypt is a password-hashing function designed to be slow, protecting against brute-force attacks. It incorporates a salt to protect against rainbow table attacks.
When to Use
- User Passwords: Storing passwords in a database. NEVER store them in plain text.
- API Keys: Hashing API keys before storage (if you only show them once).
Quick Start (Node.js)
import bcrypt from "bcrypt";
const saltRounds = 10;
const myPlaintextPassword = "s0m3password";