爬虫js基础1

发布时间 2023-07-25 09:55:08作者: mjth
全国招标网
 
const Crypto = require('C://Users/lenovo/AppData/Roaming/npm/node_modules/crypto-js')

//

function maji(t) {
    var e = Crypto.enc.Utf8.parse("1qaz@wsx3e")
      , i = Crypto.DES.decrypt({
        ciphertext: Crypto.enc.Base64.parse(t)
    }, e, {
        mode: Crypto.mode.ECB,
        padding: Crypto.pad.Pkcs7
    });
    return i.toString(Crypto.enc.Utf8)
}