逆向日期:2024.02.20
使用工具:Node.js、python
加密工具:Crypto-js标准库
文章全程已做去敏处理!!! 【需要做的可联系我】
AES解密处理(直接解密即可)(crypto-js.js 标准算法):在线AES加解密工具
【token.js】
- // 安装 crypto 加解密包
- // npm install crypto-js --save
- const CryptoJS = require('crypto-js')
-
- function token(){
- o = '/api/movie'
- t = Math.round((new Date).getTime() / 1e3).toString()
- data = [o,t].join(',')
- c = CryptoJS.SHA1(data).toString()
- data = data = [c,t].join(',')
- a = CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(data))
- return a
- }
【token.py】 此处的密文需要经过AES加解密工具工具后得出python代码
JXtvLmP9Dt9/JkkmxV1w1+V6TviFL10uR2oSMSsPES7brQRzziFlUrZ2Vdyapj9OTMw8bGgH1pApGTbedfjZKDGfc9jnv4z3sNWq3wPuJm2RQVX0Hj2OLXG+PExHncPsS+XjJnIJXG9C3fdpaGTuCG6RLC0kd7mjrxvknb2Rvc0/OQPugJWhuK2gRiF6i5S+4mlmZzIt/LQsDfl1yaFpIGTX620aXDR3C+zwLetYIWlYAeEKzFTgOBl/f+GX2QykcCtCBICUmsVnKC2joTY8gfnk/z3GUQrYGTluPqvpIpMKVeGtJJTJXYVRRXdP45yTS2lqsv32AtMFU1xGEWfn55Ghunhf6HNVVCjBlxT4+6lDEbEDUmHYdQ0sQZ/NKPFlsUtmi6iVYFIFyEoaXTeIxes2ZGCJeChofQ/tVEnpUsz4UuJapn5of7ZuW7tS3g6G/0sYtJ3DF96dTfIHNWPYESUeLSSIT2IO3NovxuyTgDx1wg0a9wl126jHi0CGmNcADMBGq8cAQZqlAmZ1CrtNwIVnsyM57cgWiJcSGjnfbPbA7paFIqJa7e8hQOxlX57gVrvh9nvkEH+mfGAVId6NiIPrPgdJ+wW0CjIp4HEJCB9o5hoWPGcQ6x07vK8a8CEKVRjBGcW0+e1iWsYURFmd46U2Y8bAftXreo69kK/Pro9oYs1Y0z6u/3OFqSt88bWpf0oXogFakr14Mrh9xgevnEAAyzXsbro0hcEC+1XWv3HOqPDES/3hBIJLRo0MRmYTfi8+XdfDW9ZQYHntv+AQd+BNlfGAlsh6G5jVC9QO9NooaLaw6GeH3SB3fE+Byp4p6VeJec5Nf3Z83Ogu2oTUUgqexXuRMLIP3NkR4pUCmNqdN+iPU0YMFHSa4xARZ8aZgWrtJ2I6Dc51iIQ2ZBVoRA==