using securestring for a sql connection
Posted
by Rick
on Stack Overflow
See other posts from Stack Overflow
or by Rick
Published on 2009-12-17T15:02:03Z
Indexed on
2010/04/07
10:23 UTC
Read the original article
Hit count: 581
Hi,
I want to use a SecureString to hold a connection string for a database. But as soon as I set the SqlConnection object's ConnectionString property to the value of the securestring surely it will become visible to any other application that is able to read my application's memory?
I have made the following assumptions:
a) I am not able to instantiate a SqlConnection object outside of managed memory
b) any string within managed memory can be read by an application such as Hawkeye
© Stack Overflow or respective owner