Bewerken

Share via


PbeParameters(PbeEncryptionAlgorithm, HashAlgorithmName, Int32) Constructor

Definition

Initializes a new instance of the PbeParameters class.

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)

Parameters

encryptionAlgorithm
PbeEncryptionAlgorithm

The algorithm to use when encrypting data.

hashAlgorithm
HashAlgorithmName

The name of a hash algorithm to use with the Key Derivation Function (KDF) to turn a password into an encryption key.

iterationCount
Int32

The iteration count to provide to the Key Derivation Function (KDF) to turn a password into an encryption key.

Exceptions

iterationCount is less than 1.

Applies to