Search关键字:json.parse 网址:http://jzsc.mohurd.gov.cn/data/company

    1. var CryptoJS = require("crypto-js")
    2. function h(t) {
    3. var e = CryptoJS.enc.Hex.parse(t),
    4. n = CryptoJS.enc.Base64.stringify(e),
    5. f = CryptoJS.enc.Utf8.parse("jo8j9wGw%6HbxfFn"),
    6. m = CryptoJS.enc.Utf8.parse("0123456789ABCDEF"),
    7. a = CryptoJS.AES.decrypt(n, f, {
    8. iv: m,
    9. mode: CryptoJS.mode.CBC,
    10. padding: CryptoJS.pad.Pkcs7
    11. }),
    12. r = a.toString(CryptoJS.enc.Utf8);
    13. return r.toString()
    14. }
    15. data = "68668686"
    16. console.log(h(data))