Horde_Crypt_Blowfish_Pbkdf2
in package
PBKDF2 (Password-Based Key Derivation Function 2) implementation (RFC 2898; PKCS #5 v2.0).
Tags
Table of Contents
- $hashAlgo : string
- Hash algorithm used to create key.
- $iterations : int
- Number of iterations to use.
- $salt : string
- Salt.
- $_key : string
- The derived key.
- __construct() : mixed
- Constructor.
- __toString() : mixed
Properties
$hashAlgo
Hash algorithm used to create key.
public
string
$hashAlgo
$iterations
Number of iterations to use.
public
int
$iterations
$salt
Salt.
public
string
$salt
$_key
The derived key.
protected
string
$_key
Methods
__construct()
Constructor.
public
__construct(string $pass, string $key_length[, array<string|int, mixed> $opts = array() ]) : mixed
Parameters
- $pass : string
-
The password.
- $key_length : string
-
Length of the derived key (in bytes).
- $opts : array<string|int, mixed> = array()
-
Additional options:
- algo: (string) Hash algorithm.
- i_count: (integer) Iteration count.
- salt: (string) The salt to use.
Return values
mixed —__toString()
public
__toString() : mixed