fronted: login
This commit is contained in:
13
back/services/Crypto/ICryptoService.cs
Normal file
13
back/services/Crypto/ICryptoService.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace back.services.Crypto;
|
||||
|
||||
public interface ICryptoService
|
||||
{
|
||||
string? Encrypt(string clientId, string plainText);
|
||||
string? Decrypt(string clientId, string encryptedText);
|
||||
string? Hash(string plainText);
|
||||
bool VerifyHash(string plainText, string hash);
|
||||
string Salt();
|
||||
string Pepper();
|
||||
string GetPublicCertificate(string clientId);
|
||||
string GetPrivateCertificate(string clientId);
|
||||
}
|
Reference in New Issue
Block a user