Message.HashAlgorithm 屬性
定義
取得或設定訊息佇列驗證訊息或為訊息建立數位簽章時使用的雜湊演算法。Gets or sets the hashing algorithm that Message Queuing uses when authenticating a message or creating a digital signature for a message.
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 列舉值。One of the HashAlgorithm enumeration values. 對 Windows XP 來說,預設值為 SHA
。For Windows XP, the default is SHA
. 否則預設為 MD5
。Otherwise, the default is MD5
.
- 屬性
例外狀況
篩選訊息佇列以忽略 HashAlgorithm 屬性。The message queue is filtered to ignore the HashAlgorithm property.
備註
在來源電腦上,訊息佇列會在建立訊息的數位簽章時使用雜湊演算法。On the source computer, Message Queuing uses the hashing algorithm when creating a digital signature for a message. 然後,目標佇列管理員會使用相同的雜湊演算法來驗證收到的訊息。The target Queue Manager then uses the same hashing algorithm to authenticate the message when it is received.
由於 MD5 和 SHA1 的衝突問題,Microsoft 建議使用 SHA256。Due to collision problems with MD5 and SHA1, Microsoft recommends SHA256.