DefaultPropertiesToSend.HashAlgorithm 屬性

定義

取得或設定當驗證訊息或建立訊息的數位簽章時所使用的雜湊演算法。

public:
 property System::Messaging::HashAlgorithm HashAlgorithm { System::Messaging::HashAlgorithm get(); void set(System::Messaging::HashAlgorithm value); };
[System.Messaging.MessagingDescription("MsgHashAlgorithm")]
public System.Messaging.HashAlgorithm HashAlgorithm { get; set; }
[<System.Messaging.MessagingDescription("MsgHashAlgorithm")>]
member this.HashAlgorithm : System.Messaging.HashAlgorithm with get, set
Public Property HashAlgorithm As HashAlgorithm

屬性值

HashAlgorithm

其中一個 HashAlgorithm 列舉值。 預設為 MD5

屬性

備註

屬性 HashAlgorithm 會識別驗證訊息時或為訊息建立數位簽章時,訊息佇列所使用的雜湊演算法。

來源電腦上的訊息佇列會在建立訊息的數位簽章時使用雜湊演算法。 然後,目標佇列管理員會使用相同的雜湊演算法在收到訊息時驗證訊息。

由於 MD5 的衝突問題,Microsoft 建議使用 SHA256。

適用於

另請參閱