Files
Guardian/dist/esm/passwordcheck.d.ts
T
2024-02-12 19:06:52 +01:00

16 lines
471 B
TypeScript

export default class PassCheck {
private BcryptSaltRounds;
private PassPolicy;
constructor(BcryptSaltRounds: number, PassPolicyOptions: {
minLength: number;
maxLength: number;
minLower: number;
minUpper: number;
minNum: number;
minSpecial: number;
specialChars: string;
});
verifyPassword(password: string, hash: string): Promise<boolean>;
hashPassword(password: string): Promise<string>;
}