Encrypter.php 616 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace Illuminate\Contracts\Encryption;
  3. interface Encrypter
  4. {
  5. /**
  6. * Encrypt the given value.
  7. *
  8. * @param mixed $value
  9. * @param bool $serialize
  10. * @return string
  11. *
  12. * @throws \Illuminate\Contracts\Encryption\EncryptException
  13. */
  14. public function encrypt($value, $serialize = true);
  15. /**
  16. * Decrypt the given value.
  17. *
  18. * @param string $payload
  19. * @param bool $unserialize
  20. * @return mixed
  21. *
  22. * @throws \Illuminate\Contracts\Encryption\DecryptException
  23. */
  24. public function decrypt($payload, $unserialize = true);
  25. }