Windows app config files can be encrytped/decrypted using the same
techniqes as web apps, it's all part of the framework.

If you read the article you will see that you can decide to encrypt
only certain sections. You can also write your own encryption provide.
It would probably be worth the effort to work within the framework on
this instead of rolling your own solution.

But if you decide to go with your own solution as is, yes, you will
always get an exception trying to decrypt a plaintext string, or
conversely trying to use an encrypted string.


On 5/10/06, Sharon <[EMAIL PROTECTED]> wrote:
> But what I have is an app.config with windows application. How would it apply to that. also I have a custom encrypting tool and not a in built .net tool. I only encrypt the value attribute of the connectionstrings element. and I need to see if the value is encrypted by reading it.
>
> I have tried the following. I tried to decrypt a decrypted string and got an exception. I am wondering if this is going to be consistent and a valid check .
>
> Thanks
> Sharon
>
>
>
> ----- Original Message ----
> From: Dean Fiala <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Tuesday, May 9, 2006 9:26:15 PM
> Subject: Re: [AspNet2] Identifying encrypted connection strings
>
> You shouldn't need to know.  In fact, here's a very timely article on
> using the built-in .NET tools to work with encrypted configurations.
>
> http://msdn.microsoft.com/msdnmag/issues/06/05/ExtremeASPNET/default.aspx
>
> On 5/9/06, Sharon <[EMAIL PROTECTED]> wrote:
> > Hi All,
> > I use VS 2005. I read my connection strings from app.config using <connectionStrings>  section. How do I identify if a connection string from the app.config is encrypted or not.
> >
> > Thanks
> > All Help is Great Help
> > Sharon
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
>
>
> --
> Dean Fiala
> Very Practical Software, Inc
> Now with Blogging...
> http://www.vpsw.com/blogbaby
> Microsoft MVP
>
>
>
> SPONSORED LINKS
> Object oriented Programming languages
>
>
>
>
>
> YAHOO! GROUPS LINKS
>
>
>  Visit your group "AspNet2" on the web.
>
>  To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>


--
Dean Fiala
Very Practical Software, Inc
Now with Blogging...
http://www.vpsw.com/blogbaby
Microsoft MVP


YAHOO! GROUPS LINKS




Reply via email to