sadra-password-hashing

1.0.0 • Public • Published

password-hashing

A simple package to hash and verify passwords

Functions

validatePassword(inputPassword, salt, storedHash)boolean

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

hashPassword(password)HashAndSalt

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

Typedefs

HashAndSalt : Object

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

Readme

Keywords

none

Package Sidebar

Install

npm i sadra-password-hashing

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

1.03 MB

Total Files

40

Last publish

Collaborators

  • sadra.taban