fix
This commit is contained in:
parent
3c3072aa43
commit
f8b851a46e
2
.eslintignore
Normal file
2
.eslintignore
Normal file
@ -0,0 +1,2 @@
|
||||
*.d.ts
|
||||
|
15
index.d.ts
vendored
Normal file
15
index.d.ts
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
/**
|
||||
* create an argon2 hash
|
||||
*
|
||||
* @param {string} plain plain text
|
||||
* @returns {Promise<string>} hash
|
||||
*/
|
||||
export function hash(plain: string): Promise<string>;
|
||||
/**
|
||||
* verify a plain text against an argon2 hash
|
||||
*
|
||||
* @param {string} hash_str hash
|
||||
* @param {string} plain plain text
|
||||
* @returns {Promise<boolean>} true if valid
|
||||
*/
|
||||
export function verify(hash_str: string, plain: string): Promise<boolean>;
|
Loading…
x
Reference in New Issue
Block a user