Password
Secure password hashing with scrypt.
1 min readEdit this page
Hash
import { hashPassword, verifyPassword } from '@restjs/auth'
const hashed = await hashPassword('password123')
const valid = await verifyPassword('password123', hashed)Uses Node.js built-in scrypt — memory-hard, 32-byte salt, 64-byte key, constant-time comparison. No bcrypt needed.