PHP Class Horde_Crypt_Blowfish_Pbkdf2, horde

pbkdf2 code released to the public domain.
Author: Michael Slusarz ([email protected])
ファイルを表示 Open project: horde/horde

Public Properties

Property Type Description
$hashAlgo string Hash algorithm used to create key.
$iterations integer Number of iterations to use.
$salt string Salt.

Protected Properties

Property Type Description
$_key string The derived key.

Public Methods

Method Description
__construct ( string $pass, string $key_length, array $opts = [] ) Constructor.
__toString ( )

Method Details

__construct() public method

Constructor.
public __construct ( string $pass, string $key_length, array $opts = [] )
$pass string The password.
$key_length string Length of the derived key (in bytes).
$opts array Additional options: - algo: (string) Hash algorithm. - i_count: (integer) Iteration count. - salt: (string) The salt to use.

__toString() public method

public __toString ( )

Property Details

$_key protected_oe property

The derived key.
protected string $_key
return string

$hashAlgo public_oe property

Hash algorithm used to create key.
public string $hashAlgo
return string

$iterations public_oe property

Number of iterations to use.
public int $iterations
return integer

$salt public_oe property

Salt.
public string $salt
return string