BcryptHasher (Hashing)
BcryptHasher
class BcryptHasher implements Hasher (View source)
Methods
string | make( string $value, array $options = array()) Hash the given value. | |
bool | check( string $value, string $hashedValue, array $options = array()) Check the given plain value against a hash. | |
bool | needsRehash( string $hashedValue, array $options = array()) Check if the given hash has been hashed using the given options. | |
$this | setRounds( int $rounds) Set the default password work factor. |
Details
string make( string $value, array $options = array())
Hash the given value.
bool check( string $value, string $hashedValue, array $options = array())
Check the given plain value against a hash.
bool needsRehash( string $hashedValue, array $options = array())
Check if the given hash has been hashed using the given options.
$this setRounds( int $rounds)
Set the default password work factor.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.1/Illuminate/Hashing/BcryptHasher.html