{"ScriptPreparationCode":" var md5cycle = function(x, k) {\r\n var a = x[0],\r\n b = x[1],\r\n c = x[2],\r\n d = x[3];\r\n\r\n a = ff(a, b, c, d, k[0], 7, -680876936);\r\n d = ff(d, a, b, c, k[1], 12, -389564586);\r\n c = ff(c, d, a, b, k[2], 17, 606105819);\r\n b = ff(b, c, d, a, k[3], 22, -1044525330);\r\n a = ff(a, b, c, d, k[4], 7, -176418897);\r\n d = ff(d, a, b, c, k[5], 12, 1200080426);\r\n c = ff(c, d, a, b, k[6], 17, -1473231341);\r\n b = ff(b, c, d, a, k[7], 22, -45705983);\r\n a = ff(a, b, c, d, k[8], 7, 1770035416);\r\n d = ff(d, a, b, c, k[9], 12, -1958414417);\r\n c = ff(c, d, a, b, k[10], 17, -42063);\r\n b = ff(b, c, d, a, k[11], 22, -1990404162);\r\n a = ff(a, b, c, d, k[12], 7, 1804603682);\r\n d = ff(d, a, b, c, k[13], 12, -40341101);\r\n c = ff(c, d, a, b, k[14], 17, -1502002290);\r\n b = ff(b, c, d, a, k[15], 22, 1236535329);\r\n\r\n a = gg(a, b, c, d, k[1], 5, -165796510);\r\n d = gg(d, a, b, c, k[6], 9, -1069501632);\r\n c = gg(c, d, a, b, k[11], 14, 643717713);\r\n b = gg(b, c, d, a, k[0], 20, -373897302);\r\n a = gg(a, b, c, d, k[5], 5, -701558691);\r\n d = gg(d, a, b, c, k[10], 9, 38016083);\r\n c = gg(c, d, a, b, k[15], 14, -660478335);\r\n b = gg(b, c, d, a, k[4], 20, -405537848);\r\n a = gg(a, b, c, d, k[9], 5, 568446438);\r\n d = gg(d, a, b, c, k[14], 9, -1019803690);\r\n c = gg(c, d, a, b, k[3], 14, -187363961);\r\n b = gg(b, c, d, a, k[8], 20, 1163531501);\r\n a = gg(a, b, c, d, k[13], 5, -1444681467);\r\n d = gg(d, a, b, c, k[2], 9, -51403784);\r\n c = gg(c, d, a, b, k[7], 14, 1735328473);\r\n b = gg(b, c, d, a, k[12], 20, -1926607734);\r\n\r\n a = hh(a, b, c, d, k[5], 4, -378558);\r\n d = hh(d, a, b, c, k[8], 11, -2022574463);\r\n c = hh(c, d, a, b, k[11], 16, 1839030562);\r\n b = hh(b, c, d, a, k[14], 23, -35309556);\r\n a = hh(a, b, c, d, k[1], 4, -1530992060);\r\n d = hh(d, a, b, c, k[4], 11, 1272893353);\r\n c = hh(c, d, a, b, k[7], 16, -155497632);\r\n b = hh(b, c, d, a, k[10], 23, -1094730640);\r\n a = hh(a, b, c, d, k[13], 4, 681279174);\r\n d = hh(d, a, b, c, k[0], 11, -358537222);\r\n c = hh(c, d, a, b, k[3], 16, -722521979);\r\n b = hh(b, c, d, a, k[6], 23, 76029189);\r\n a = hh(a, b, c, d, k[9], 4, -640364487);\r\n d = hh(d, a, b, c, k[12], 11, -421815835);\r\n c = hh(c, d, a, b, k[15], 16, 530742520);\r\n b = hh(b, c, d, a, k[2], 23, -995338651);\r\n\r\n a = ii(a, b, c, d, k[0], 6, -198630844);\r\n d = ii(d, a, b, c, k[7], 10, 1126891415);\r\n c = ii(c, d, a, b, k[14], 15, -1416354905);\r\n b = ii(b, c, d, a, k[5], 21, -57434055);\r\n a = ii(a, b, c, d, k[12], 6, 1700485571);\r\n d = ii(d, a, b, c, k[3], 10, -1894986606);\r\n c = ii(c, d, a, b, k[10], 15, -1051523);\r\n b = ii(b, c, d, a, k[1], 21, -2054922799);\r\n a = ii(a, b, c, d, k[8], 6, 1873313359);\r\n d = ii(d, a, b, c, k[15], 10, -30611744);\r\n c = ii(c, d, a, b, k[6], 15, -1560198380);\r\n b = ii(b, c, d, a, k[13], 21, 1309151649);\r\n a = ii(a, b, c, d, k[4], 6, -145523070);\r\n d = ii(d, a, b, c, k[11], 10, -1120210379);\r\n c = ii(c, d, a, b, k[2], 15, 718787259);\r\n b = ii(b, c, d, a, k[9], 21, -343485551);\r\n\r\n x[0] = add32(a, x[0]);\r\n x[1] = add32(b, x[1]);\r\n x[2] = add32(c, x[2]);\r\n x[3] = add32(d, x[3]);\r\n\r\n }\r\n\r\n var cmn = function(q, a, b, x, s, t) {\r\n a = add32(add32(a, q), add32(x, t));\r\n return add32((a \u003C\u003C s) | (a \u003E\u003E\u003E (32 - s)), b);\r\n }\r\n\r\n var ff = function(a, b, c, d, x, s, t) {\r\n return cmn((b \u0026 c) | ((~b) \u0026 d), a, b, x, s, t);\r\n }\r\n\r\n var gg = function(a, b, c, d, x, s, t) {\r\n return cmn((b \u0026 d) | (c \u0026 (~d)), a, b, x, s, t);\r\n }\r\n\r\n var hh = function(a, b, c, d, x, s, t) {\r\n return cmn(b ^ c ^ d, a, b, x, s, t);\r\n }\r\n\r\n var ii = function(a, b, c, d, x, s, t) {\r\n return cmn(c ^ (b | (~d)), a, b, x, s, t);\r\n }\r\n\r\n var md51 = function(s) {\r\n var txt = \u0027\u0027,\r\n n = s.length,\r\n state = [1732584193, -271733879, -1732584194, 271733878],\r\n i;\r\n for (i = 64; i \u003C= s.length; i \u002B= 64) {\r\n md5cycle(state, md5blk(s.substring(i - 64, i)));\r\n }\r\n s = s.substring(i - 64);\r\n var tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\r\n for (i = 0; i \u003C s.length; i\u002B\u002B)\r\n tail[i \u003E\u003E 2] |= s.charCodeAt(i) \u003C\u003C ((i % 4) \u003C\u003C 3);\r\n tail[i \u003E\u003E 2] |= 0x80 \u003C\u003C ((i % 4) \u003C\u003C 3);\r\n if (i \u003E 55) {\r\n md5cycle(state, tail);\r\n for (i = 0; i \u003C 16; i\u002B\u002B) tail[i] = 0;\r\n }\r\n tail[14] = n * 8;\r\n md5cycle(state, tail);\r\n return state;\r\n }\r\n var md5blk = function(s) {\r\n var md5blks = [],\r\n i;\r\n for (i = 0; i \u003C 64; i \u002B= 4) {\r\n md5blks[i \u003E\u003E 2] = s.charCodeAt(i) \u002B (s.charCodeAt(i \u002B 1) \u003C\u003C 8) \u002B (s.charCodeAt(i \u002B 2) \u003C\u003C 16) \u002B (s.charCodeAt(i \u002B 3) \u003C\u003C 24);\r\n }\r\n return md5blks;\r\n }\r\n\r\n var hex_chr = \u00270123456789abcdef\u0027.split(\u0027\u0027);\r\n\r\n var rhex = function(n) {\r\n var s = \u0027\u0027,\r\n j = 0;\r\n for (; j \u003C 4; j\u002B\u002B)\r\n s \u002B= hex_chr[(n \u003E\u003E (j * 8 \u002B 4)) \u0026 0x0F] \u002B hex_chr[(n \u003E\u003E (j * 8)) \u0026 0x0F];\r\n return s;\r\n }\r\n\r\n var hex = function(x) {\r\n for (var i = 0; i \u003C x.length; i\u002B\u002B)\r\n x[i] = rhex(x[i]);\r\n return x.join(\u0027\u0027);\r\n }\r\n\r\n var md5 = function(s) {\r\n return hex(md51(s));\r\n }\r\n\r\n var add32 = function(a, b) {\r\n return (a \u002B b) \u0026 0xFFFFFFFF;\r\n }\r\n\r\n if (md5(\u0027hello\u0027) != \u00275d41402abc4b2a76b9719d911017c592\u0027) {\r\n add32 = function(x, y) {\r\n var lsw = (x \u0026 0xFFFF) \u002B (y \u0026 0xFFFF),\r\n msw = (x \u003E\u003E 16) \u002B (y \u003E\u003E 16) \u002B (lsw \u003E\u003E 16);\r\n return (msw \u003C\u003C 16) | (lsw \u0026 0xFFFF);\r\n }\r\n }\r\n\r\n function md5_new(inputString) {\r\n var hc = \u00220123456789abcdef\u0022;\r\n\r\n function rh(n) {\r\n var j, s = \u0022\u0022;\r\n for (j = 0; j \u003C= 3; j\u002B\u002B) s \u002B= hc.charAt((n \u003E\u003E (j * 8 \u002B 4)) \u0026 0x0F) \u002B hc.charAt((n \u003E\u003E (j * 8)) \u0026 0x0F);\r\n return s;\r\n }\r\n\r\n function ad(x, y) {\r\n var l = (x \u0026 0xFFFF) \u002B (y \u0026 0xFFFF);\r\n var m = (x \u003E\u003E 16) \u002B (y \u003E\u003E 16) \u002B (l \u003E\u003E 16);\r\n return (m \u003C\u003C 16) | (l \u0026 0xFFFF);\r\n }\r\n\r\n function rl(n, c) {\r\n return (n \u003C\u003C c) | (n \u003E\u003E\u003E (32 - c));\r\n }\r\n\r\n function cm(q, a, b, x, s, t) {\r\n return ad(rl(ad(ad(a, q), ad(x, t)), s), b);\r\n }\r\n\r\n function ff(a, b, c, d, x, s, t) {\r\n return cm((b \u0026 c) | ((~b) \u0026 d), a, b, x, s, t);\r\n }\r\n\r\n function gg(a, b, c, d, x, s, t) {\r\n return cm((b \u0026 d) | (c \u0026 (~d)), a, b, x, s, t);\r\n }\r\n\r\n function hh(a, b, c, d, x, s, t) {\r\n return cm(b ^ c ^ d, a, b, x, s, t);\r\n }\r\n\r\n function ii(a, b, c, d, x, s, t) {\r\n return cm(c ^ (b | (~d)), a, b, x, s, t);\r\n }\r\n\r\n function sb(x) {\r\n var i;\r\n var nblk = ((x.length \u002B 8) \u003E\u003E 6) \u002B 1;\r\n var blks = new Array(nblk * 16);\r\n for (i = 0; i \u003C nblk * 16; i\u002B\u002B) blks[i] = 0;\r\n for (i = 0; i \u003C x.length; i\u002B\u002B) blks[i \u003E\u003E 2] |= x.charCodeAt(i) \u003C\u003C ((i % 4) * 8);\r\n blks[i \u003E\u003E 2] |= 0x80 \u003C\u003C ((i % 4) * 8);\r\n blks[nblk * 16 - 2] = x.length * 8;\r\n return blks;\r\n }\r\n var i, x = sb(\u0022\u0022 \u002B inputString),\r\n a = 1732584193,\r\n b = -271733879,\r\n c = -1732584194,\r\n d = 271733878,\r\n olda, oldb, oldc, oldd;\r\n for (i = 0; i \u003C x.length; i \u002B= 16) {\r\n olda = a;\r\n oldb = b;\r\n oldc = c;\r\n oldd = d;\r\n a = ff(a, b, c, d, x[i \u002B 0], 7, -680876936);\r\n d = ff(d, a, b, c, x[i \u002B 1], 12, -389564586);\r\n c = ff(c, d, a, b, x[i \u002B 2], 17, 606105819);\r\n b = ff(b, c, d, a, x[i \u002B 3], 22, -1044525330);\r\n a = ff(a, b, c, d, x[i \u002B 4], 7, -176418897);\r\n d = ff(d, a, b, c, x[i \u002B 5], 12, 1200080426);\r\n c = ff(c, d, a, b, x[i \u002B 6], 17, -1473231341);\r\n b = ff(b, c, d, a, x[i \u002B 7], 22, -45705983);\r\n a = ff(a, b, c, d, x[i \u002B 8], 7, 1770035416);\r\n d = ff(d, a, b, c, x[i \u002B 9], 12, -1958414417);\r\n c = ff(c, d, a, b, x[i \u002B 10], 17, -42063);\r\n b = ff(b, c, d, a, x[i \u002B 11], 22, -1990404162);\r\n a = ff(a, b, c, d, x[i \u002B 12], 7, 1804603682);\r\n d = ff(d, a, b, c, x[i \u002B 13], 12, -40341101);\r\n c = ff(c, d, a, b, x[i \u002B 14], 17, -1502002290);\r\n b = ff(b, c, d, a, x[i \u002B 15], 22, 1236535329);\r\n a = gg(a, b, c, d, x[i \u002B 1], 5, -165796510);\r\n d = gg(d, a, b, c, x[i \u002B 6], 9, -1069501632);\r\n c = gg(c, d, a, b, x[i \u002B 11], 14, 643717713);\r\n b = gg(b, c, d, a, x[i \u002B 0], 20, -373897302);\r\n a = gg(a, b, c, d, x[i \u002B 5], 5, -701558691);\r\n d = gg(d, a, b, c, x[i \u002B 10], 9, 38016083);\r\n c = gg(c, d, a, b, x[i \u002B 15], 14, -660478335);\r\n b = gg(b, c, d, a, x[i \u002B 4], 20, -405537848);\r\n a = gg(a, b, c, d, x[i \u002B 9], 5, 568446438);\r\n d = gg(d, a, b, c, x[i \u002B 14], 9, -1019803690);\r\n c = gg(c, d, a, b, x[i \u002B 3], 14, -187363961);\r\n b = gg(b, c, d, a, x[i \u002B 8], 20, 1163531501);\r\n a = gg(a, b, c, d, x[i \u002B 13], 5, -1444681467);\r\n d = gg(d, a, b, c, x[i \u002B 2], 9, -51403784);\r\n c = gg(c, d, a, b, x[i \u002B 7], 14, 1735328473);\r\n b = gg(b, c, d, a, x[i \u002B 12], 20, -1926607734);\r\n a = hh(a, b, c, d, x[i \u002B 5], 4, -378558);\r\n d = hh(d, a, b, c, x[i \u002B 8], 11, -2022574463);\r\n c = hh(c, d, a, b, x[i \u002B 11], 16, 1839030562);\r\n b = hh(b, c, d, a, x[i \u002B 14], 23, -35309556);\r\n a = hh(a, b, c, d, x[i \u002B 1], 4, -1530992060);\r\n d = hh(d, a, b, c, x[i \u002B 4], 11, 1272893353);\r\n c = hh(c, d, a, b, x[i \u002B 7], 16, -155497632);\r\n b = hh(b, c, d, a, x[i \u002B 10], 23, -1094730640);\r\n a = hh(a, b, c, d, x[i \u002B 13], 4, 681279174);\r\n d = hh(d, a, b, c, x[i \u002B 0], 11, -358537222);\r\n c = hh(c, d, a, b, x[i \u002B 3], 16, -722521979);\r\n b = hh(b, c, d, a, x[i \u002B 6], 23, 76029189);\r\n a = hh(a, b, c, d, x[i \u002B 9], 4, -640364487);\r\n d = hh(d, a, b, c, x[i \u002B 12], 11, -421815835);\r\n c = hh(c, d, a, b, x[i \u002B 15], 16, 530742520);\r\n b = hh(b, c, d, a, x[i \u002B 2], 23, -995338651);\r\n a = ii(a, b, c, d, x[i \u002B 0], 6, -198630844);\r\n d = ii(d, a, b, c, x[i \u002B 7], 10, 1126891415);\r\n c = ii(c, d, a, b, x[i \u002B 14], 15, -1416354905);\r\n b = ii(b, c, d, a, x[i \u002B 5], 21, -57434055);\r\n a = ii(a, b, c, d, x[i \u002B 12], 6, 1700485571);\r\n d = ii(d, a, b, c, x[i \u002B 3], 10, -1894986606);\r\n c = ii(c, d, a, b, x[i \u002B 10], 15, -1051523);\r\n b = ii(b, c, d, a, x[i \u002B 1], 21, -2054922799);\r\n a = ii(a, b, c, d, x[i \u002B 8], 6, 1873313359);\r\n d = ii(d, a, b, c, x[i \u002B 15], 10, -30611744);\r\n c = ii(c, d, a, b, x[i \u002B 6], 15, -1560198380);\r\n b = ii(b, c, d, a, x[i \u002B 13], 21, 1309151649);\r\n a = ii(a, b, c, d, x[i \u002B 4], 6, -145523070);\r\n d = ii(d, a, b, c, x[i \u002B 11], 10, -1120210379);\r\n c = ii(c, d, a, b, x[i \u002B 2], 15, 718787259);\r\n b = ii(b, c, d, a, x[i \u002B 9], 21, -343485551);\r\n a = ad(a, olda);\r\n b = ad(b, oldb);\r\n c = ad(c, oldc);\r\n d = ad(d, oldd);\r\n }\r\n return rh(a) \u002B rh(b) \u002B rh(c) \u002B rh(d);\r\n }","TestCases":[{"Name":"Myers","Code":"var x = md5(\u0022Hello\u0022);","IsDeferred":false},{"Name":"New","Code":"var x = md5_new(\u0022Hello\u0022);","IsDeferred":false}]}