refactor(RSADecryptor): statt der Verwendung einer separaten init-Methode zur Initialisierung von RSA, wurde Lazy Loading verwendet.

This commit is contained in:
Developer 02
2024-11-20 10:51:18 +01:00
parent 5010224500
commit cdb0009e7c
3 changed files with 24 additions and 28 deletions

View File

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