StringEncrypter.php 570 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace Illuminate\Contracts\Encryption;
  3. interface StringEncrypter
  4. {
  5. /**
  6. * Encrypt a string without serialization.
  7. *
  8. * @param string $value
  9. * @return string
  10. *
  11. * @throws \Illuminate\Contracts\Encryption\EncryptException
  12. */
  13. public function encryptString($value);
  14. /**
  15. * Decrypt the given string without unserialization.
  16. *
  17. * @param string $payload
  18. * @return string
  19. *
  20. * @throws \Illuminate\Contracts\Encryption\DecryptException
  21. */
  22. public function decryptString($payload);
  23. }