/**
 * Angular crypto-js
 * https://github.com/janppires/angular-crypto-js.git
 **/
 (function(angular, CryptoJS){
     'use strict';

     angular
        .module('angular-crypto-js', [])
        .factory('cryptoJs', [cryptoJs]);

     function cryptoJs(){
         return {
             md5Hex : md5Hex,
             sha1Hex : sha1Hex,
             sha256Hex: sha256Hex,
             sha224Hex: sha224Hex,
             sha512Hex: sha512Hex,
             sha384Hex: sha384Hex,
             sha3Hex: sha3Hex,
         }

         function md5Hex(message){
             return toHex(CryptoJS.MD5, message);
         }

         function sha1Hex(message){
             return toHex(CryptoJS.SHA1, message);
         }

         function sha256Hex(message){
             return toHex(CryptoJS.SHA256, message);
         }

         function sha224Hex(message){
             return toHex(CryptoJS.SHA224, message);
         }

         function sha512Hex(message){
             return toHex(CryptoJS.SHA512, message);
         }

         function sha384Hex(message){
             return toHex(CryptoJS.SHA384, message);
         }

         function sha3Hex(message){
             return toHex(CryptoJS.SHA3, message);
         }

         function toHex(hasher, message){
             return hasher(message).toString(CryptoJS.enc.Hex);
         }
     }

 })(window.angular, window.CryptoJS);

/**
 * Angular crypto-js
 * https://github.com/janppires/angular-crypto-js.git
 **/
 (function(angular, CryptoJS){
     'use strict';

     angular
        .module('angular-crypto-js', [])
        .factory('ngCrypto', [ngCrypto]);

     function ngCrypto(){
         return {
             md5Hex : md5Hex,
             sha1Hex : sha1Hex,
             sha256Hex: sha256Hex,
             sha224Hex: sha224Hex,
             sha512Hex: sha512Hex,
             sha384Hex: sha384Hex,
             sha3Hex: sha3Hex,
         }

         function md5Hex(message){
             return toHex(CryptoJS.MD5, message);
         }

         function sha1Hex(message){
             return toHex(CryptoJS.SHA1, message);
         }

         function sha256Hex(message){
             return toHex(CryptoJS.SHA256, message);
         }

         function sha224Hex(message){
             return toHex(CryptoJS.SHA224, message);
         }

         function sha512Hex(message){
             return toHex(CryptoJS.SHA512, message);
         }

         function sha384Hex(message){
             return toHex(CryptoJS.SHA384, message);
         }

         function sha3Hex(message){
             return toHex(CryptoJS.SHA3, message);
         }

         function toHex(hasher, message){
             return hasher(message).toString(CryptoJS.enc.Hex);
         }
     }

 })(window.angular, window.CryptoJS);

Update factory name to ngCrypto
Update factory name to ngCrypto