PBKDF2
class PBKDF2 extends KDF (View source)
Class providing PBKDF2 functionality
Methods
__construct(string $hashAlgorithm, int $length, string $salt = null, int $iterations = 1000)
KDF constructor
string
derive(string $password)
Deriver hash for password
int
getIterations()
Get iterations
bool
setIterations(int $iterations)
Set iterations
string
getHashAlgorithm()
Get hash algorithm
bool
setHashAlgorithm(string $hashAlgorithm)
Set hash algorithm
Details
__construct(string $hashAlgorithm, int $length, string $salt = null, int $iterations = 1000)
KDF constructor
in
KDF at line 497
int
getLength()
Get key length
in
KDF at line 504
bool
setLength(int $length)
Set key length
in
KDF at line 510
string
getSalt()
Get salt
in
KDF at line 517
bool
setSalt(string $salt)
Set salt
string
derive(string $password)
Deriver hash for password
int
getIterations()
Get iterations
bool
setIterations(int $iterations)
Set iterations
string
getHashAlgorithm()
Get hash algorithm
bool
setHashAlgorithm(string $hashAlgorithm)
Set hash algorithm