Source code
Revision control
Copy as Markdown
Other Tools
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.MD5=n():t.MD5=n()}(this,function(){return function(t){function n(o){if(r[o])return r[o].exports;var e=r[o]={i:o,l:!1,exports:{}};return t[o].call(e.exports,e,e.exports,n),e.l=!0,e.exports}var r={};return n.m=t,n.c=r,n.i=function(t){return t},n.d=function(t,r,o){n.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:o})},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=4)}([function(t,n){var r={utf8:{stringToBytes:function(t){return r.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(r.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var n=[],r=0;r<t.length;r++)n.push(255&t.charCodeAt(r));return n},bytesToString:function(t){for(var n=[],r=0;r<t.length;r++)n.push(String.fromCharCode(t[r]));return n.join("")}}};t.exports=r},function(t,n,r){!function(){var n=r(2),o=r(0).utf8,e=r(3),u=r(0).bin,i=function(t,r){t.constructor==String?t=r&&"binary"===r.encoding?u.stringToBytes(t):o.stringToBytes(t):e(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||t.constructor===Uint8Array||(t=t.toString());for(var f=n.bytesToWords(t),s=8*t.length,c=1732584193,a=-271733879,p=-1732584194,l=271733878,g=0;g<f.length;g++)f[g]=16711935&(f[g]<<8|f[g]>>>24)|4278255360&(f[g]<<24|f[g]>>>8);f[s>>>5]|=128<<s%32,f[14+(s+64>>>9<<4)]=s;for(var h=i._ff,y=i._gg,d=i._hh,v=i._ii,g=0;g<f.length;g+=16){var b=c,x=a,T=p,B=l;c=h(c,a,p,l,f[g+0],7,-680876936),l=h(l,c,a,p,f[g+1],12,-389564586),p=h(p,l,c,a,f[g+2],17,606105819),a=h(a,p,l,c,f[g+3],22,-1044525330),c=h(c,a,p,l,f[g+4],7,-176418897),l=h(l,c,a,p,f[g+5],12,1200080426),p=h(p,l,c,a,f[g+6],17,-1473231341),a=h(a,p,l,c,f[g+7],22,-45705983),c=h(c,a,p,l,f[g+8],7,1770035416),l=h(l,c,a,p,f[g+9],12,-1958414417),p=h(p,l,c,a,f[g+10],17,-42063),a=h(a,p,l,c,f[g+11],22,-1990404162),c=h(c,a,p,l,f[g+12],7,1804603682),l=h(l,c,a,p,f[g+13],12,-40341101),p=h(p,l,c,a,f[g+14],17,-1502002290),a=h(a,p,l,c,f[g+15],22,1236535329),c=y(c,a,p,l,f[g+1],5,-165796510),l=y(l,c,a,p,f[g+6],9,-1069501632),p=y(p,l,c,a,f[g+11],14,643717713),a=y(a,p,l,c,f[g+0],20,-373897302),c=y(c,a,p,l,f[g+5],5,-701558691),l=y(l,c,a,p,f[g+10],9,38016083),p=y(p,l,c,a,f[g+15],14,-660478335),a=y(a,p,l,c,f[g+4],20,-405537848),c=y(c,a,p,l,f[g+9],5,568446438),l=y(l,c,a,p,f[g+14],9,-1019803690),p=y(p,l,c,a,f[g+3],14,-187363961),a=y(a,p,l,c,f[g+8],20,1163531501),c=y(c,a,p,l,f[g+13],5,-1444681467),l=y(l,c,a,p,f[g+2],9,-51403784),p=y(p,l,c,a,f[g+7],14,1735328473),a=y(a,p,l,c,f[g+12],20,-1926607734),c=d(c,a,p,l,f[g+5],4,-378558),l=d(l,c,a,p,f[g+8],11,-2022574463),p=d(p,l,c,a,f[g+11],16,1839030562),a=d(a,p,l,c,f[g+14],23,-35309556),c=d(c,a,p,l,f[g+1],4,-1530992060),l=d(l,c,a,p,f[g+4],11,1272893353),p=d(p,l,c,a,f[g+7],16,-155497632),a=d(a,p,l,c,f[g+10],23,-1094730640),c=d(c,a,p,l,f[g+13],4,681279174),l=d(l,c,a,p,f[g+0],11,-358537222),p=d(p,l,c,a,f[g+3],16,-722521979),a=d(a,p,l,c,f[g+6],23,76029189),c=d(c,a,p,l,f[g+9],4,-640364487),l=d(l,c,a,p,f[g+12],11,-421815835),p=d(p,l,c,a,f[g+15],16,530742520),a=d(a,p,l,c,f[g+2],23,-995338651),c=v(c,a,p,l,f[g+0],6,-198630844),l=v(l,c,a,p,f[g+7],10,1126891415),p=v(p,l,c,a,f[g+14],15,-1416354905),a=v(a,p,l,c,f[g+5],21,-57434055),c=v(c,a,p,l,f[g+12],6,1700485571),l=v(l,c,a,p,f[g+3],10,-1894986606),p=v(p,l,c,a,f[g+10],15,-1051523),a=v(a,p,l,c,f[g+1],21,-2054922799),c=v(c,a,p,l,f[g+8],6,1873313359),l=v(l,c,a,p,f[g+15],10,-30611744),p=v(p,l,c,a,f[g+6],15,-1560198380),a=v(a,p,l,c,f[g+13],21,1309151649),c=v(c,a,p,l,f[g+4],6,-145523070),l=v(l,c,a,p,f[g+11],10,-1120210379),p=v(p,l,c,a,f[g+2],15,718787259),a=v(a,p,l,c,f[g+9],21,-343485551),c=c+b>>>0,a=a+x>>>0,p=p+T>>>0,l=l+B>>>0}return n.endian([c,a,p,l])};i._ff=function(t,n,r,o,e,u,i){var f=t+(n&r|~n&o)+(e>>>0)+i;return(f<<u|f>>>32-u)+n},i._gg=function(t,n,r,o,e,u,i){var f=t+(n&o|r&~o)+(e>>>0)+i;return(f<<u|f>>>32-u)+n},i._hh=function(t,n,r,o,e,u,i){var f=t+(n^r^o)+(e>>>0)+i;return(f<<u|f>>>32-u)+n},i._ii=function(t,n,r,o,e,u,i){var f=t+(r^(n|~o))+(e>>>0)+i;return(f<<u|f>>>32-u)+n},i._blocksize=16,i._digestsize=16,t.exports=function(t,r){if(void 0===t||null===t)throw new Error("Illegal argument "+t);var o=n.wordsToBytes(i(t,r));return r&&r.asBytes?o:r&&r.asString?u.bytesToString(o):n.bytesToHex(o)}}()},function(t,n){!function(){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(t,n){return t<<n|t>>>32-n},rotr:function(t,n){return t<<32-n|t>>>n},endian:function(t){if(t.constructor==Number)return 16711935&r.rotl(t,8)|4278255360&r.rotl(t,24);for(var n=0;n<t.length;n++)t[n]=r.endian(t[n]);return t},randomBytes:function(t){for(var n=[];t>0;t--)n.push(Math.floor(256*Math.random()));return n},bytesToWords:function(t){for(var n=[],r=0,o=0;r<t.length;r++,o+=8)n[o>>>5]|=t[r]<<24-o%32;return n},wordsToBytes:function(t){for(var n=[],r=0;r<32*t.length;r+=8)n.push(t[r>>>5]>>>24-r%32&255);return n},bytesToHex:function(t){for(var n=[],r=0;r<t.length;r++)n.push((t[r]>>>4).toString(16)),n.push((15&t[r]).toString(16));return n.join("")},hexToBytes:function(t){for(var n=[],r=0;r<t.length;r+=2)n.push(parseInt(t.substr(r,2),16));return n},bytesToBase64:function(t){for(var r=[],o=0;o<t.length;o+=3)for(var e=t[o]<<16|t[o+1]<<8|t[o+2],u=0;u<4;u++)8*o+6*u<=8*t.length?r.push(n.charAt(e>>>6*(3-u)&63)):r.push("=");return r.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],o=0,e=0;o<t.length;e=++o%4)0!=e&&r.push((n.indexOf(t.charAt(o-1))&Math.pow(2,-2*e+8)-1)<<2*e|n.indexOf(t.charAt(o))>>>6-2*e);return r}};t.exports=r}()},function(t,n){function r(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function o(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&r(t.slice(0,0))}/*!
* Determine if an object is a Buffer
*
* @license MIT
*/
t.exports=function(t){return null!=t&&(r(t)||o(t)||!!t._isBuffer)}},function(t,n,r){t.exports=r(1)}])});