feat(RSACryptographer): RSAEncryptionPadding nicht erforderlich gemacht und OaepSHA256 als Standard zugewiesen

This commit is contained in:
Developer 02 2024-11-18 17:32:14 +01:00
parent d1fea581d7
commit 4e615d7e39

View File

@ -7,7 +7,7 @@ namespace DigitalData.Core.Security
{
public required virtual string Pem { get; init; }
public required RSAEncryptionPadding Padding { get; init; }
public RSAEncryptionPadding Padding { get; init; } = RSAEncryptionPadding.OaepSHA256;
protected readonly RSA _rsa = RSA.Create();