Encrypt in PHP openssl and decrypt in javascript CryptoJS
<p>I'm encrypting some parameters in PHP using</p>

<pre><code> openssl("parameter", "AES-256-ECB", "client")
</code></pre>

<p>and I wish to decrypt in <strong>CryptoJS</strong>:</p>

<pre><code>CryptoJS.AES.decrypt(parameter, "client", {mode: CryptoJS.mode.ECB}).toString(CryptoJS.enc.Utf8);
</code></pre>

<p>but it's throwing an empty string.</p>

<p>Any suggestions?</p>