title: digest('hex') function not found using CryptoJS
body: <p>I am using crypto-js.js and creating a <code>sha512</code> function there for creating a variable <code>hash1</code>. we are successfully creating the hash and then updating hash with password but after that not able to use digest function.</p>
  
  <pre><code>var sha512 = function (password, salt) {
  
      var hash1 = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA512, salt); /** Hashing algorithm sha512 */
  
      hash1.update(password);
  
      var value = hash1.digest('hex');
      return {
          salt: salt,
          passwordHash: value
      };
  };
  </code></pre>
  
  <p>Does anybody know how to fix this?</p>