Cryptographic Agility in WCF Security
This sample shows how to specify in a standard/custom algorithm to provide a cryptographic agile implementation in a Windows Communication Foundation (WCF) client and service. The sample is composed of the following projects:
This is a self-hosted WCF service that implements the ICalculator interface and secures the endpoint using the T:System.ServiceModel.WsHttpBinding with secure session and reliable session disabled. The service defines a custom SecurityAlgorithmSuite class to specify the cryptographic algorithms to be used for message security.
This is a WCFclient that accesses the service after successful authentication. It invokes the operations exposed by the ICalculator interface and implemented by the service. The client also defines the same custom SecurityAlgorithmSuite class to specify the cryptographic algorithms to be used for message security.
To use this sample
Open the CryptoAgility.sln solution in Visual Studio 2012.
Press CTRL+SHIFT+B to build the solution.
Open File Explorer and navigate to the \WCF\Basic\Security\CryptoAgility\Service\bin directory and run the service.exe file with administrator privileges by right-clicking service.exe and selecting Run as administrator.
Navigate to \WCF\Basic\Security\CryptoAgility\Client\bin directory and run the client.exe file normally.
The samples may already be installed on your machine. Check for the following (default) directory before continuing.
If this directory does not exist, go to Windows Communication Foundation (WCF) and Windows Workflow Foundation (WF) Samples for .NET Framework 4 to download all Windows Communication Foundation (WCF) and WF samples. This sample is located in the following directory.