Use aspnet_regiis. Command line browse to (usually):
CD C:\windows\microsoft.Net\framework\v2.0.50727
and type:
aspnet_regiis-PEF"sectionname of Web. config" "Path" -To Encryptaspnet_regiis-PDF"sectionname of Web. config" "Path" -To decrypt
For example:
aspnet_regiis-PEF"ConnectionStrings" "D:\projects\HelloWorldProject"
You don ' t need the anything to make L2sql read ecrypted connection string file.
Http://stackoverflow.com/questions/1335413/entity-framework-encrypt-connection-string?rq=1
Original address
String encryption using the Aspnet_regiis tool
After encryption is successful, the ASP will automatically decrypt
This encryption is limited to the inability to view the database strings directly, but can be decrypted with aspnet_regiis without much security
Microsoft gives the documentation that this encryption is related to the hardware equivalent to saying that this encryption can only be used to run encrypted computer use, after replacement need to re-encrypt
Ado. NET entity Model EntityFramework connection string Encryption solution