The walkthroughs in the Cryptography QuickStart are shipped with a defined configuration, which is included in the App.config file. This file is located in the same folder as the QuickStart project file. Each time you build the code, Visual Studio copies the App.config file to the output directory for the project (the same directory where the QuickStart executable is created), and renames it to CryptographyQuickStart.exe.config.
To change or view these settings, use the Enterprise Library configuration tools to open the App.config file in the directory that contains the QuickStart project file. The App.config file contains the configuration data.
You can also change the application configuration when you do not plan to recompile the application by opening the CryptographyQuickStart.exe.config file with the Enterprise Library configuration tools. However, these changes will be overwritten during the next successful build.
The Cryptography QuickStart contains the following default configuration:
- Hash provider:
- Name: hash provider
- Type: SHA1Managed
- SaltEnabled: True
- Symmetric provider:
- Name: symprovider
- Type: Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.SymmetricAlgorithmProvider
- algorithmType: RijndaelManaged
- protectedKeyFilename: <installdir>\QuickStarts\Cryptography\SymmetricKeyFile.txt
Note: |
| The QuickStart method CreateKeys generates a key and saves it to this file. |
- protectedKeyProtectionScope: LocalMachine