Authentication

Password

Secure password hashing with scrypt.

1 min readDocumentationEdit this page

Hash#

typescript
import { hashPassword, verifyPassword } from '@AxilJS/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.

Help improve the documentation

AxilJS is open source and documentation improvements are welcome.

AxilJS DocumentationMIT License · Built by SyntaxilitY