diff --git a/DigitalData.Core.Security/AsymCryptService.cs b/DigitalData.Core.Security/AsymCryptService.cs index 3059fce..cf6f008 100644 --- a/DigitalData.Core.Security/AsymCryptService.cs +++ b/DigitalData.Core.Security/AsymCryptService.cs @@ -12,16 +12,9 @@ namespace DigitalData.Core.Security public IEnumerable Encryptors => _params.Encryptors; - private readonly Dictionary _decryptors; - - public IRSADecryptor this[string key] { get => _decryptors[key]; set => _decryptors[key] = value; } - public AsymCryptService(IOptions options, ILogger>? logger = null) : base(options) { - _decryptors = new(); logger?.LogInformation("Core.Secrets version: {Version}, Created on: {CreationDate}.", Secrets.Version, Secrets.CreationDate.ToString("dd.MM.yyyy")); } - - public bool TryGetRSADecryptor(string key, out IRSADecryptor? decryptor) => _decryptors.TryGetValue(key, out decryptor); } } \ No newline at end of file