import SCRYPT from 'node-user-accounts-boilerplate/node-user-accounts-boilerplate-nahid/crypt/SCRYPT.js'
Constructor Summary
Public Constructor | ||
public |
constructor(options: Object) |
Member Summary
Public Members | ||
public |
params: * |
Method Summary
Public Methods | ||
public |
async hashImplementation(password: *): * |
|
public |
async verifyImplementation(password: *, hash: *): * |
Inherited Summary
From class Crypt | ||
public |
Hash a password. |
|
public abstract |
async hashImplementation(password_: string): string Implementation of hash() minus checks. |
|
public |
Verify a password against previously hashed password |
|
public |
async verifyImplementation(password: String, hash: String): boolean Implementation of verify() minus checks. |
Public Constructors
Public Members
public params: * source
Public Methods
public async hashImplementation(password: *): * source
Implementation of hash() minus checks.
Override:
Crypt#hashImplementationParams:
Name | Type | Attribute | Description |
password | * |
Return:
* |
public async verifyImplementation(password: *, hash: *): * source
Implementation of verify() minus checks.
Default implementation hashes new password and does string compare. This'll work for weaker hashes like md5 but won't work for stronger ones like scrypt.
Override:
Crypt#verifyImplementationParams:
Name | Type | Attribute | Description |
password | * | ||
hash | * |
Return:
* |