Refactor(RSACryptographer): Entfernte Pem initter Methode.

- PrivateKeyPem initter Methode zu RSADecryptor hinzugefügt.
 - PublicKeyPem getter und initter Methoden zu RSAEncryptor hinzugefügt.
This commit is contained in:
Developer 02
2024-11-18 10:33:38 +01:00
parent 0804ea1418
commit 489ca67203
3 changed files with 16 additions and 15 deletions

View File

@@ -3,19 +3,11 @@
namespace DigitalData.Core.Security
{
public class RSACryptographer
{
internal RSACryptographer() { }
public required string Pem
{
init
{
_rsa.ImportFromPem(value);
}
}
{
public required RSAEncryptionPadding Padding { get; init; }
protected readonly RSA _rsa = RSA.Create();
internal RSACryptographer() { }
}
}