This documentation is archived and is not being maintained.

PackageDigitalSignatureManager.DefaultHashAlgorithm Property

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

Namespace: System.IO.Packaging
Assembly: WindowsBase (in windowsbase.dll)

public static string DefaultHashAlgorithm { get; }
/** @property */
public static String get_DefaultHashAlgorithm ()

public static function get DefaultHashAlgorithm () : String

You cannot use this property in XAML.

Property Value

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

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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: