Methods
Constructor
__construct(array | \Traversable $options)
Parameters
$options
array\Traversable
Exceptions
Bcrypt
create(string $password) : string
Parameters
$password
string
Exceptions
Returns
string
Get the backward compatibility
getBackwardCompatibility() : bool
deprecated |
since zf 2.3 requires PHP >= 5.3.23 |
Returns
bool
Get the cost parameter
getCost() : string
Get the salt value
getSalt() : string
Set the backward compatibility $2a$ instead of $2y$ for PHP 5.3.7+
setBackwardCompatibility(bool $value) : \Zend\Crypt\Password\Bcrypt
deprecated |
since zf 2.3 requires PHP >= 5.3.23 |
Parameters
$value
bool
Returns
Verify if a password is correct against a hash value
verify(string $password, string $hash) : bool
Parameters
$password
string
$hash
string
Exceptions
Returns
bool
Properties
<p>Changed from 14 to 10 to prevent possibile DOS attacks due to the high computational time</p>
$cost : string
see |
\Zend\Crypt\Password\http://timoh6.github.io/2013/11/26/Aggressive-password-stretching.html |
Constants
MIN_SALT_SIZE
MIN_SALT_SIZE