語言

HmacRedactorOptions.Key 屬性

定義

取得或設定雜湊金鑰。

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 個字元。

我們建議為每個主要服務部署使用不同的金鑰(例如,服務所在的每個區域)。 此外,關鍵材料應保密並定期更換。

適用於