Storing and retrieving safe storage values

Safe storage values can be stored by calling a .NET CLI command. The following command adds the complex password to the key password:

dotnet user-secrets set password P@ssW0rd

You should run the preceding command from the root of your project.

We can access the password by passing the key name of the value stored through the Configuration object:

Var password = Configuration["password"];
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.169.109