Refactor(Core.Security): Getrennte Pem-Eigenschaften für öffentliche und private Schlüssel wurden entfernt.

- Pem-Eigenschaft in der Hauptklasse RSACryptographer erstellt
This commit is contained in:
Developer 02
2024-11-18 14:39:18 +01:00
parent 6ff0d0a876
commit eccf2b32ce
6 changed files with 11 additions and 14 deletions

View File

@@ -3,7 +3,9 @@
namespace DigitalData.Core.Abstractions.Security
{
public interface IRSACryptographer
{
{
public string Pem { get; init; }
public RSAEncryptionPadding Padding { get; init; }
}
}

View File

@@ -2,8 +2,6 @@
{
public interface IRSADecryptor : IRSACryptographer
{
public string PrivateKeyPem { get; init; }
public string? Password { get; init; }
public IRSAEncryptor Encryptor { get; }

View File

@@ -2,8 +2,6 @@
{
public interface IRSAEncryptor : IRSACryptographer
{
public string PublicKeyPem { get; init; }
public byte[] Encrypt(byte[] data);
public string Encrypt(string data);