title: .Net Core warning No XML encryptor configured
body: <p>When I start my service (API on .Net Core 2.2 in Docker container) I've got a warning:</p>
  
  <blockquote>
    <p>No XML encryptor configured. Key
    {daa53741-8295-4c9b-ae9c-e69b003f16fa} may be persisted to storage in
    unencrypted form.</p>
  </blockquote>
  
  <p>I didn't configure DataProtection. I've found solutions to configure DataProtection but I don't need to save this key. For me if the key will only be persisted until the application restarts - it's Ok. But I don't need to see this warning in logs</p>
  
  <p>Any ideas? How can we do it?</p>
  
  <p>My startup Class looks like there:</p>
  
  <pre><code>public class Startup {
    public Startup(IConfiguration configuration) {
      Configuration = configuration;
    }
  
    public IConfiguration Configuration { get; }
  
    public void ConfigureServices(IServiceCollection services) {
      services.AddMemoryCache();
      services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);
      services.AddApiVersioning(o =&gt; o.ApiVersionReader = new HeaderApiVersionReader("api-version"));
    }
  
    public void Configure(IApplicationBuilder app, IHostingEnvironment env, IApplicationLifetime lifetime) {
      if (env.IsDevelopment()) {
        app.UseDeveloperExceptionPage();
      }
  
      app.UseMvc();
  
      lifetime.ApplicationStarted.Register(OnApplicationStarted);
      lifetime.ApplicationStopping.Register(OnShutdown);
    }
  
    public void OnApplicationStarted() {
      Console.Out.WriteLine($"Open Api Started");
    }
  
    public void OnShutdown() {
      Console.Out.WriteLine($"Open Api is shutting down.");
    }
  }
  </code></pre>
  
  <p><em>Maybe it's help too</em> my packages in the project</p>
  
  <pre><code>&lt;ItemGroup&gt;
      &lt;PackageReference Include="BouncyCastle.NetCore" Version="1.8.5" /&gt;
      &lt;PackageReference Include="Microsoft.AspNetCore.App" /&gt;
      &lt;PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="3.1.2" /&gt;
      &lt;PackageReference Include="Microsoft.AspNetCore.Razor.Design" Version="2.2.0" PrivateAssets="All" /&gt;
      &lt;PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.5.4" /&gt;
      &lt;PackageReference Include="Oracle.ManagedDataAccess.Core" Version="2.18.6" /&gt;
  &lt;/ItemGroup&gt;
  </code></pre>