diff --git a/DigitalData.Core.Abstractions/Security/IRSADecryptor.cs b/DigitalData.Core.Abstractions/Security/IRSADecryptor.cs index 48b87f9..2600394 100644 --- a/DigitalData.Core.Abstractions/Security/IRSADecryptor.cs +++ b/DigitalData.Core.Abstractions/Security/IRSADecryptor.cs @@ -2,7 +2,9 @@ { public interface IRSADecryptor : IRSACryptographer { - string? Password { get; init; } + string? Password { init; } + + Version? PasswordVersion { get; init; } bool HasEncryptedPem { get; } diff --git a/DigitalData.Core.Security/RSADecryptor.cs b/DigitalData.Core.Security/RSADecryptor.cs index b610b5d..244ef17 100644 --- a/DigitalData.Core.Security/RSADecryptor.cs +++ b/DigitalData.Core.Security/RSADecryptor.cs @@ -6,7 +6,9 @@ namespace DigitalData.Core.Security { public class RSADecryptor : RSACryptographer, IRSADecryptor, IRSACryptographer { - public string? Password { get; init; } + public string? Password { internal get; init; } + + public Version? PasswordVersion { get; init; } public bool HasEncryptedPem => Password is not null;