Reference.DigestMethod Property

Definition

Gets or sets the digest method Uniform Resource Identifier (URI) of the current Reference.

C#
public string DigestMethod { get; set; }

Property Value

The digest method URI of the current Reference. The default value is http://www.w3.org/2001/04/xmlenc#sha256.

Remarks

The DigestMethod property uses a URI string to represent the <DigestMethod> element of an XML digital signature.

The digest method is the algorithm used to hash the Reference. The default algorithm is SHA256.

Due to collision problems with SHA1, Microsoft recommends a security model based on SHA256 or better. For more information about XML digital signatures, see the W3C specification.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 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
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10