HmacRedactorOptions.Key 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定雜湊金鑰。
public:
property System::String ^ Key { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.DataAnnotations.Base64String]
public string Key { get; set; }
public string Key { get; set; }
[<System.ComponentModel.DataAnnotations.Base64String>]
member this.Key : string with get, set
member this.Key : string with get, set
Public Property Key As String
屬性值
預設值為 Empty。
- 屬性
備註
鍵碼以 64 為基礎格式指定,且必須至少 44 個字元。
我們建議為每個主要服務部署使用不同的金鑰(例如,服務所在的每個區域)。 此外,關鍵材料應保密並定期更換。