CodeLiturgy.Dashboard/BlueWest.Api/Users/Crypto/IHasher.cs

12 lines
407 B
C#
Raw Normal View History

2022-09-10 00:33:17 +03:00
using BlueWest.Data;
using BlueWest.WebApi.Context.Users;
using Microsoft.AspNetCore.Identity;
namespace BlueWest.Cryptography;
public interface IHasher : IPasswordHasher<ApplicationUser>
{
string CreateHash(string text, BaseCryptoItem.HashAlgorithm algorithm);
string CreateHash(string text, string salt, BaseCryptoItem.HashAlgorithm algorithm);
bool MatchesHash(string text, string hash);
}