All-Star
53751 Points
24069 Posts
Aug 31, 2020 04:37 PM|mgebhard|LINK
ASP.NET Core comes with everything needed to secure configuration. This is a all covered in the official docs.
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-3.1
There is no good reason to encrypt appsetting.json sections but there is nothing stopping you either. It's fairly straight forward to encrypt and decrypt strings in C#. for the most part you can use sample code found in the reference documentation,
https://docs.microsoft.com/en-us/dotnet/standard/security/encrypting-data.
All-Star
53751 Points
24069 Posts
Re: Encrypt sections of the appsettings.json inside my Asp.Net Core MVC web apllication
Aug 31, 2020 04:37 PM|mgebhard|LINK
ASP.NET Core comes with everything needed to secure configuration. This is a all covered in the official docs.
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-3.1
There is no good reason to encrypt appsetting.json sections but there is nothing stopping you either. It's fairly straight forward to encrypt and decrypt strings in C#. for the most part you can use sample code found in the reference documentation,
https://docs.microsoft.com/en-us/dotnet/standard/security/encrypting-data.