import bcrypt from "bcrypt"; import { uuidv7 } from "uuidv7"; import type { ICryptoService } from "@/shared/application/ports/ICryptoService.js"; export class BcryptService implements ICryptoService { hashPassword(password: string): Promise { return bcrypt.hash(password, 10); } comparePassword(password: string, hash: string): Promise { return bcrypt.compare(password, hash); } randomId(): string { return uuidv7(); } }