Comparing version 1.1.0 to 1.1.1
@@ -1,2 +0,2 @@ | ||
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["md5-es"]=n():e["md5-es"]=n()}(this,function(){return function(e){function n(t){if(r[t])return r[t].exports;var f=r[t]={exports:{},id:t,loaded:!1};return e[t].call(f.exports,f,f.exports,n),f.loaded=!0,f.exports}var r={};return n.m=e,n.c=r,n.p="",n(0)}([function(e,n,r){e.exports=r(1)},function(e,n){"use strict";function r(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var t=function(){function e(e,n){for(var r=0;r<n.length;r++){var t=n[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}return function(n,r,t){return r&&e(n.prototype,r),t&&e(n,t),n}}(),f=function(){function e(){r(this,e)}return t(e,null,[{key:"hash",value:function(n){return e.hex(e.md51(n))}},{key:"md5cycle",value:function(n,r){var t=n[0],f=n[1],i=n[2],o=n[3];t=e.ff(t,f,i,o,r[0],7,-680876936),o=e.ff(o,t,f,i,r[1],12,-389564586),i=e.ff(i,o,t,f,r[2],17,606105819),f=e.ff(f,i,o,t,r[3],22,-1044525330),t=e.ff(t,f,i,o,r[4],7,-176418897),o=e.ff(o,t,f,i,r[5],12,1200080426),i=e.ff(i,o,t,f,r[6],17,-1473231341),f=e.ff(f,i,o,t,r[7],22,-45705983),t=e.ff(t,f,i,o,r[8],7,1770035416),o=e.ff(o,t,f,i,r[9],12,-1958414417),i=e.ff(i,o,t,f,r[10],17,-42063),f=e.ff(f,i,o,t,r[11],22,-1990404162),t=e.ff(t,f,i,o,r[12],7,1804603682),o=e.ff(o,t,f,i,r[13],12,-40341101),i=e.ff(i,o,t,f,r[14],17,-1502002290),f=e.ff(f,i,o,t,r[15],22,1236535329),t=e.gg(t,f,i,o,r[1],5,-165796510),o=e.gg(o,t,f,i,r[6],9,-1069501632),i=e.gg(i,o,t,f,r[11],14,643717713),f=e.gg(f,i,o,t,r[0],20,-373897302),t=e.gg(t,f,i,o,r[5],5,-701558691),o=e.gg(o,t,f,i,r[10],9,38016083),i=e.gg(i,o,t,f,r[15],14,-660478335),f=e.gg(f,i,o,t,r[4],20,-405537848),t=e.gg(t,f,i,o,r[9],5,568446438),o=e.gg(o,t,f,i,r[14],9,-1019803690),i=e.gg(i,o,t,f,r[3],14,-187363961),f=e.gg(f,i,o,t,r[8],20,1163531501),t=e.gg(t,f,i,o,r[13],5,-1444681467),o=e.gg(o,t,f,i,r[2],9,-51403784),i=e.gg(i,o,t,f,r[7],14,1735328473),f=e.gg(f,i,o,t,r[12],20,-1926607734),t=e.hh(t,f,i,o,r[5],4,-378558),o=e.hh(o,t,f,i,r[8],11,-2022574463),i=e.hh(i,o,t,f,r[11],16,1839030562),f=e.hh(f,i,o,t,r[14],23,-35309556),t=e.hh(t,f,i,o,r[1],4,-1530992060),o=e.hh(o,t,f,i,r[4],11,1272893353),i=e.hh(i,o,t,f,r[7],16,-155497632),f=e.hh(f,i,o,t,r[10],23,-1094730640),t=e.hh(t,f,i,o,r[13],4,681279174),o=e.hh(o,t,f,i,r[0],11,-358537222),i=e.hh(i,o,t,f,r[3],16,-722521979),f=e.hh(f,i,o,t,r[6],23,76029189),t=e.hh(t,f,i,o,r[9],4,-640364487),o=e.hh(o,t,f,i,r[12],11,-421815835),i=e.hh(i,o,t,f,r[15],16,530742520),f=e.hh(f,i,o,t,r[2],23,-995338651),t=e.ii(t,f,i,o,r[0],6,-198630844),o=e.ii(o,t,f,i,r[7],10,1126891415),i=e.ii(i,o,t,f,r[14],15,-1416354905),f=e.ii(f,i,o,t,r[5],21,-57434055),t=e.ii(t,f,i,o,r[12],6,1700485571),o=e.ii(o,t,f,i,r[3],10,-1894986606),i=e.ii(i,o,t,f,r[10],15,-1051523),f=e.ii(f,i,o,t,r[1],21,-2054922799),t=e.ii(t,f,i,o,r[8],6,1873313359),o=e.ii(o,t,f,i,r[15],10,-30611744),i=e.ii(i,o,t,f,r[6],15,-1560198380),f=e.ii(f,i,o,t,r[13],21,1309151649),t=e.ii(t,f,i,o,r[4],6,-145523070),o=e.ii(o,t,f,i,r[11],10,-1120210379),i=e.ii(i,o,t,f,r[2],15,718787259),f=e.ii(f,i,o,t,r[9],21,-343485551),n[0]=t+n[0]&4294967295,n[1]=f+n[1]&4294967295,n[2]=i+n[2]&4294967295,n[3]=o+n[3]&4294967295}},{key:"cmn",value:function(e,n,r,t,f,i){return n=(n+e&4294967295)+(t+i&4294967295)&4294967295,(n<<f|n>>>32-f)+r&4294967295}},{key:"ff",value:function(n,r,t,f,i,o,u){return e.cmn(r&t|~r&f,n,r,i,o,u)}},{key:"gg",value:function(n,r,t,f,i,o,u){return e.cmn(r&f|t&~f,n,r,i,o,u)}},{key:"hh",value:function(n,r,t,f,i,o,u){return e.cmn(r^t^f,n,r,i,o,u)}},{key:"ii",value:function(n,r,t,f,i,o,u){return e.cmn(t^(r|~f),n,r,i,o,u)}},{key:"md51",value:function(n){var r=n.length,t=[1732584193,-271733879,-1732584194,271733878],f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i=0,o=64;for(o;o<=r;o+=64)e.md5cycle(t,e.md5blk(n.substring(o-64,o)));for(n=n.substring(o-64),o=0,i=n.length,o;o<i;o++)f[o>>2]|=n.charCodeAt(o)<<(o%4<<3);if(f[o>>2]|=128<<(o%4<<3),o>55)for(e.md5cycle(t,f),o=0;o<16;o++)f[o]=0;return f[14]=8*r,e.md5cycle(t,f),t}},{key:"md5blk",value:function(e){var n=[],r=0;for(r;r<64;r+=4)n[r>>2]=e.charCodeAt(r)+(e.charCodeAt(r+1)<<8)+(e.charCodeAt(r+2)<<16)+(e.charCodeAt(r+3)<<24);return n}},{key:"rhex",value:function(n){var r="",t=0;for(t;t<4;t++)r+=e.hexArray[n>>8*t+4&15]+e.hexArray[n>>8*t&15];return r}},{key:"hex",value:function(n){var r=n.length,t=0;for(t;t<r;t++)n[t]=e.rhex(n[t]);return n.join("")}}]),e}();f.hexArray=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n.default=f}])}); | ||
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports["md5-es"]=r():e["md5-es"]=r()}(this,function(){return function(e){function r(t){if(n[t])return n[t].exports;var f=n[t]={exports:{},id:t,loaded:!1};return e[t].call(f.exports,f,f.exports,r),f.loaded=!0,f.exports}var n={};return r.m=e,r.c=n,r.p="",r(0)}([function(e,r,n){e.exports=n(1)},function(e,r){"use strict";function n(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var t=function(){function e(e,r){for(var n=0;n<r.length;n++){var t=r[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}return function(r,n,t){return n&&e(r.prototype,n),t&&e(r,t),r}}(),f=function(){function e(){n(this,e)}return t(e,null,[{key:"hash",value:function(r){return e.hex(e.md51(r))}},{key:"md5cycle",value:function(r,n){var t=r[0],f=r[1],i=r[2],o=r[3];t=e.ff(t,f,i,o,n[0],7,-680876936),o=e.ff(o,t,f,i,n[1],12,-389564586),i=e.ff(i,o,t,f,n[2],17,606105819),f=e.ff(f,i,o,t,n[3],22,-1044525330),t=e.ff(t,f,i,o,n[4],7,-176418897),o=e.ff(o,t,f,i,n[5],12,1200080426),i=e.ff(i,o,t,f,n[6],17,-1473231341),f=e.ff(f,i,o,t,n[7],22,-45705983),t=e.ff(t,f,i,o,n[8],7,1770035416),o=e.ff(o,t,f,i,n[9],12,-1958414417),i=e.ff(i,o,t,f,n[10],17,-42063),f=e.ff(f,i,o,t,n[11],22,-1990404162),t=e.ff(t,f,i,o,n[12],7,1804603682),o=e.ff(o,t,f,i,n[13],12,-40341101),i=e.ff(i,o,t,f,n[14],17,-1502002290),f=e.ff(f,i,o,t,n[15],22,1236535329),t=e.gg(t,f,i,o,n[1],5,-165796510),o=e.gg(o,t,f,i,n[6],9,-1069501632),i=e.gg(i,o,t,f,n[11],14,643717713),f=e.gg(f,i,o,t,n[0],20,-373897302),t=e.gg(t,f,i,o,n[5],5,-701558691),o=e.gg(o,t,f,i,n[10],9,38016083),i=e.gg(i,o,t,f,n[15],14,-660478335),f=e.gg(f,i,o,t,n[4],20,-405537848),t=e.gg(t,f,i,o,n[9],5,568446438),o=e.gg(o,t,f,i,n[14],9,-1019803690),i=e.gg(i,o,t,f,n[3],14,-187363961),f=e.gg(f,i,o,t,n[8],20,1163531501),t=e.gg(t,f,i,o,n[13],5,-1444681467),o=e.gg(o,t,f,i,n[2],9,-51403784),i=e.gg(i,o,t,f,n[7],14,1735328473),f=e.gg(f,i,o,t,n[12],20,-1926607734),t=e.hh(t,f,i,o,n[5],4,-378558),o=e.hh(o,t,f,i,n[8],11,-2022574463),i=e.hh(i,o,t,f,n[11],16,1839030562),f=e.hh(f,i,o,t,n[14],23,-35309556),t=e.hh(t,f,i,o,n[1],4,-1530992060),o=e.hh(o,t,f,i,n[4],11,1272893353),i=e.hh(i,o,t,f,n[7],16,-155497632),f=e.hh(f,i,o,t,n[10],23,-1094730640),t=e.hh(t,f,i,o,n[13],4,681279174),o=e.hh(o,t,f,i,n[0],11,-358537222),i=e.hh(i,o,t,f,n[3],16,-722521979),f=e.hh(f,i,o,t,n[6],23,76029189),t=e.hh(t,f,i,o,n[9],4,-640364487),o=e.hh(o,t,f,i,n[12],11,-421815835),i=e.hh(i,o,t,f,n[15],16,530742520),f=e.hh(f,i,o,t,n[2],23,-995338651),t=e.ii(t,f,i,o,n[0],6,-198630844),o=e.ii(o,t,f,i,n[7],10,1126891415),i=e.ii(i,o,t,f,n[14],15,-1416354905),f=e.ii(f,i,o,t,n[5],21,-57434055),t=e.ii(t,f,i,o,n[12],6,1700485571),o=e.ii(o,t,f,i,n[3],10,-1894986606),i=e.ii(i,o,t,f,n[10],15,-1051523),f=e.ii(f,i,o,t,n[1],21,-2054922799),t=e.ii(t,f,i,o,n[8],6,1873313359),o=e.ii(o,t,f,i,n[15],10,-30611744),i=e.ii(i,o,t,f,n[6],15,-1560198380),f=e.ii(f,i,o,t,n[13],21,1309151649),t=e.ii(t,f,i,o,n[4],6,-145523070),o=e.ii(o,t,f,i,n[11],10,-1120210379),i=e.ii(i,o,t,f,n[2],15,718787259),f=e.ii(f,i,o,t,n[9],21,-343485551),r[0]=t+r[0]&4294967295,r[1]=f+r[1]&4294967295,r[2]=i+r[2]&4294967295,r[3]=o+r[3]&4294967295}},{key:"cmn",value:function(e,r,n,t,f,i){return r=(r+e&4294967295)+(t+i&4294967295)&4294967295,(r<<f|r>>>32-f)+n&4294967295}},{key:"ff",value:function(r,n,t,f,i,o,u){return e.cmn(n&t|~n&f,r,n,i,o,u)}},{key:"gg",value:function(r,n,t,f,i,o,u){return e.cmn(n&f|t&~f,r,n,i,o,u)}},{key:"hh",value:function(r,n,t,f,i,o,u){return e.cmn(n^t^f,r,n,i,o,u)}},{key:"ii",value:function(r,n,t,f,i,o,u){return e.cmn(t^(n|~f),r,n,i,o,u)}},{key:"md51",value:function(r){var n=r.length,t=[1732584193,-271733879,-1732584194,271733878],f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i=0,o=64;for(o;o<=n;o+=64)e.md5cycle(t,e.md5blk(r.substring(o-64,o)));for(r=r.substring(o-64),o=0,i=r.length,o;o<i;o++)f[o>>2]|=r.charCodeAt(o)<<(o%4<<3);if(f[o>>2]|=128<<(o%4<<3),o>55)for(e.md5cycle(t,f),o=0;o<16;o++)f[o]=0;return f[14]=8*n,e.md5cycle(t,f),t}},{key:"md5blk",value:function(e){var r=[],n=0;for(n;n<64;n+=4)r[n>>2]=e.charCodeAt(n)+(e.charCodeAt(n+1)<<8)+(e.charCodeAt(n+2)<<16)+(e.charCodeAt(n+3)<<24);return r}},{key:"rhex",value:function(r){var n="";return n+=e.hexArray[r>>4&15]+e.hexArray[r>>0&15],n+=e.hexArray[r>>12&15]+e.hexArray[r>>8&15],n+=e.hexArray[r>>20&15]+e.hexArray[r>>16&15],n+=e.hexArray[r>>28&15]+e.hexArray[r>>24&15]}},{key:"hex",value:function(r){var n=r.length,t=0;for(t;t<n;t++)r[t]=e.rhex(r[t]);return r.join("")}}]),e}();f.hexArray=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],r.default=f}])}); | ||
//# sourceMappingURL=md5-es.min.js.map |
{ | ||
"name": "md5-es", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "FASTEST Cryptographic hash library producing a 128-bit (16-byte) hash value", | ||
@@ -5,0 +5,0 @@ "main": "./build/md5-es.min.js", |
@@ -157,8 +157,7 @@ /*! | ||
static rhex(n) { | ||
let s = '', | ||
j = 0; | ||
for (j; j < 4; j++) { | ||
s += MD5.hexArray[n >> j * 8 + 4 & 0x0F] + MD5.hexArray[n >> j * 8 & 0x0F]; | ||
} | ||
let s = ''; | ||
s += MD5.hexArray[n >> 4 & 0x0F] + MD5.hexArray[n >> 0 & 0x0F]; | ||
s += MD5.hexArray[n >> 12 & 0x0F] + MD5.hexArray[n >> 8 & 0x0F]; | ||
s += MD5.hexArray[n >> 20 & 0x0F] + MD5.hexArray[n >> 2 * 8 & 0x0F]; | ||
s += MD5.hexArray[n >> 28 & 0x0F] + MD5.hexArray[n >> 3 * 8 & 0x0F]; | ||
return s; | ||
@@ -165,0 +164,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48830