17 lines
390 B
C#
17 lines
390 B
C#
namespace DigitalData.Core.Abstractions.Security
|
|
{
|
|
public interface IRSADecryptor : IRSACryptographer
|
|
{
|
|
(string Value, Version Version) VersionedPassword { init; }
|
|
|
|
Version? PasswordVersion { get; }
|
|
|
|
bool HasEncryptedPem { get; }
|
|
|
|
IRSAEncryptor Encryptor { get; }
|
|
|
|
byte[] Decrypt(byte[] data);
|
|
|
|
string Decrypt(string data);
|
|
}
|
|
} |