2011-08-25 22:53:05 -05:00
|
|
|
<?php namespace Laravel\Security\Hashing;
|
2011-08-23 21:04:40 -05:00
|
|
|
|
|
|
|
|
interface Engine {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Perform a one-way hash on a string.
|
|
|
|
|
*
|
|
|
|
|
* @param string $value
|
|
|
|
|
* @return string
|
|
|
|
|
*/
|
|
|
|
|
public function hash($value);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Determine if an unhashed value matches a given hash.
|
|
|
|
|
*
|
|
|
|
|
* @param string $value
|
|
|
|
|
* @param string $hash
|
|
|
|
|
* @return bool
|
|
|
|
|
*/
|
|
|
|
|
public function check($value, $hash);
|
|
|
|
|
|
|
|
|
|
}
|