❔ WebAPI .NET 7.0 - Encrypt connectionstring in appsettings.json
guys, I'm writing some WebAPI using .NET 7.0, and I'd like to secure the connectionstring with encryption, I found a guide that suggest to do it by using
C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe
is it a good way or is something old?
currently the connectionstring is placed into appsettings.json
(not into web.config
) and this is its content:
P
Pobiega•415d ago
The correct way is to use
user-secrets
on development, and to use a keyvault or environment variables in production
You should not have connectionstrings checked into your source controlA
Accord•414d ago
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
52KMembers
View on DiscordWant results from more Discord servers?
More Posts❔ how to read strings correctly with System.Data.SQLitei m trying read turkish characters from database but i can't see correctly❔ Blazor server app, base url / base page to set environmentHi 🙂
I have a Blazor Server app, where I would like to use some dynamic baseurl.
Say instead of my❔ C# Console Application -its only writing the same random string, how can i make it do different ones?❔ Rapid prototypingDo you feel there is such a thing as rapid prototyping or mvp development where you do things differ❔ HotChocolate with IQueryable, apply a required filter on the ef entityBasically, I'm trying to find a way to configure an `IObjectFieldDescriptor` by adding a required ar❔ Dev/prod databseHello,
Me and a friend wants to create a webb-app project with a react frontend and C# backend.
❔ Book recommendation to learn c#/dotnetI've been programming in python for a little under two years. I am starting a new job in c#.
Whats a❔ Use `this` inside method decoratorTried to follow https://stackoverflow.com/a/2966758
```cs
[AttributeUsage(AttributeTargets.Metho