Documentation

Horde_Crypt_Blowfish_Pbkdf2
in package

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

Tags
author

Michael Slusarz slusarz@horde.org

category

Horde

copyright

2015-2017 Horde LLC

license

http://www.horde.org/licenses/lgpl21 LGPL 2.1

link

pbkdf2 code released to the public domain.

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

$_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
Return values
mixed

Search results