WCF-PipeConnection.GetHashAlgorithm-now-uses-SHA256.md

December 1, 2017 ยท View on GitHub

WCF PipeConnection.GetHashAlgorithm now uses SHA256

Scope

Minor

Version Introduced

4.7.1

Source Analyzer Status

NotPlanned

Change Description

Starting with the .NET Framework 4.7.1, Windows Communication Foundation uses a SHA256 hash to generate random names for named pipes. In the .NET Framework 4.7 and earlier versions, it used a SHA1 hash.

  • Quirked
  • Build-time break

If you run into compatibility issue with this change on the .NET Framework 4.7.1 or later, you can opt-out it by adding the following line to the <runtime> section of your app.config file:

<configuration>
    <runtime>
	    <AppContextSwitchOverrides value="Switch.System.ServiceModel.UseSha1InPipeConnectionGetHashAlgorithm=true" />
	</runtime>
</configuration>

Affected APIs

  • Not detectable via API analysis

Category

Windows Communication Foundation (WCF)