DPAPI Managed Wrapper Library

Published Monday, March 15, 2004 10:18 PM

I have written a DPAPI Managed wrapper that was pretty much taken from MSDN examples and had some extra functions added for ease of use (EncryptString, DecryptString). It uses an attribute mechanism to sandbox calls to the unmanaged functions/libraries.

The library can be found here, including full source code.

No big deal but it works well, nothing fancy, although there are rumours it can grow back amputated limbs, however I cannot confirm or deny this... ;-)

 

by Glav

Comments

# TrackBack said on Sunday, March 14, 2004 6:48 PM
# TrackBack said on Monday, March 15, 2004 8:28 AM

You have been Taken Out! Thanks for the post.

# farkinca71 said on Saturday, April 12, 2008 3:12 PM

THANKS A LOT MATE !

# Rob Kraft said on Wednesday, July 02, 2008 8:54 AM

Thanks for the post.  I was considering using it until I discovered that .Net 2.0 has a ProtectedData class that makes this easier.  msdn.microsoft.com/.../system.security.cryptography.protecteddata.aspx

The .Net 2.0 class does not use P/Invoke to connect to DPAPI.  P/Invoke is something we need to increasingly avoid as it does not usually work across both 32bit and 64bit platforms.

Leave a Comment

(required) 
(required) 
(optional)
(required) 

This Blog

Syndication