title: openssl_decrypt () function not working, returning null
body: <p>i used openssl_encrypt and openssl_decrypt function but the decrypt part is not returning any value, whereas using the same key Encrypt is working fine.
  here is the function which i used. the variable <code>$decrypted</code> always return a null .
  every small help will be appreciated</p>
  
  <pre><code>function deCryption($value)
  {
  
      $methods = openssl_get_cipher_methods();
      $clefSecrete = "flight";
      echo '&lt;pre&gt;';
      foreach ($methods as $method) {
          //$encrypted = openssl_encrypt($texteACrypter, $method, $clefSecrete); ----this was used for encryption
          $decrypted = openssl_decrypt($value, $method, $clefSecrete);
          echo "value=".$decrypted;
          echo $method . ' : '. $decrypted . "\n";
          break;
      }
      echo '&lt;/pre&gt;';
      return $decrypted;
  }
  </code></pre>