1.0.0 • Published 3 years ago
sadra-password-hashing v1.0.0
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
| Param | Type |
|---|---|
| inputPassword | string |
| salt | sting |
| storedHash | string |
hashPassword(password) ⇒ HashAndSalt
Given a passwor, hash it with a salt, then return the hash and the salt
Kind: global function
| Param | Type |
|---|---|
| password | string |
HashAndSalt : Object
Kind: global typedef
Properties
| Name | Type | Description |
|---|---|---|
| hash | string | The hash we got |
| salt | string | The salt used for hashing |
1.0.0
3 years ago