Revert "refactor(RSACryptographer): Entfernte nullbare Eigenschaft von Issuer und Audience."

This reverts commit 16565eca4d.
This commit is contained in:
Developer 02
2024-12-05 23:08:13 +01:00
parent 16565eca4d
commit 600d17ef40
3 changed files with 8 additions and 46 deletions

View File

@@ -5,7 +5,7 @@ namespace DigitalData.Core.Security.Cryptographer
{
public class RSAEncryptor : RSACryptographer, IRSAEncryptor, IRSACryptographer
{
public override string Pem
public override required string Pem
{
get => base.Pem;
init
@@ -14,7 +14,7 @@ namespace DigitalData.Core.Security.Cryptographer
base.Pem = value;
}
}
public byte[] Encrypt(byte[] data) => RSA.Encrypt(data, Padding);
public string Encrypt(string data) => RSA.Encrypt(data.Base64ToByte(), Padding).BytesToString();