Reference.DigestMethod 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定目前 Reference 物件的摘要方法統一資源識別元 (URI)。
public:
property System::String ^ DigestMethod { System::String ^ get(); void set(System::String ^ value); };
public string DigestMethod { get; set; }
member this.DigestMethod : string with get, set
Public Property DigestMethod As String
屬性值
目前 Reference 的摘要方法 URI。 預設值是 http://www.w3.org/2001/04/xmlenc#sha256
。
備註
屬性 DigestMethod 會使用 URI 字串來表示 <DigestMethod>
XML 數位簽名的 元素。
摘要方法是用來哈希 的 Reference演算法。 預設演算法為 SHA256。
由於 SHA1 的衝突問題,Microsoft 建議您使用以 SHA256 或更好的加密方式為基礎的安全性模型。 如需 XML 數位簽名的詳細資訊,請參閱 W3C 規格。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應