-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmd5.min.js
3 lines (2 loc) · 3.54 KB
/
md5.min.js
1
2
3
/*! author:Mr Qiu , date:2017-07-03 */
var MD5=function(r){function n(r,n){return r<<n|r>>>32-n}function t(r,n){var t,o,e,u,f;return e=2147483648&r,u=2147483648&n,t=1073741824&r,o=1073741824&n,f=(1073741823&r)+(1073741823&n),t&o?2147483648^f^e^u:t|o?1073741824&f?3221225472^f^e^u:1073741824^f^e^u:f^e^u}function o(r,n,t){return r&n|~r&t}function e(r,n,t){return r&t|n&~t}function u(r,n,t){return r^n^t}function f(r,n,t){return n^(r|~t)}function i(r,e,u,f,i,a,c){return r=t(r,t(t(o(e,u,f),i),c)),t(n(r,a),e)}function a(r,o,u,f,i,a,c){return r=t(r,t(t(e(o,u,f),i),c)),t(n(r,a),o)}function c(r,o,e,f,i,a,c){return r=t(r,t(t(u(o,e,f),i),c)),t(n(r,a),o)}function C(r,o,e,u,i,a,c){return r=t(r,t(t(f(o,e,u),i),c)),t(n(r,a),o)}function g(r){var n,t="",o="";for(n=0;n<=3;n++)t+=(o="0"+(r>>>8*n&255).toString(16)).substr(o.length-2,2);return t}var h,d,v,S,m,l,A,s,y,b=Array();for(b=function(r){for(var n,t=r.length,o=t+8,e=16*((o-o%64)/64+1),u=Array(e-1),f=0,i=0;i<t;)f=i%4*8,u[n=(i-i%4)/4]=u[n]|r.charCodeAt(i)<<f,i++;return n=(i-i%4)/4,f=i%4*8,u[n]=u[n]|128<<f,u[e-2]=t<<3,u[e-1]=t>>>29,u}(r=function(r){r=r.replace(/\r\n/g,"\n");for(var n="",t=0;t<r.length;t++){var o=r.charCodeAt(t);o<128?n+=String.fromCharCode(o):o>127&&o<2048?(n+=String.fromCharCode(o>>6|192),n+=String.fromCharCode(63&o|128)):(n+=String.fromCharCode(o>>12|224),n+=String.fromCharCode(o>>6&63|128),n+=String.fromCharCode(63&o|128))}return n}(r)),l=1732584193,A=4023233417,s=2562383102,y=271733878,h=0;h<b.length;h+=16)d=l,v=A,S=s,m=y,A=C(A=C(A=C(A=C(A=c(A=c(A=c(A=c(A=a(A=a(A=a(A=a(A=i(A=i(A=i(A=i(A,s=i(s,y=i(y,l=i(l,A,s,y,b[h+0],7,3614090360),A,s,b[h+1],12,3905402710),l,A,b[h+2],17,606105819),y,l,b[h+3],22,3250441966),s=i(s,y=i(y,l=i(l,A,s,y,b[h+4],7,4118548399),A,s,b[h+5],12,1200080426),l,A,b[h+6],17,2821735955),y,l,b[h+7],22,4249261313),s=i(s,y=i(y,l=i(l,A,s,y,b[h+8],7,1770035416),A,s,b[h+9],12,2336552879),l,A,b[h+10],17,4294925233),y,l,b[h+11],22,2304563134),s=i(s,y=i(y,l=i(l,A,s,y,b[h+12],7,1804603682),A,s,b[h+13],12,4254626195),l,A,b[h+14],17,2792965006),y,l,b[h+15],22,1236535329),s=a(s,y=a(y,l=a(l,A,s,y,b[h+1],5,4129170786),A,s,b[h+6],9,3225465664),l,A,b[h+11],14,643717713),y,l,b[h+0],20,3921069994),s=a(s,y=a(y,l=a(l,A,s,y,b[h+5],5,3593408605),A,s,b[h+10],9,38016083),l,A,b[h+15],14,3634488961),y,l,b[h+4],20,3889429448),s=a(s,y=a(y,l=a(l,A,s,y,b[h+9],5,568446438),A,s,b[h+14],9,3275163606),l,A,b[h+3],14,4107603335),y,l,b[h+8],20,1163531501),s=a(s,y=a(y,l=a(l,A,s,y,b[h+13],5,2850285829),A,s,b[h+2],9,4243563512),l,A,b[h+7],14,1735328473),y,l,b[h+12],20,2368359562),s=c(s,y=c(y,l=c(l,A,s,y,b[h+5],4,4294588738),A,s,b[h+8],11,2272392833),l,A,b[h+11],16,1839030562),y,l,b[h+14],23,4259657740),s=c(s,y=c(y,l=c(l,A,s,y,b[h+1],4,2763975236),A,s,b[h+4],11,1272893353),l,A,b[h+7],16,4139469664),y,l,b[h+10],23,3200236656),s=c(s,y=c(y,l=c(l,A,s,y,b[h+13],4,681279174),A,s,b[h+0],11,3936430074),l,A,b[h+3],16,3572445317),y,l,b[h+6],23,76029189),s=c(s,y=c(y,l=c(l,A,s,y,b[h+9],4,3654602809),A,s,b[h+12],11,3873151461),l,A,b[h+15],16,530742520),y,l,b[h+2],23,3299628645),s=C(s,y=C(y,l=C(l,A,s,y,b[h+0],6,4096336452),A,s,b[h+7],10,1126891415),l,A,b[h+14],15,2878612391),y,l,b[h+5],21,4237533241),s=C(s,y=C(y,l=C(l,A,s,y,b[h+12],6,1700485571),A,s,b[h+3],10,2399980690),l,A,b[h+10],15,4293915773),y,l,b[h+1],21,2240044497),s=C(s,y=C(y,l=C(l,A,s,y,b[h+8],6,1873313359),A,s,b[h+15],10,4264355552),l,A,b[h+6],15,2734768916),y,l,b[h+13],21,1309151649),s=C(s,y=C(y,l=C(l,A,s,y,b[h+4],6,4149444226),A,s,b[h+11],10,3174756917),l,A,b[h+2],15,718787259),y,l,b[h+9],21,3951481745),l=t(l,d),A=t(A,v),s=t(s,S),y=t(y,m);return(g(l)+g(A)+g(s)+g(y)).toLowerCase()};