Files
mmorales.photo/back/services/engine/Crypto/ICryptoService.cs
2025-08-28 16:01:55 +02:00

16 lines
554 B
C#

using DependencyInjector.Abstractions.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);
}