title: Decrypt AES encrypted string in Node.JS with no IV
body: <p>I've been working on decrypting a few strings, and I've gotten them decrypted in Ruby (that's where they were originally encrypted). In Ruby, this is the method I'm calling to decrypt:</p>
  <p>Using <a href="https://rubygems.org/gems/aes" rel="nofollow noreferrer">https://rubygems.org/gems/aes</a></p>
  <pre><code>def decrypt(str)
    AES.decrypt(str, ENV[&quot;AES_KEY&quot;])
  end
  </code></pre>
  <p>In Node, this is what I've tried:</p>
  <pre><code>const CryptoJS = require('crypto-js');
  
  const decryptedBytes = CryptoJS.AES.decrypt(secret, key);
  const decryptedMessage = decryptedBytes.toString(CryptoJS.enc.Utf8);
  </code></pre>
  <p>But no luck using that — my result is always equal to an empty String. I'm probably missing something very small or stupid, but any suggestions or ideas are appreciated.</p>