Click or drag to resize

KeyMaterialCreateKeyMaterial Method (SecureString, Int32)

Creates a key material for the symmethric algorithm. The salt will be generated from the password hash.

Namespace:  Cauldron.Cryptography
Assembly:  Cauldron.Cryptography (in Cauldron.Cryptography.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public static KeyMaterial CreateKeyMaterial(
	SecureString password,
	int iterations = 60000
)

Parameters

password
Type: System.SecuritySecureString
The password used for the encryption or description
iterations (Optional)
Type: SystemInt32
The number of iteration for the KDF

Return Value

Type: KeyMaterial
The key material
Exceptions
ExceptionCondition
ArgumentNullExceptionpassword is null
SecurityExceptioniterations is lower than 1000
See Also