Php AES 加密不适用于 GET

Php AES encryption not working with GET

我写了一个 PHP 代码,它从获取请求中获取列表 ID 并加密 return。当我在 ubuntu 中从命令提示符 运行 时,这工作正常,但是当我从 URL 请求中尝试它时,每次都给出一个相同的输出。它也没有给出单一错误。无法理解。谁能帮忙?

 <?php
   if( $_GET["list"]) {
      $encryptionMethod = "AES-256-CBC";
      $api_key ="2lYVdI37JfbUgys5kOAu";
      $encrypted = version_compare(PHP_VERSION, '5.3.3') >= 0 ? openssl_encrypt($in, $encryptionMethod, $api_key, 0, '3j9hwG7uj8uvpRAT') : openssl_encrypt($in, $encryptionMethod, $api_key, 0);
      $encrypted = str_replace('/', '892', $encrypted);
      $encrypted = str_replace('+', '763', $encrypted);
      $encrypted = str_replace('=', '', $encrypted);
      echo $encrypted;

      exit();
   }
?>

提前致谢!

知道了。谢谢@Volkerk。

我已经分配了价值并且成功了。

非常感谢。