PbeParameters(PbeEncryptionAlgorithm, HashAlgorithmName, Int32) Constructor

Definition

Initializes a new instance of the PbeParameters class.

C#
public PbeParameters(System.Security.Cryptography.PbeEncryptionAlgorithm encryptionAlgorithm, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, int iterationCount);

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

Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Standard 2.1