Skip to content

isayme/node-password

Repository files navigation

Password

Build Status Coverage Status

A password hash/verify service.

Supported Algorithm

  • argon2
  • pbkdf2
  • scrypt
  • bcrypt

APIs

Hash

POST /v1/hash
{
  password: 'your secret password',
  algorithm: 'any of supported' // default to pbkdf2
}

// response
{
  hashed: 'hashed password'
}

Verify

POST /v1/verify
{
  password: 'your secret password',
  hashed: 'hashed password to be verified'
}

// response
{
  match: true // true or false
}

Links