title: NodeJS Crypto encryption to front end javascript decryption
body: <p>I'm looking for AES256 CBC decryption client side, </p>
  
  <p>in nodeJS I use this function to encrypt:</p>
  
  <pre><code>exports.encrypt = function(txt, cryptkey){
    var cipher = crypto.createCipher('aes-256-cbc',cryptkey);
    var crypted = cipher.update(txt,'utf8','hex');
    crypted += cipher.final('hex');
  
    console.log(crypted);
    return crypted;
  
  };
  </code></pre>
  
  <p>but I can't seem to work with it in any client side library (JSAES.js, SJCL.js, pidcrypt)</p>
  
  <p>my guess is it has something to do with the base64/hex encoding decoding, any pointers?</p>