UNPKG
password-hash-salt
Version:
latest (1.1.8)
1.1.8
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.0.12
1.0.11
1.0.10
1.0.9
1.0.7
1.0.4
1.0.3
1.0.1
1.0.0
Simple, safe and straight-forward password hashing / salting for node.js
password-hash-salt
/
dist
/
index.d.ts
9 lines
(8 loc)
•
291 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
export
interface
IHashOptions
{
saltlen
?:
number
;
iterations
:
number
;
keylen
:
number
;
digest
:
string
; }
export
declare
function
hash
(
password
:
string
,
options
?:
IHashOptions
):
Promise
<
string
>;
export
declare
function
verify
(
password
:
string
,
hash
:
string
):
Promise
<
boolean
>;