PbeParameters(PbeEncryptionAlgorithm, HashAlgorithmName, Int32) 建構函式

定義

初始化 PbeParameters 類別的新執行個體。

public:
 PbeParameters(System::Security::Cryptography::PbeEncryptionAlgorithm encryptionAlgorithm, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, int iterationCount);
public PbeParameters (System.Security.Cryptography.PbeEncryptionAlgorithm encryptionAlgorithm, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, int iterationCount);
new System.Security.Cryptography.PbeParameters : System.Security.Cryptography.PbeEncryptionAlgorithm * System.Security.Cryptography.HashAlgorithmName * int -> System.Security.Cryptography.PbeParameters
Public Sub New (encryptionAlgorithm As PbeEncryptionAlgorithm, hashAlgorithm As HashAlgorithmName, iterationCount As Integer)

參數

encryptionAlgorithm
PbeEncryptionAlgorithm

加密資料時要使用的演算法。

hashAlgorithm
HashAlgorithmName

要搭配金鑰衍生函數 (Key Derivation Function,KDF) 使用以將密碼轉換為加密金鑰的雜湊演算法名稱。

iterationCount
Int32

要提供給金鑰衍生函數 (Key Derivation Function,KDF) 以將密碼轉換為加密金鑰的反覆項目計數。

例外狀況

iterationCount 小於 1。

適用於