I am employing DPAPI to encrypt my asp.net config file. From my brief reading of DPAPI, I know that it uses Windows Password as the key to do the encryption. The questions, whose windows password?
If I have a asp.net web app, and I hook the config file encryption in application_start event, will it use my application pool identity (Network Service) password?
If I have a desktop console app, and I have a Windows Scheduler to run this app regularly, whose password will DPAPI use to encrypt/decrypt the config file?