Hasher.php 775 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace Illuminate\Contracts\Hashing;
  3. interface Hasher
  4. {
  5. /**
  6. * Hash the given value.
  7. *
  8. * @param string $value
  9. * @param array $options
  10. * @return string
  11. */
  12. public function make($value, array $options = []);
  13. /**
  14. * Check the given plain value against a hash.
  15. *
  16. * @param string $value
  17. * @param string $hashedValue
  18. * @param array $options
  19. * @return bool
  20. */
  21. public function check($value, $hashedValue, array $options = []);
  22. /**
  23. * Check if the given hash has been hashed using the given options.
  24. *
  25. * @param string $hashedValue
  26. * @param array $options
  27. * @return bool
  28. */
  29. public function needsRehash($hashedValue, array $options = []);
  30. }