I'm considering using the Windows DPAPI to protect an ECDH key I use to encrypt some data in a local database in a Windows desktop application. I'm new to DPAPI, but its my understanding that DPAPI can use a users credentials to secure the keys it protects.
Wouldn't this be vulnerable to malware, that a user inadvertently installs, or does DPAPI provide some protection in this instance?
