refactor(RSADecryptor): Umbenennung der Eigenschaft Encrypt in IsEncrypted
This commit is contained in:
@@ -6,7 +6,7 @@ namespace DigitalData.Core.Security.Cryptographer
|
||||
{
|
||||
public class RSADecryptor : RSACryptographer, IRSADecryptor, IRSACryptographer
|
||||
{
|
||||
public bool Encrypt { get; init; }
|
||||
public bool IsEncrypted { get; init; }
|
||||
|
||||
private readonly Lazy<IRSAEncryptor> _lazyEncryptor;
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace DigitalData.Core.Security.Cryptographer
|
||||
public override void Init()
|
||||
{
|
||||
base.Init();
|
||||
if (Encrypt)
|
||||
if (IsEncrypted)
|
||||
RSA.ImportFromEncryptedPem(Pem, Secrets.PBE_PASSWORD.AsSpan());
|
||||
else
|
||||
RSA.ImportFromPem(Pem);
|
||||
|
||||
Reference in New Issue
Block a user