共用方式為


AuthenticatedEncryptorConfiguration.ValidationAlgorithm 屬性

定義

用於訊息驗證的演算法 (竄改) 。

public:
 property Microsoft::AspNetCore::DataProtection::AuthenticatedEncryption::ValidationAlgorithm ValidationAlgorithm { Microsoft::AspNetCore::DataProtection::AuthenticatedEncryption::ValidationAlgorithm get(); void set(Microsoft::AspNetCore::DataProtection::AuthenticatedEncryption::ValidationAlgorithm value); };
public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ValidationAlgorithm ValidationAlgorithm { get; set; }
member this.ValidationAlgorithm : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ValidationAlgorithm with get, set
Public Property ValidationAlgorithm As ValidationAlgorithm

屬性值

備註

預設值是 HMACSHA256。 如果 EncryptionAlgorithm 指定 'GCM' 演算法,則會忽略這個屬性。

適用於