Showing 7 of 1,216 result(s)
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.
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 ,...
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...
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.
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...
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...
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...
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.