Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
42 lines (37 sloc)
946 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Illuminate\Contracts\Hashing; | |
interface Hasher | |
{ | |
/** | |
* Get information about the given hashed value. | |
* | |
* @param string $hashedValue | |
* @return array | |
*/ | |
public function info($hashedValue); | |
/** | |
* Hash the given value. | |
* | |
* @param string $value | |
* @param array $options | |
* @return string | |
*/ | |
public function make($value, array $options = []); | |
/** | |
* Check the given plain value against a hash. | |
* | |
* @param string $value | |
* @param string $hashedValue | |
* @param array $options | |
* @return bool | |
*/ | |
public function check($value, $hashedValue, array $options = []); | |
/** | |
* Check if the given hash has been hashed using the given options. | |
* | |
* @param string $hashedValue | |
* @param array $options | |
* @return bool | |
*/ | |
public function needsRehash($hashedValue, array $options = []); | |
} |