https://project.mdnd-it.cc/work_packages/94
This commit is contained in:
2025-08-23 04:25:28 +02:00
parent 725516ad6c
commit 19cfa031d0
25823 changed files with 1095587 additions and 2801760 deletions
@@ -0,0 +1,26 @@
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