title: Using Crypto.js in meteor
body: <p>I am trying to include some crypto.js libraries in a meteor js app (meteor version 0.6.4.1).</p>
  
  <ul>
  <li><a href="http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/hmac-sha256.js" rel="nofollow">http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/hmac-sha256.js</a></li>
  <li><a href="http://crypto-js.googlecode.com/svn/tags/3.1.2/build/components/enc-base64-min.js" rel="nofollow">http://crypto-js.googlecode.com/svn/tags/3.1.2/build/components/enc-base64-min.js</a></li>
  </ul>
  
  <p>When I copy and paste the contents into the server/main.js file it works fine, but this makes it very un-readable.</p>
  
  <p>When I put the libraries in separate files in the server directory (I also tried placing them in the lib directory) I get the error <code>ReferenceError: CryptoJS is not defined</code>.</p>
  
  <p>gist of server/main.js:</p>
  
  <pre><code>Meteor.methods({
      encrypt:function(bundleID){
          return CryptoJS.HmacSHA256(string, 'something');
      }
  });
  </code></pre>
  
  <p>I also tried changing the first line of the hmac-sha256.js file from</p>
  
  <pre><code>var CryptoJS=CryptoJS||function(h,s){...
  </code></pre>
  
  <p>to:</p>
  
  <pre><code>CryptoJS=CryptoJS||function(h,s){...
  </code></pre>
  
  <p>to make it global, but this also did not work.  How do I include this library properly?</p>