Ado. NET entity Model EntityFramework connection string Encryption solution

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.