11.2.4 UsePBKDF2 Method

Changes the hash algorithm to PBKDF2 (using SHA-256 for hash function) The number of iterations and salt value can optionally be specified. The default number of iterations is 10,000.

PBKDF2 is a suitable algorithm for password hashing. When hashing passwords, the bigger the iteration number is the more secure the hash function is, but it must be balanced with usability. Higher number of iteration takes longer, so choose a value that will not severely affect the usability of your website. Ask the question, would my customers accept the login process that takes longer than say 2 seconds.

Input Arguments

Name

Type

Mandatory

Description

Iteration

Number

No

The number of iteration

Salt

XPRIM_Binary

No

The salt value to use in the hashing calculation

 

Output Arguments

None

Return Value

None