Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Security (http://www.velocityreviews.com/forums/f62-asp-net-security.html)
-   -   Encrypt and Decrypt ConnectionString inside web.config... (http://www.velocityreviews.com/forums/t768816-encrypt-and-decrypt-connectionstring-inside-web-config.html)

den 2005 07-25-2006 02:44 AM

Encrypt and Decrypt ConnectionString inside web.config...
 
Hi everybody,

How exactly do you Encrypt and Decrypt, using Cryptography,
ConnectionString inside web.config programmatically in .Net Framework 1.0 and
1.1?
Please provide codes. Thanks.

den2005
--
MCP Year 2005, Philippines

Dominick Baier 07-25-2006 06:17 AM

Re: Encrypt and Decrypt ConnectionString inside web.config...
 
you can use DPAPI for that -

find a wrapper here:

http://www.leastprivilege.com/DPAPITools.aspx


> Hi everybody,
>
> How exactly do you Encrypt and Decrypt, using Cryptography,
> ConnectionString inside web.config programmatically in .Net Framework
> 1.0 and 1.1? Please provide codes. Thanks.
>
> den2005
>




den 2005 07-25-2006 06:35 AM

Re: Encrypt and Decrypt ConnectionString inside web.config...
 
Thanks for info, Dominic, but I know there is a DPAPI but right now trying
other approach.

Dennis
--
MCP Year 2005, Philippines


"Dominick Baier" wrote:

> you can use DPAPI for that -
>
> find a wrapper here:
>
> http://www.leastprivilege.com/DPAPITools.aspx
>
>
> > Hi everybody,
> >
> > How exactly do you Encrypt and Decrypt, using Cryptography,
> > ConnectionString inside web.config programmatically in .Net Framework
> > 1.0 and 1.1? Please provide codes. Thanks.
> >
> > den2005
> >

>
>
>


Dominick Baier 07-25-2006 06:49 AM

Re: Encrypt and Decrypt ConnectionString inside web.config...
 
aha - which approach??

why?

dominick

> Thanks for info, Dominic, but I know there is a DPAPI but right now
> trying other approach.
>
> Dennis
>
> "Dominick Baier" wrote:
>
>> you can use DPAPI for that -
>>
>> find a wrapper here:
>>
>> http://www.leastprivilege.com/DPAPITools.aspx
>>
>>> Hi everybody,
>>>
>>> How exactly do you Encrypt and Decrypt, using Cryptography,
>>> ConnectionString inside web.config programmatically in .Net
>>> Framework 1.0 and 1.1? Please provide codes. Thanks.
>>>
>>> den2005
>>>




den 2005 07-26-2006 05:45 AM

Re: Encrypt and Decrypt ConnectionString inside web.config...
 
Hi Dominick

Approach I am doing is using descryptoserviceprovider to encrypt and decrypt
it, having problem in decrypt it back, implementing key and IV data to make
it uniform, but unable to use stored the dll library object in Session
variable, and need to do write these data in a file...that is approach I am
doing now, after this try using DPAPI. I have not seen the downloaded file
from link you provided, it is in detail how to use it for encryption and
decryption of web.config connection string?

Thanks

Dennis
--
MCP Year 2005, Philippines


"Dominick Baier" wrote:

> aha - which approach??
>
> why?
>
> dominick
>
> > Thanks for info, Dominic, but I know there is a DPAPI but right now
> > trying other approach.
> >
> > Dennis
> >
> > "Dominick Baier" wrote:
> >
> >> you can use DPAPI for that -
> >>
> >> find a wrapper here:
> >>
> >> http://www.leastprivilege.com/DPAPITools.aspx
> >>
> >>> Hi everybody,
> >>>
> >>> How exactly do you Encrypt and Decrypt, using Cryptography,
> >>> ConnectionString inside web.config programmatically in .Net
> >>> Framework 1.0 and 1.1? Please provide codes. Thanks.
> >>>
> >>> den2005
> >>>

>
>
>



All times are GMT. The time now is 09:29 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57