CWP\Core\PasswordEncryptor\PBKDF2
Provides Password-Based Key Derivation Function hashing for passwords, using the provided algorithm (default is SHA512), which is NZISM compliant under version 3.2 section 17.2.
Synopsis
class PBKDF2
extends PasswordEncryptor_PHPHash
{
- // members
- protected integer $iterations = 30000;
- // methods
- public void __construct()
- public int getIterations()
- public void encrypt()
Hierarchy
Extends
- SilverStripe\Security\PasswordEncryptor_PHPHash
Members
protected
- $iterations
—
int
The number of internal iterations for hash_pbkdf2() to perform for the derivation. Please note that if you change this from the default value you will break existing hashes stored in the database, so these would need to be regenerated.