EncryptionAdapterInterface.php 448 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Magento\Framework\Encryption\Adapter;
  8. interface EncryptionAdapterInterface
  9. {
  10. /**
  11. * @param $data
  12. * @return string
  13. */
  14. public function encrypt(string $data): string;
  15. /**
  16. * @param string $data
  17. * @return string
  18. */
  19. public function decrypt(string $data): string;
  20. }