title: how to encrypt/decrypt with crypto-js
body: <p>I'm using crypto-js library:</p>
  
  <p><a href="https://github.com/brix/crypto-js" rel="nofollow noreferrer">https://github.com/brix/crypto-js</a></p>
  
  <p>I want to encrypt some value and decrypt them.</p>
  
  <p>but it returns wrong output.</p>
  
  <p>my codes:</p>
  
  <pre><code>import CryptoAES from 'crypto-js/aes'
  
  componentDidMount(){
    var ciphertext = CryptoAES.encrypt('my message', 'secret key 123');
    var _ciphertext = CryptoAES.decrypt(ciphertext, 'secret key 123');
    console.log(_ciphertext.toString(CryptoAES.Utf8));
  }
  </code></pre>
  
  <p>but my console doesn't return <code>my message</code>. it returns like this:</p>
  
  <pre><code>6d79206d657373616765
  </code></pre>