\Horde_Crypt_Blowfish_Pbkdf2

PBKDF2 (Password-Based Key Derivation Function 2) implementation (RFC 2898; PKCS #5 v2.0).

Summary

Methods
Properties
Constants
__construct()
__toString()
$hashAlgo
$iterations
$salt
No constants found
No protected methods found
$_key
N/A
No private methods found
No private properties found
N/A

Properties

$hashAlgo

$hashAlgo : string

Hash algorithm used to create key.

Type

string

$iterations

$iterations : integer

Number of iterations to use.

Type

integer

$salt

$salt : string

Salt.

Type

string

$_key

$_key : string

The derived key.

Type

string

Methods

__construct()

__construct(string  $pass, string  $key_length, array  $opts = array()) 

Constructor.

Parameters

string $pass

The password.

string $key_length

Length of the derived key (in bytes).

array $opts

Additional options:

  • algo: (string) Hash algorithm.
  • i_count: (integer) Iteration count.
  • salt: (string) The salt to use.

__toString()

__toString()