JavaScript Editor jscript editor     Web designer 



Main Page

Provides a step-by-step example for creating, exporting, and importing an encryption key to decrypt encrypted Web.config sections from a single encrypted file on multiple servers.

Protected Configuration helps improve the security of an application by enabling you to encrypt sensitive information that is stored in a configuration file. The .NET Framework automatically decrypts the configuration file when the configuration file is processed, and decryption does not require any additional code. You can use aspnet_regiis.exe to encrypt sections of the configuration file and to manage encryption keys. For more information about Protected Configuration, see Encrypting Configuration Information Using Protected Configuration.

Protected Configuration lets you create, delete, export, and import custom encryption keys for use with the RsaProtectedConfigurationProvider provider. This lets you create backup copies of encryption keys or copy an encryption key to multiple Web servers, such as a Web farm, so that an application that has an encrypted Web.config file can be copied to multiple locations.

During this walkthrough, you will learn how to do the following:

Expand imagePrerequisites

Expand imageCreating a Custom RSA Key Container

Expand imageGranting Read Access to an RSA Encryption Key

Expand imageSpecifying a Protected Configuration Provider

Expand imageEncrypting Sections of the Web.config File

Expand imageAccessing Decrypted Configuration Settings

Expand imageExporting and Importing an RSA Key Container

Expand imageSee Also



JavaScript Editor jscript editor     Web designer