Managing User Secrets
During development it is recommended to store connection strings, salts, or other secrets in a secure manner. It is best to avoid storing these secrets in the code or local configuration files.
In .NET Core, you will want to take advantage of the secrets manager. You can find more information here: https://docs.microsoft.com/en-us/aspnet/core/security/app-secrets?view=aspnetcore-3.1&tabs=windows
In Visual Studio 2019, you can access these via right-click on your project and select Manage User Secrets.
In Visual Studio Code, you can install the following extension to get the same behavior: https://marketplace.visualstudio.com/items?itemName=Reptarsrage.vscode-manage-user-secrets
Last updated
Was this helpful?