iqiyi.js 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. function i(e, t, n, i, a, o, s) {
  2. return r(t & n | ~t & i, e, t, a, o, s)
  3. }
  4. function a(e, t, n, i, a, o, s) {
  5. return r(t & i | n & ~i, e, t, a, o, s)
  6. }
  7. function o(e, t, n, i, a, o, s) {
  8. return r(t ^ n ^ i, e, t, a, o, s)
  9. }
  10. function r(e, t, n, r, i, a) {
  11. return c(function(e, t) {
  12. return e << t | e >>> 32 - t
  13. }(c(c(t, e), c(r, a)), i), n)
  14. }
  15. function c(e, t) {
  16. var n = (65535 & e) + (65535 & t);
  17. return (e >> 16) + (t >> 16) + (n >> 16) << 16 | 65535 & n
  18. }
  19. function s(e, t, n, i, a, o, s) {
  20. return r(n ^ (t | ~i), e, t, a, o, s)
  21. }
  22. function auth (e) {
  23. return function(e) {
  24. for (var t = "0123456789abcdef", n = "", r = 0; r < 4 * e.length; r++)
  25. n += t.charAt(e[r >> 2] >> r % 4 * 8 + 4 & 15) + t.charAt(e[r >> 2] >> r % 4 * 8 & 15);
  26. return n
  27. }(function(e, t) {
  28. e[t >> 5] |= 128 << t % 32,
  29. e[14 + (t + 64 >>> 9 << 4)] = t;
  30. for (var n = 1732584193, r = -271733879, u = -1732584194, d = 271733878, l = 0; l < e.length; l += 16) {
  31. var f = n
  32. , h = r
  33. , p = u
  34. , _ = d;
  35. n = i(n, r, u, d, e[l + 0], 7, -680876936),
  36. d = i(d, n, r, u, e[l + 1], 12, -389564586),
  37. u = i(u, d, n, r, e[l + 2], 17, 606105819),
  38. r = i(r, u, d, n, e[l + 3], 22, -1044525330),
  39. n = i(n, r, u, d, e[l + 4], 7, -176418897),
  40. d = i(d, n, r, u, e[l + 5], 12, 1200080426),
  41. u = i(u, d, n, r, e[l + 6], 17, -1473231341),
  42. r = i(r, u, d, n, e[l + 7], 22, -45705983),
  43. n = i(n, r, u, d, e[l + 8], 7, 1770035416),
  44. d = i(d, n, r, u, e[l + 9], 12, -1958414417),
  45. u = i(u, d, n, r, e[l + 10], 17, -42063),
  46. r = i(r, u, d, n, e[l + 11], 22, -1990404162),
  47. n = i(n, r, u, d, e[l + 12], 7, 1804603682),
  48. d = i(d, n, r, u, e[l + 13], 12, -40341101),
  49. u = i(u, d, n, r, e[l + 14], 17, -1502002290),
  50. n = a(n, r = i(r, u, d, n, e[l + 15], 22, 1236535329), u, d, e[l + 1], 5, -165796510),
  51. d = a(d, n, r, u, e[l + 6], 9, -1069501632),
  52. u = a(u, d, n, r, e[l + 11], 14, 643717713),
  53. r = a(r, u, d, n, e[l + 0], 20, -373897302),
  54. n = a(n, r, u, d, e[l + 5], 5, -701558691),
  55. d = a(d, n, r, u, e[l + 10], 9, 38016083),
  56. u = a(u, d, n, r, e[l + 15], 14, -660478335),
  57. r = a(r, u, d, n, e[l + 4], 20, -405537848),
  58. n = a(n, r, u, d, e[l + 9], 5, 568446438),
  59. d = a(d, n, r, u, e[l + 14], 9, -1019803690),
  60. u = a(u, d, n, r, e[l + 3], 14, -187363961),
  61. r = a(r, u, d, n, e[l + 8], 20, 1163531501),
  62. n = a(n, r, u, d, e[l + 13], 5, -1444681467),
  63. d = a(d, n, r, u, e[l + 2], 9, -51403784),
  64. u = a(u, d, n, r, e[l + 7], 14, 1735328473),
  65. n = o(n, r = a(r, u, d, n, e[l + 12], 20, -1926607734), u, d, e[l + 5], 4, -378558),
  66. d = o(d, n, r, u, e[l + 8], 11, -2022574463),
  67. u = o(u, d, n, r, e[l + 11], 16, 1839030562),
  68. r = o(r, u, d, n, e[l + 14], 23, -35309556),
  69. n = o(n, r, u, d, e[l + 1], 4, -1530992060),
  70. d = o(d, n, r, u, e[l + 4], 11, 1272893353),
  71. u = o(u, d, n, r, e[l + 7], 16, -155497632),
  72. r = o(r, u, d, n, e[l + 10], 23, -1094730640),
  73. n = o(n, r, u, d, e[l + 13], 4, 681279174),
  74. d = o(d, n, r, u, e[l + 0], 11, -358537222),
  75. u = o(u, d, n, r, e[l + 3], 16, -722521979),
  76. r = o(r, u, d, n, e[l + 6], 23, 76029189),
  77. n = o(n, r, u, d, e[l + 9], 4, -640364487),
  78. d = o(d, n, r, u, e[l + 12], 11, -421815835),
  79. u = o(u, d, n, r, e[l + 15], 16, 530742520),
  80. n = s(n, r = o(r, u, d, n, e[l + 2], 23, -995338651), u, d, e[l + 0], 6, -198630844),
  81. d = s(d, n, r, u, e[l + 7], 10, 1126891415),
  82. u = s(u, d, n, r, e[l + 14], 15, -1416354905),
  83. r = s(r, u, d, n, e[l + 5], 21, -57434055),
  84. n = s(n, r, u, d, e[l + 12], 6, 1700485571),
  85. d = s(d, n, r, u, e[l + 3], 10, -1894986606),
  86. u = s(u, d, n, r, e[l + 10], 15, -1051523),
  87. r = s(r, u, d, n, e[l + 1], 21, -2054922799),
  88. n = s(n, r, u, d, e[l + 8], 6, 1873313359),
  89. d = s(d, n, r, u, e[l + 15], 10, -30611744),
  90. u = s(u, d, n, r, e[l + 6], 15, -1560198380),
  91. r = s(r, u, d, n, e[l + 13], 21, 1309151649),
  92. n = s(n, r, u, d, e[l + 4], 6, -145523070),
  93. d = s(d, n, r, u, e[l + 11], 10, -1120210379),
  94. u = s(u, d, n, r, e[l + 2], 15, 718787259),
  95. r = s(r, u, d, n, e[l + 9], 21, -343485551),
  96. n = c(n, f),
  97. r = c(r, h),
  98. u = c(u, p),
  99. d = c(d, _)
  100. }
  101. return Array(n, r, u, d)
  102. }(function(e) {
  103. for (var t = Array(), n = 0; n < 8 * e.length; n += 8)
  104. t[n >> 5] |= (255 & e.charCodeAt(n / 8)) << n % 32;
  105. return t
  106. }(e), 8 * e.length))
  107. }