26 lines
1.0 KiB
TypeScript
26 lines
1.0 KiB
TypeScript
export declare class PasswordService {
|
|
private static readonly SALT_ROUNDS;
|
|
/**
|
|
* Hashes a plain text password using bcrypt
|
|
* @param password - The plain text password to hash
|
|
* @returns Promise<string> - The hashed password
|
|
*/
|
|
static hashPassword(password: string): Promise<string>;
|
|
/**
|
|
* Verifies a plain text password against a hashed password
|
|
* @param password - The plain text password to verify
|
|
* @param hashedPassword - The hashed password to compare against
|
|
* @returns Promise<boolean> - True if password matches, false otherwise
|
|
*/
|
|
static verifyPassword(password: string, hashedPassword: string): Promise<boolean>;
|
|
/**
|
|
* Validates password strength requirements
|
|
* @param password - The password to validate
|
|
* @returns object - Object containing isValid boolean and error messages
|
|
*/
|
|
static validatePasswordStrength(password: string): {
|
|
isValid: boolean;
|
|
errors: string[];
|
|
};
|
|
}
|
|
//# sourceMappingURL=PasswordService.d.ts.map
|