title: How to use CryptoJS with Angular
body: <p>All is in the title. I want to use the CrytoJS lib in an AngularJS application and I can't get rid of this.</p>
  
  <p>I install crytoJS with bower:</p>
  
  <pre><code>bower install cryptojslib
  </code></pre>
  
  <p>Then I load the lib I need :</p>
  
  <pre><code>&lt;script type="text/javascript" src="/public/system/lib/cryptojslib/rollups/md5.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="/public/system/lib/cryptojslib/components/enc-base64-min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>And I try to use the CryptoJS like that :</p>
  
  <pre><code>var pwd = CryptoJS.MD5(params.email+'|'+params.password).toString(CryptoJS.enc.Base64);
  </code></pre>
  
  <p>When I run this code, I've got the following error :</p>
  
  <pre><code>'CryptoJS is not defined'
  </code></pre>
  
  <p>I've read that it should be possible to wrap the CryptoJS into a module but I don't know how to do.</p>
  
  <p>Any help would be greatly appreciated.</p>
  
  <p>JM.</p>