I am new to .NET Core Web API. I was able to create a .NET Core Web API using the documentation provided and help from the people here. Documentation shows a way to access the database by putting a connection string in the appsettings.json
which includes the database credentials, even though I already add encrypt I was thinking that this might not be completely safe. Is there a way to access the connection string from my existing web.config
in the new appsettings.json
?
You may use ASP.NET Core Secret Manager tool for development environment and for production, you may use Azure vault.