Commit a36a248f authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Frank Nägler
Browse files

[BUGFIX] Add missing copyright header for MD5 AMD module

This patch adds the missing copyright header of the original md5
JavaScript library.

To achieve this, the Grunt configuration must be adjusted to keep comments
beginning in a special format.

Resolves: #88465
Related: #88432
Releases: master
Change-Id: I35e5a07793273491f839e415d4deda27d1307ffb
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60852


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Frank Nägler's avatarFrank Naegler <frank.naegler@typo3.org>
Tested-by: Benjamin Kott's avatarBenjamin Kott <benjamin.kott@outlook.com>
Reviewed-by: Frank Nägler's avatarFrank Naegler <frank.naegler@typo3.org>
Reviewed-by: Benjamin Kott's avatarBenjamin Kott <benjamin.kott@outlook.com>
parent 9e819f9e
......@@ -535,7 +535,10 @@ module.exports = function (grunt) {
' *\n' +
' * The TYPO3 project - inspiring people to share!' +
'\n' +
' */'
' */',
output: {
comments: /^!/
}
},
// Generated by copy:ts_files task
files: {}
......
......@@ -11,6 +11,8 @@
* The TYPO3 project - inspiring people to share!
*/
/*! Based on http://www.webtoolkit.info/javascript_md5.html */
class Md5 {
public static hash(value: string): string {
let x;
......
......@@ -10,4 +10,5 @@
*
* The TYPO3 project - inspiring people to share!
*/
define(["require","exports"],function(n,r){"use strict";return function(){function n(){}return n.hash=function(r){var d,e,t,o,i,a,H,u,F,G;for(r=n.utf8Encode(r),d=n.convertToWordArray(r),H=1732584193,u=4023233417,F=2562383102,G=271733878,e=0;e<d.length;e+=16)t=H,o=u,i=F,a=G,H=n.FF(H,u,F,G,d[e],7,3614090360),G=n.FF(G,H,u,F,d[e+1],12,3905402710),F=n.FF(F,G,H,u,d[e+2],17,606105819),u=n.FF(u,F,G,H,d[e+3],22,3250441966),H=n.FF(H,u,F,G,d[e+4],7,4118548399),G=n.FF(G,H,u,F,d[e+5],12,1200080426),F=n.FF(F,G,H,u,d[e+6],17,2821735955),u=n.FF(u,F,G,H,d[e+7],22,4249261313),H=n.FF(H,u,F,G,d[e+8],7,1770035416),G=n.FF(G,H,u,F,d[e+9],12,2336552879),F=n.FF(F,G,H,u,d[e+10],17,4294925233),u=n.FF(u,F,G,H,d[e+11],22,2304563134),H=n.FF(H,u,F,G,d[e+12],7,1804603682),G=n.FF(G,H,u,F,d[e+13],12,4254626195),F=n.FF(F,G,H,u,d[e+14],17,2792965006),u=n.FF(u,F,G,H,d[e+15],22,1236535329),H=n.GG(H,u,F,G,d[e+1],5,4129170786),G=n.GG(G,H,u,F,d[e+6],9,3225465664),F=n.GG(F,G,H,u,d[e+11],14,643717713),u=n.GG(u,F,G,H,d[e],20,3921069994),H=n.GG(H,u,F,G,d[e+5],5,3593408605),G=n.GG(G,H,u,F,d[e+10],9,38016083),F=n.GG(F,G,H,u,d[e+15],14,3634488961),u=n.GG(u,F,G,H,d[e+4],20,3889429448),H=n.GG(H,u,F,G,d[e+9],5,568446438),G=n.GG(G,H,u,F,d[e+14],9,3275163606),F=n.GG(F,G,H,u,d[e+3],14,4107603335),u=n.GG(u,F,G,H,d[e+8],20,1163531501),H=n.GG(H,u,F,G,d[e+13],5,2850285829),G=n.GG(G,H,u,F,d[e+2],9,4243563512),F=n.GG(F,G,H,u,d[e+7],14,1735328473),u=n.GG(u,F,G,H,d[e+12],20,2368359562),H=n.HH(H,u,F,G,d[e+5],4,4294588738),G=n.HH(G,H,u,F,d[e+8],11,2272392833),F=n.HH(F,G,H,u,d[e+11],16,1839030562),u=n.HH(u,F,G,H,d[e+14],23,4259657740),H=n.HH(H,u,F,G,d[e+1],4,2763975236),G=n.HH(G,H,u,F,d[e+4],11,1272893353),F=n.HH(F,G,H,u,d[e+7],16,4139469664),u=n.HH(u,F,G,H,d[e+10],23,3200236656),H=n.HH(H,u,F,G,d[e+13],4,681279174),G=n.HH(G,H,u,F,d[e],11,3936430074),F=n.HH(F,G,H,u,d[e+3],16,3572445317),u=n.HH(u,F,G,H,d[e+6],23,76029189),H=n.HH(H,u,F,G,d[e+9],4,3654602809),G=n.HH(G,H,u,F,d[e+12],11,3873151461),F=n.HH(F,G,H,u,d[e+15],16,530742520),u=n.HH(u,F,G,H,d[e+2],23,3299628645),H=n.II(H,u,F,G,d[e],6,4096336452),G=n.II(G,H,u,F,d[e+7],10,1126891415),F=n.II(F,G,H,u,d[e+14],15,2878612391),u=n.II(u,F,G,H,d[e+5],21,4237533241),H=n.II(H,u,F,G,d[e+12],6,1700485571),G=n.II(G,H,u,F,d[e+3],10,2399980690),F=n.II(F,G,H,u,d[e+10],15,4293915773),u=n.II(u,F,G,H,d[e+1],21,2240044497),H=n.II(H,u,F,G,d[e+8],6,1873313359),G=n.II(G,H,u,F,d[e+15],10,4264355552),F=n.II(F,G,H,u,d[e+6],15,2734768916),u=n.II(u,F,G,H,d[e+13],21,1309151649),H=n.II(H,u,F,G,d[e+4],6,4149444226),G=n.II(G,H,u,F,d[e+11],10,3174756917),F=n.II(F,G,H,u,d[e+2],15,718787259),u=n.II(u,F,G,H,d[e+9],21,3951481745),H=n.addUnsigned(H,t),u=n.addUnsigned(u,o),F=n.addUnsigned(F,i),G=n.addUnsigned(G,a);return(n.wordToHex(H)+n.wordToHex(u)+n.wordToHex(F)+n.wordToHex(G)).toLowerCase()},n.rotateLeft=function(n,r){return n<<r|n>>>32-r},n.addUnsigned=function(n,r){var d=2147483648&n,e=2147483648&r,t=1073741824&n,o=1073741824&r,i=(1073741823&n)+(1073741823&r);return t&o?2147483648^i^d^e:t|o?1073741824&i?3221225472^i^d^e:1073741824^i^d^e:i^d^e},n.F=function(n,r,d){return n&r|~n&d},n.G=function(n,r,d){return n&d|r&~d},n.H=function(n,r,d){return n^r^d},n.I=function(n,r,d){return r^(n|~d)},n.FF=function(r,d,e,t,o,i,a){return r=n.addUnsigned(r,n.addUnsigned(n.addUnsigned(n.F(d,e,t),o),a)),n.addUnsigned(n.rotateLeft(r,i),d)},n.GG=function(r,d,e,t,o,i,a){return r=n.addUnsigned(r,n.addUnsigned(n.addUnsigned(n.G(d,e,t),o),a)),n.addUnsigned(n.rotateLeft(r,i),d)},n.HH=function(r,d,e,t,o,i,a){return r=n.addUnsigned(r,n.addUnsigned(n.addUnsigned(n.H(d,e,t),o),a)),n.addUnsigned(n.rotateLeft(r,i),d)},n.II=function(r,d,e,t,o,i,a){return r=n.addUnsigned(r,n.addUnsigned(n.addUnsigned(n.I(d,e,t),o),a)),n.addUnsigned(n.rotateLeft(r,i),d)},n.convertToWordArray=function(n){for(var r,d=n.length,e=d+8,t=16*((e-e%64)/64+1),o=Array(t-1),i=0,a=0;a<d;)i=a%4*8,o[r=(a-a%4)/4]=o[r]|n.charCodeAt(a)<<i,a++;return i=a%4*8,o[r=(a-a%4)/4]=o[r]|128<<i,o[t-2]=d<<3,o[t-1]=d>>>29,o},n.wordToHex=function(n){var r,d="",e="";for(r=0;r<=3;r++)d+=(e="0"+(n>>>8*r&255).toString(16)).substr(e.length-2,2);return d},n.utf8Encode=function(n){n=n.replace(/\r\n/g,"\n");for(var r="",d=0;d<n.length;d++){var e=n.charCodeAt(d);e<128?r+=String.fromCharCode(e):e>127&&e<2048?(r+=String.fromCharCode(e>>6|192),r+=String.fromCharCode(63&e|128)):(r+=String.fromCharCode(e>>12|224),r+=String.fromCharCode(e>>6&63|128),r+=String.fromCharCode(63&e|128))}return r},n}()});
\ No newline at end of file
define(["require","exports"],function(n,r){"use strict";
/*! Based on http://www.webtoolkit.info/javascript_md5.html */return function(){function n(){}return n.hash=function(r){var d,e,t,o,i,a,H,u,F,G;for(r=n.utf8Encode(r),d=n.convertToWordArray(r),H=1732584193,u=4023233417,F=2562383102,G=271733878,e=0;e<d.length;e+=16)t=H,o=u,i=F,a=G,H=n.FF(H,u,F,G,d[e],7,3614090360),G=n.FF(G,H,u,F,d[e+1],12,3905402710),F=n.FF(F,G,H,u,d[e+2],17,606105819),u=n.FF(u,F,G,H,d[e+3],22,3250441966),H=n.FF(H,u,F,G,d[e+4],7,4118548399),G=n.FF(G,H,u,F,d[e+5],12,1200080426),F=n.FF(F,G,H,u,d[e+6],17,2821735955),u=n.FF(u,F,G,H,d[e+7],22,4249261313),H=n.FF(H,u,F,G,d[e+8],7,1770035416),G=n.FF(G,H,u,F,d[e+9],12,2336552879),F=n.FF(F,G,H,u,d[e+10],17,4294925233),u=n.FF(u,F,G,H,d[e+11],22,2304563134),H=n.FF(H,u,F,G,d[e+12],7,1804603682),G=n.FF(G,H,u,F,d[e+13],12,4254626195),F=n.FF(F,G,H,u,d[e+14],17,2792965006),u=n.FF(u,F,G,H,d[e+15],22,1236535329),H=n.GG(H,u,F,G,d[e+1],5,4129170786),G=n.GG(G,H,u,F,d[e+6],9,3225465664),F=n.GG(F,G,H,u,d[e+11],14,643717713),u=n.GG(u,F,G,H,d[e],20,3921069994),H=n.GG(H,u,F,G,d[e+5],5,3593408605),G=n.GG(G,H,u,F,d[e+10],9,38016083),F=n.GG(F,G,H,u,d[e+15],14,3634488961),u=n.GG(u,F,G,H,d[e+4],20,3889429448),H=n.GG(H,u,F,G,d[e+9],5,568446438),G=n.GG(G,H,u,F,d[e+14],9,3275163606),F=n.GG(F,G,H,u,d[e+3],14,4107603335),u=n.GG(u,F,G,H,d[e+8],20,1163531501),H=n.GG(H,u,F,G,d[e+13],5,2850285829),G=n.GG(G,H,u,F,d[e+2],9,4243563512),F=n.GG(F,G,H,u,d[e+7],14,1735328473),u=n.GG(u,F,G,H,d[e+12],20,2368359562),H=n.HH(H,u,F,G,d[e+5],4,4294588738),G=n.HH(G,H,u,F,d[e+8],11,2272392833),F=n.HH(F,G,H,u,d[e+11],16,1839030562),u=n.HH(u,F,G,H,d[e+14],23,4259657740),H=n.HH(H,u,F,G,d[e+1],4,2763975236),G=n.HH(G,H,u,F,d[e+4],11,1272893353),F=n.HH(F,G,H,u,d[e+7],16,4139469664),u=n.HH(u,F,G,H,d[e+10],23,3200236656),H=n.HH(H,u,F,G,d[e+13],4,681279174),G=n.HH(G,H,u,F,d[e],11,3936430074),F=n.HH(F,G,H,u,d[e+3],16,3572445317),u=n.HH(u,F,G,H,d[e+6],23,76029189),H=n.HH(H,u,F,G,d[e+9],4,3654602809),G=n.HH(G,H,u,F,d[e+12],11,3873151461),F=n.HH(F,G,H,u,d[e+15],16,530742520),u=n.HH(u,F,G,H,d[e+2],23,3299628645),H=n.II(H,u,F,G,d[e],6,4096336452),G=n.II(G,H,u,F,d[e+7],10,1126891415),F=n.II(F,G,H,u,d[e+14],15,2878612391),u=n.II(u,F,G,H,d[e+5],21,4237533241),H=n.II(H,u,F,G,d[e+12],6,1700485571),G=n.II(G,H,u,F,d[e+3],10,2399980690),F=n.II(F,G,H,u,d[e+10],15,4293915773),u=n.II(u,F,G,H,d[e+1],21,2240044497),H=n.II(H,u,F,G,d[e+8],6,1873313359),G=n.II(G,H,u,F,d[e+15],10,4264355552),F=n.II(F,G,H,u,d[e+6],15,2734768916),u=n.II(u,F,G,H,d[e+13],21,1309151649),H=n.II(H,u,F,G,d[e+4],6,4149444226),G=n.II(G,H,u,F,d[e+11],10,3174756917),F=n.II(F,G,H,u,d[e+2],15,718787259),u=n.II(u,F,G,H,d[e+9],21,3951481745),H=n.addUnsigned(H,t),u=n.addUnsigned(u,o),F=n.addUnsigned(F,i),G=n.addUnsigned(G,a);return(n.wordToHex(H)+n.wordToHex(u)+n.wordToHex(F)+n.wordToHex(G)).toLowerCase()},n.rotateLeft=function(n,r){return n<<r|n>>>32-r},n.addUnsigned=function(n,r){var d=2147483648&n,e=2147483648&r,t=1073741824&n,o=1073741824&r,i=(1073741823&n)+(1073741823&r);return t&o?2147483648^i^d^e:t|o?1073741824&i?3221225472^i^d^e:1073741824^i^d^e:i^d^e},n.F=function(n,r,d){return n&r|~n&d},n.G=function(n,r,d){return n&d|r&~d},n.H=function(n,r,d){return n^r^d},n.I=function(n,r,d){return r^(n|~d)},n.FF=function(r,d,e,t,o,i,a){return r=n.addUnsigned(r,n.addUnsigned(n.addUnsigned(n.F(d,e,t),o),a)),n.addUnsigned(n.rotateLeft(r,i),d)},n.GG=function(r,d,e,t,o,i,a){return r=n.addUnsigned(r,n.addUnsigned(n.addUnsigned(n.G(d,e,t),o),a)),n.addUnsigned(n.rotateLeft(r,i),d)},n.HH=function(r,d,e,t,o,i,a){return r=n.addUnsigned(r,n.addUnsigned(n.addUnsigned(n.H(d,e,t),o),a)),n.addUnsigned(n.rotateLeft(r,i),d)},n.II=function(r,d,e,t,o,i,a){return r=n.addUnsigned(r,n.addUnsigned(n.addUnsigned(n.I(d,e,t),o),a)),n.addUnsigned(n.rotateLeft(r,i),d)},n.convertToWordArray=function(n){for(var r,d=n.length,e=d+8,t=16*((e-e%64)/64+1),o=Array(t-1),i=0,a=0;a<d;)i=a%4*8,o[r=(a-a%4)/4]=o[r]|n.charCodeAt(a)<<i,a++;return i=a%4*8,o[r=(a-a%4)/4]=o[r]|128<<i,o[t-2]=d<<3,o[t-1]=d>>>29,o},n.wordToHex=function(n){var r,d="",e="";for(r=0;r<=3;r++)d+=(e="0"+(n>>>8*r&255).toString(16)).substr(e.length-2,2);return d},n.utf8Encode=function(n){n=n.replace(/\r\n/g,"\n");for(var r="",d=0;d<n.length;d++){var e=n.charCodeAt(d);e<128?r+=String.fromCharCode(e):e>127&&e<2048?(r+=String.fromCharCode(e>>6|192),r+=String.fromCharCode(63&e|128)):(r+=String.fromCharCode(e>>12|224),r+=String.fromCharCode(e>>6&63|128),r+=String.fromCharCode(63&e|128))}return r},n}()});
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment