Archive for May, 2011

Implementing DPAPI in Compact Framework

Posted: 13th May 2011 by thegrayzone in Development
Tags:

I have used the Windows Data Protection API in a number of Windows applications for machine encrypting values. I was trying to implement CryptProtectData and CryptUnprotectData for use on a Windows Mobile device. I tried using the wrapper class that I use for standard Windows development with the following DllImports: [DllImport("crypt32.dll", EntryPoint = "CryptProtectData", CharSet [...]

Changing app.config for Build Configurations

Posted: 5th May 2011 by thegrayzone in Development
Tags:

I’m currently working on an application where config data (connection strings etc) is stored machine encrypted, using the Windows Data Protection API, in app.config. The Problem In the standard app.config file all strings are encrypted for my development machine. I also wanted to store them encrypted for the deployment machine and automatically publish these values [...]