Search

Showing 7 of 1,216 result(s)

/blog/2016/11/30/laravel-implementing-a-crypt_ext_des-hasher#content-public-function-checkvalue-hashedvalue-array-options--

The check method is used to check that a known $value is the same as a $hashedValue . We will not need any options for this method. Internally, we will use the make method and PHP's hash_equals function.

/blog/2016/11/30/laravel-implementing-a-crypt_ext_des-hasher#content-public-function-needsrehashhashedvalue-array-options--

The needsRehash method is used to determine if a given hash needs to be updated, or rehashed. We will accept both a salt and a number of rounds as valid options. If either the salt or number of rounds differ from those stored in the $hashedValue ,...

/blog/2016/11/30/laravel-implementing-a-crypt_std_des-hasher#content-makevalue-array-options--

The make method is responsible for doing the actual hashing. It also accepts an $options array. We will allow a salt to be supplied using the options array. If no salt is supplied, we will generate one. For the actual hashing, we will make a call...

/blog/2016/11/30/laravel-implementing-a-crypt_std_des-hasher#content-public-function-checkvalue-hashedvalue-array-options--

The check method is used to check that a known $value is the same as a $hashedValue . We will not need any options for this method. Internally, we will use the make method and PHP's hash_equals function.

/blog/2016/11/30/laravel-implementing-a-crypt_std_des-hasher#content-public-function-needsrehashhashedvalue-array-options--

The needsRehash method is used to determine if a given hash needs to be updated, or rehashed. We will accept a salt as an option. If the salt from the $options array does not match the salt from the $hashedValue the $hashedValue needs to be...

/blog/2016/11/30/laravels-bcrypt-hasher#content-setroundsrounds

The setRounds method is simple way to control how many rounds, or iterations the make method will use when calculating the final hash. An argument passed to $rounds must be a positive integer between 4 and 31 (including both 4 and 31 ). If an...

/blog/2016/11/30/laravels-bcrypt-hasher#content-makevalue-array-options--

The make method is used to hash a given $value with the provided $options . At the time of writing, the rounds value is the only option that is checked for in the $options array. See the information on the setRounds method for more information on...

Some absolutely amazing
people

The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.