using Microsoft.AspNetCore.Identity; namespace WhatApi.Extras; public class VendorPasswordHasher : PasswordHasher; public static class PasswordHasher { private static readonly VendorPasswordHasher _ = new(); private static readonly User User = new() { Name = "", Email = "", PasswordHash = "" }; public static string HashPassword(string password) { return _.HashPassword(User, password); } public static PasswordVerificationResult VerifyHashedPassword(string hashedPassword, string providedPassword) { return _.VerifyHashedPassword(User, hashedPassword, providedPassword); } }