Share via


Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption 命名空間

包含用於已驗證加密和解密常式的類型。 您可以實作 IAuthenticatedEncryptor 來建立自訂 authenication。

類別

AuthenticatedEncryptionSettings

設定已驗證加密演算法的設定。

AuthenticatedEncryptorFactory

IAuthenticatedEncryptorFactory 要根據 AuthenticatedEncryptorConfiguration 建立 IAuthenticatedEncryptor

CngCbcAuthenticatedEncryptionSettings

設定在 CBC 加密 + HMAC 驗證模式中使用 Windows CNG 演算法的已驗證加密機制的設定。

CngCbcAuthenticatedEncryptorFactory

Microsoft.AspNetCore.DataProtection.Cng.CbcAuthenticatedEncryptorIAuthenticatedEncryptorFactory

CngGcmAuthenticatedEncryptionSettings

設定在 GCM 加密 + 驗證模式中使用 Windows CNG 演算法的已驗證加密機制的設定。

CngGcmAuthenticatedEncryptorFactory

Microsoft.AspNetCore.DataProtection.Cng.CngGcmAuthenticatedEncryptorIAuthenticatedEncryptorFactory

ManagedAuthenticatedEncryptionSettings

設定使用 Managed SymmetricAlgorithm 和 KeyedHashAlgorithm 實作的已驗證加密機制的設定。

ManagedAuthenticatedEncryptorFactory

Microsoft.AspNetCore.DataProtection.Managed.ManagedAuthenticatedEncryptorIAuthenticatedEncryptorFactory

介面

IAuthenticatedEncryptor

提供已驗證加密和解密常式的基本介面。

IAuthenticatedEncryptorFactory

要產生 IAuthenticatedEncryptor 實例的處理站。

列舉

EncryptionAlgorithm

指定要用來提供受保護承載機密性的對稱加密演算法。

ValidationAlgorithm

指定要用來提供竄改至受保護承載的訊息驗證演算法。

備註

如需 ASP.NET Core資料保護的詳細資訊,請參閱資料保護