17 lines
452 B
C#
17 lines
452 B
C#
using Microsoft.IdentityModel.Tokens;
|
|
|
|
namespace DigitalData.Core.Abstractions.Security
|
|
{
|
|
public interface IRSADecryptor : IRSACryptographer
|
|
{
|
|
public bool IsEncrypted { get; init; }
|
|
|
|
IRSAEncryptor Encryptor { get; }
|
|
|
|
byte[] Decrypt(byte[] data);
|
|
|
|
string Decrypt(string data);
|
|
|
|
SigningCredentials CreateSigningCredentials(string algorithm = SecurityAlgorithms.RsaSha256, string? digest = null);
|
|
}
|
|
} |