Enterprise Library. net Framework 3.5-entlib v4.1 is the patterns & Practices Group. net Framework 3.5 is used to develop a set of Enterprise libraries. The latest version is v4.1, which includes 9 Application blocks, including data access application blocks and Exception Handling application blocks) validation Application Block is very helpful and practical for enterprise application development.
Download information: Http://blog.entlib.com/EntLib/archive/2009/03/30/enterprise-library-for-.net-framework-3.5-entlib-v4.1-v4.1.aspx Previous: Enterprise Library-Data Access Application BlockLearning Manual (Latest Version)-Part 2 This article demonstrates how to encrypt the connection string in the configuration file according to the entlib v4.1 learning Manual (hands on Lab. 1. Now we can open the project \ Enterprise Library 4.1 Hol \ CS \ data access \ exercises \ ex03 \ begin \ dataex3.sln to start our work. 2. Open the app. config configuration file in the project and check whether the database connection string is correct. Currently, the connection string is in plaintext and has not been encrypted.
3. Select the app. config configuration file for the encrypted database connection string and use the Enterprise Library Configuration tool.
As shown in, select Data Access Application Block, select the protectionprovider attribute in the Properties window, and set this attribute to rsaprotectedconfigurationprovider. Save the settings and return to the editing page of APP. config in Visual Studio.
Now, you will find that the connection string in the configuration file has been encrypted.
However, now you run the example Program . Entlib.com Open Source Forum team ( Http://forum.entlib.com ) You are welcome to continue accessing the subsequent content.
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.