Properties
Static rounds
rounds: number = 12
Methods
Static compare
- compare(password: string, hash: string): Promise<boolean>
-
Parameters
-
password: string
-
hash: string
Returns Promise<boolean>
Static hash
- hash(password: string): Promise<string>
-
Parameters
Returns Promise<string>