BcryptHasher
class BcryptHasher extends AbstractHasher implements Hasher (View source)
Properties
Methods
bool
check(string $value, string $hashedValue, array $options = [])
Check the given plain value against a hash.
__construct(array $options = [])
Create a new hasher instance.
string
make(string $value, array $options = [])
Hash the given value.
bool
needsRehash(string $hashedValue, array $options = [])
Check if the given hash has been hashed using the given options.
verifyConfiguration($value)
Verifies that the configuration is less than or equal to what is configured.
bool
isUsingCorrectAlgorithm(string $hashedValue)
Verify the hashed value's algorithm.
bool
isUsingValidOptions(string $hashedValue)
Verify the hashed value's options.
$this
setRounds(int $rounds)
Set the default password work factor.
int
cost(array $options = [])
Extract the cost value from the options array.
Details
bool
check(string $value, string $hashedValue, array $options = [])
Check the given plain value against a hash.
bool
needsRehash(string $hashedValue, array $options = [])
Check if the given hash has been hashed using the given options.
verifyConfiguration($value)
internal |
Verifies that the configuration is less than or equal to what is configured.