CryptInterface.php 377 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * 加解密接口类
  4. * @author Len
  5. * @since 2018-01-09
  6. */
  7. namespace crypt;
  8. interface CryptInterface
  9. {
  10. /**
  11. * 加密
  12. * @param string $input 明文
  13. * @return mixed
  14. */
  15. public function encrypt($input);
  16. /**
  17. * 解密
  18. * @param string $encrypted 密文
  19. * @return mixed
  20. */
  21. public function decrypt($encrypted);
  22. }