12 lines
407 B
C#
12 lines
407 B
C#
|
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);
|
||
|
}
|