DPAPI and config files

D

Dan Amiga

Hello. This is about DPAPI and configuration files.
Basically, what I understand is when loading the exe assembly the framework
takes parameters from the config file and loads them.
I want to store THE ENTIRE web.config ( or any other config file ) using
DPAPI.

That is - I want to develop a component which intercept the frameworks
request to the web.config, decrypt the config file stored in the DPAPI
protected storage and give it to the framework for regular execution.

The thing is - I want it to be transparent. I don't want other development
teams to be concered and implement this logic in their applications.

Any idea's ?

Dan Amiga,
Israel.
 
D

Dan Amiga

I am talking about Framework config files, not only Web.Config, also
Machine.config, etc.
How does this application block handels options that must exists before the
assembly loads such as processmodel / impersonation ?
 
J

Joe Kaplan \(MVP - ADSI\)

I don't believe you can do what you want to do as there are no hooks into
the configuration file APIs at the level you need. The best you could do
would be to encrypt specific data or use something like the configuration
application block as previously mentioned.

Joe K.

Dan Amiga said:
I am talking about Framework config files, not only Web.Config, also
Machine.config, etc.
How does this application block handels options that must exists before the
assembly loads such as processmodel / impersonation ?




Paul Glavich said:
The configuration application block offers similar functionality but
relegates most of the config info to another file (not the web.config) and
encrypts that.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/
 
D

Dan Amiga

Thanks,
It's already a progress if you understood what I wanted :)
How can I be sure there are no Hooks into it ?
Where else can I post for info ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,141
Messages
2,570,813
Members
47,357
Latest member
sitele8746

Latest Threads

Top