transactions
This commit is contained in:
16
back/services/engine/Crypto/ICryptoService.cs
Normal file
16
back/services/engine/Crypto/ICryptoService.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using DependencyInjector.Lifetimes;
|
||||
|
||||
namespace back.services.engine.Crypto;
|
||||
|
||||
public interface ICryptoService : ISingleton
|
||||
{
|
||||
string? Encrypt(string clientId, string plainText);
|
||||
string? Decrypt(string clientId, string encryptedText);
|
||||
string? Hash(string plainText);
|
||||
string? HashPassword(string? plainPassword, string? plainSalt);
|
||||
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