(time, stk, type, url)
| 429 | } |
| 430 | |
| 431 | function decrypt(time, stk, type, url) { |
| 432 | stk = stk || (url ? getUrlQueryParams(url, '_stk') : '') |
| 433 | if (stk) { |
| 434 | const timestamp = format("yyyyMMddhhmmssSSS", time); |
| 435 | const hash1 = $.genKey($.token, $.fp.toString(), timestamp.toString(), $.appId.toString(), $.CryptoJS).toString($.CryptoJS.enc.Hex); |
| 436 | let st = ''; |
| 437 | stk.split(',').map((item, index) => { |
| 438 | st += `${item}:${getUrlQueryParams(url, item)}${index === stk.split(',').length -1 ? '' : '&'}`; |
| 439 | }) |
| 440 | const hash2 = $.CryptoJS.HmacSHA256(st, hash1.toString()).toString($.CryptoJS.enc.Hex); |
| 441 | return encodeURIComponent(["".concat(timestamp.toString()), "".concat($.fp.toString()), "".concat($.appId.toString()), "".concat($.token), "".concat(hash2)].join(";")) |
| 442 | } else { |
| 443 | return '20210121201915905;8410347712257161;10001;tk01wa5bd1b5fa8nK2drQ3o3azhyhItRUb1DBNK57SQnGlXj9kmaV/iQlhKdXuz1RME5H/+NboJj8FAS9N+FcoAbf6cB;3c567a551a8e1c905a8d676d69e873c0bc7adbd8277957f90e95ab231e1800f2' |
| 444 | } |
| 445 | } |
| 446 | |
| 447 | function getRandomIDPro() { |
| 448 | var e, |
no test coverage detected