title: Javascript : CryptoJS object missing SHA1 method
body: <p>This should be easy to solve....</p>
  
  <p>My CryptoJS object exists, but it doesn't have a SHA1 method.</p>
  
  <p>What do I have to do to make this work? There are many many samples out there. Mine, of course, doesn't work...</p>
  
  <p>The .enc.Hex.stringify method DOES exist...</p>
  
  <p>Any help appreciated.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
      &lt;html&gt;
      &lt;head&gt;
          &lt;meta charset="utf-8" /&gt;
          &lt;title&gt;&lt;/title&gt;
          link href="blaw blaw blaw" rel="stylesheet" &gt;
      &lt;/head&gt;
      &lt;body&gt;
          content blaw blaw blaw
  
         &lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"&gt;&lt;/script&gt;
         &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"&gt;&lt;/script&gt;
         &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/core.js"&gt;&lt;/script&gt;
         &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/enc-hex.js"&gt;&lt;/script&gt;
         &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/hmac-sha1.js"&gt;&lt;/script&gt;
  
         &lt;script type="text/javascript"&gt;
  
             var StringToSign = "blaw blaw blaw";
             var hash = CryptoJS.SHA1(StringToSign); // &lt;--- No SHA1 method!
  
             var result = CryptoJS.enc.Hex.stringify(hash);
             $(".content .z-value").html(result);
          &lt;/script&gt;
  </code></pre>
  
  <p>
  </p>
  
  <p>Thanks</p>