title: How to convert to string and back again with CryptoJs
body: <pre><code>var encrypted = CryptoJS.AES.encrypt(jsonStr, 'youngunicornsrunfree', { format: JsonFormatter });
  
  //convert encrypted to a string for transfer
  //convert string back to Crypto object so it can be decrypted.
  
  var decrypted = CryptoJS.AES.decrypt(encrypted, "youngunicornsrunfree", { format: JsonFormatter });
  </code></pre>
  
  <p>The above two steps, work fine. But in between I need to convert encrypted to a string for transmitting over a network and then convert it back. How can I do this?</p>