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

@@ -4,7 +4,9 @@ using System.Security.Cryptography;
namespace DigitalData.Core.Security
{
public class RSACryptographer : IRSACryptographer
{
{
public required string Pem { get; init; }
public required RSAEncryptionPadding Padding { get; init; }
protected readonly RSA _rsa = RSA.Create();