If you need to use DPAPI in 1.1. – there are several managed wrappers out there.
A while ago i have written a whole set of tools around CryptProtectData. These include
- A managed wrapper (supports user/machine store and optional entropy)
- A command line and GUI Tool to encrypt and decrypt data
- A single ASPX Page to encrypt and decrypt data