engine.php 377 B

12345678910111213141516171819202122
  1. <?php namespace Laravel\Security\Hashing;
  2. interface Engine {
  3. /**
  4. * Perform a one-way hash on a string.
  5. *
  6. * @param string $value
  7. * @return string
  8. */
  9. public function hash($value);
  10. /**
  11. * Determine if an unhashed value matches a given hash.
  12. *
  13. * @param string $value
  14. * @param string $hash
  15. * @return bool
  16. */
  17. public function check($value, $hash);
  18. }