public virtual void EncryptSecret() { Secret.EncryptedText = _secretEncryptor.Encrypt(UnencryptedSecret, EncryptionKey); Secret.EncryptionType = EncryptorMapping.BackwardMapping[_secretEncryptor.GetType().AssemblyQualifiedName]; _logger.LogDebug($"Secret encrypted with {Secret.EncryptionType}"); }