class BcryptHasher extends AbstractHasher implements Hasher (View source)

## Properties

 protected int \$rounds The default cost factor. protected bool \$verifyAlgorithm Indicates whether to perform an algorithm check.

## Methods

array
info(string \$hashedValue)

Get information about the given hashed value.

bool
check(string \$value, string \$hashedValue, array \$options = [])

Check the given plain value against a hash.

void
__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.

\$this
setRounds(int \$rounds)

Set the default password work factor.

int
cost(array \$options = [])

Extract the cost value from the options array.

## Details

### in AbstractHasher at line 13``` array info(string \$hashedValue) ```

Get information about the given hashed value.

#### Parameters

 string \$hashedValue

 array

### at line 68``` bool check(string \$value, string \$hashedValue, array \$options = []) ```

Check the given plain value against a hash.

#### Parameters

 string \$value string \$hashedValue array \$options

 bool

### at line 30``` void __construct(array \$options = []) ```

Create a new hasher instance.

#### Parameters

 array \$options

 void

### at line 45``` string make(string \$value, array \$options = []) ```

Hash the given value.

#### Parameters

 string \$value array \$options

 string

### at line 84``` bool needsRehash(string \$hashedValue, array \$options = []) ```

Check if the given hash has been hashed using the given options.

#### Parameters

 string \$hashedValue array \$options

 bool

### at line 97``` \$this setRounds(int \$rounds) ```

Set the default password work factor.

#### Parameters

 int \$rounds

 \$this

### at line 110``` protected int cost(array \$options = []) ```

Extract the cost value from the options array.

#### Parameters

 array \$options

 int
{"ft_lang_label":"__label__en","ft_lang_prob":0.5003553,"math_prob":0.7463648,"size":1147,"snap":"2022-05-2022-21","text_gpt3_token_len":253,"char_repetition_ratio":0.1776028,"word_repetition_ratio":0.28742516,"special_character_ratio":0.21185702,"punctuation_ratio":0.10752688,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9801411,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-05-16T16:25:04Z\",\"WARC-Record-ID\":\"<urn:uuid:a055e325-2e28-4825-8a30-cd64b37c801d>\",\"Content-Length\":\"23425\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:295862b1-cb44-4d1a-ba9a-24fe72a96d17>\",\"WARC-Concurrent-To\":\"<urn:uuid:03c5f5e8-6d39-4be1-b8db-eaa7a11817dc>\",\"WARC-IP-Address\":\"104.22.0.126\",\"WARC-Target-URI\":\"https://laravel.com/api/master/Illuminate/Hashing/BcryptHasher.html\",\"WARC-Payload-Digest\":\"sha1:SV37KVWRVFCINUOBKJ6XVASTTK6Q5RW4\",\"WARC-Block-Digest\":\"sha1:CO6EQRJIORUU5TUEAJGGATP5TBLJZNOT\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-21/CC-MAIN-2022-21_segments_1652662510138.6_warc_CC-MAIN-20220516140911-20220516170911-00345.warc.gz\"}"}