1.0.0 • Published 2 years ago

sadra-password-hashing v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

password-hashing

A simple package to hash and verify passwords

Functions

Typedefs

validatePassword(inputPassword, salt, storedHash) ⇒ boolean

Given an input password a salt and hash Does the given password match with the hash?

Kind: global function

ParamType
inputPasswordstring
saltsting
storedHashstring

hashPassword(password) ⇒ HashAndSalt

Given a passwor, hash it with a salt, then return the hash and the salt

Kind: global function

ParamType
passwordstring

HashAndSalt : Object

Kind: global typedef
Properties

NameTypeDescription
hashstringThe hash we got
saltstringThe salt used for hashing