Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Data Protection API using java in Windows 2003 Server

843811Feb 25 2005 — edited Feb 26 2005
Hi,

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...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 26 2005
Added on Feb 25 2005
1 comment
600 views