title: How do I encrypt the connection string with EF 4.1 Code First?
body: <p>I'm using the Code First RC to build a class library and I would like to be able to encrypt the connection string that I'm using.  The consumers of the class library could be ASP.NET or Windows Forms apps, so I need an encryption method that works with both.  </p>
  
  <p>It appears that I can pass in a connection string to DbContext by name, but not by value, as shown <a href="https://stackoverflow.com/questions/4805094/pass-connection-string-to-code-first-dbcontext">here</a>, so I don't think I can manually decrypt within my program before passing the string to DbContext.  Could anyone point me in the right direction?  </p>