From the course: Security in ASP.NET Core
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Secure data storage options - ASP.NET Tutorial
From the course: Security in ASP.NET Core
Secure data storage options
- [Instructor] When you are storing application wide information such as Connection strings or API tokens or something like that, there are a couple of options and some of them may sound more promising than others, but let's just have a look. One thing that you can find in ASP.NET Core is the secret manager. What is the secret manager? You could use the dotnet tool and then do user-secret init. But if you're using Virtual Studio, that processes a little bit automated via the UI You can right click on a project and then you can click on Manage User Secrets. What happens then is that a secrets.json file is created and in that secrets.json file, you could add something like, I don't know, connection strings. I think we had the default connection string earlier and we could set this to, well, the value we want and then later we can read that out. Looks kind of nice, but I mean how secret is that? I don't see that secrets.json file here. Well, turns out that this file is in my profile. So…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.