How can my web api decrypt a password, that was prevously encrypted in a console application, using DPAPI?
I have to store user credentials in a web api somewhere. I decided I create a console application in the solution, next to the Web API, that encrypts the data, and writes it to the web api’s appsettings.json.
Here is the relevant code: