RsaSignatureCookieTransform.HashName Property

Definition

Gets or sets the name of the hash algorithm to use.

C#
public string HashName { get; set; }

Property Value

The name of the hash algorithm. The default is "SHA256".

Remarks

SHA256 is the default algorithm. This may require a minimum operating system of Windows Server 2003 and .NET 3.5 SP1.

If SHA256 is not supported, set the HashName property to "SHA1".

Due to collision problems with SHA1, Microsoft recommends SHA256 or better.

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1