RsaEncryptionCookieTransform.HashName Property

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

Namespace:   System.IdentityModel
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public string HashName { get; set; }

Property Value

Type: System.String

The name of the hash algorithm to use. The default is “SHA2566”.

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

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

.NET Framework
Available since 4.5
Return to top