Data Protection API using java in Windows 2003 Server
843811Feb 25 2005 — edited Feb 26 2005Hi,
Could anyone give me an sample java code to protect secrets using the Data Protection API (DPAPI).
I understand that DPAPI consists of a couple of Win32 functions that allow you to encrypt (CryptProtectData) and decrypt (CryptUnprotectData) data using keys controlled by the system. Using DPAPI, i understand that i can encrypt data with a user's login credentials (which means you need to decrypt the data in the same security context in which it was encrypted), or you can encrypt the data using the machine's credentials.
I don't able to get any sample from web, therefore could any guide me on this...