HmacRedactorOptions.Key Property

Definition

Gets or sets the hashing key.

public:
 property System::String ^ Key { System::String ^ get(); void set(System::String ^ value); };
public string Key { get; set; }
[System.ComponentModel.DataAnnotations.Base64String]
public string Key { get; set; }
member this.Key : string with get, set
[<System.ComponentModel.DataAnnotations.Base64String>]
member this.Key : string with get, set
Public Property Key As String

Property Value

The default is Empty.

Attributes

Remarks

The key is specified in base 64 format, and must be a minimum of 44 characters long.

We recommend using a distinct key for each major deployment of a service (for example, for each region the service is in). Additionally, the key material should be kept secret and rotated on a regular basis.

Applies to