PackageDigitalSignatureManager.DefaultHashAlgorithm Property

Definition

Gets a URI string that identifies the default hash algorithm used to create and verify signatures.

public:
 static property System::String ^ DefaultHashAlgorithm { System::String ^ get(); };
public static string DefaultHashAlgorithm { get; }
static member DefaultHashAlgorithm : string
Public Shared ReadOnly Property DefaultHashAlgorithm As String

Property Value

A URI string that identifies the default hash algorithm used to create and verify signatures.

Remarks

The default hash algorithm for the standard PackageDigitalSignatureManager class is XmlDsigSHA1Url (Secure Hash Algorithm version 1.0 (SHA1)).

The HashAlgorithm property gets or sets the actual hash algorithm this is used to create and verify signatures.

The DefaultHashAlgorithm property is typically used to reset the HashAlgorithm property back to default after a temporary change.

Due to collision problems with SHA1, Microsoft recommends a security model based on SHA256 or better.

Applies to

See also