V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
gebishushu
V2EX  ›  问与答

这个加密方式能帮我看下吗?

  •  
  •   gebishushu · 21 天前 · 790 次点击

    已知:

    params:"j4ELGzq6Z4" t:1716837625162 secret_key:"FIKv5Tr2VYRh0Nzs"

    sign 算下来的结果是:3f73a96d9d051ac86a7e466494b2c546

    能知道是如何算的吗?

    4 条回复    2024-05-28 12:32:47 +08:00
    gebishushu
        1
    gebishushu  
    OP
       21 天前
    params= j4ELGzq6Z41716837625162FIKv5Tr2VYRh0Nzs

    拼接后是这样的,然后不知道如何获得 sign 了
    gebishushu
        2
    gebishushu  
    OP
       21 天前
    js 找了很变没找到合适的

    methods: {
    getToken: function() {
    var e = this,
    t = this.RondomPass(10),
    n = (new Date).getTime(),
    o = (0, a.default)((0, a.default)("params=".concat(t, "t=").concat(n)) + "FIKv5Tr2VYRh0Nzs");
    this.$ajax.post(this.$path.HOSTNAME + "/kami/api/getToken", {
    params: t,
    t: n,
    sign: o
    }).then((function(t) {
    e.timer = setTimeout((function() {
    e.getToken()
    }), 85e4),
    uni.setStorageSync("token", t.data.token)
    }))
    },
    RondomPass: function(e) {
    for (var t = new Array, n = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "a", "B", "b", "C", "c", "D", "d", "E", "e", "F", "f", "G", "g", "H", "h", "I", "i", "J", "j", "K", "k", "L", "l", "M", "m", "N", "n", "O", "o", "P", "p", "Q", "q", "R", "r", "S", "s", "T", "t", "U", "u", "V", "v", "W", "w", "X", "x", "Y", "y", "Z", "z"), o = "", a = 0; a < e; a++) {
    var r = Math.floor(62 * Math.random());
    t[a] = n[r],
    o += n[r]
    }
    return o
    }
    }

    代码发上来大家分析下
    hogus
        3
    hogus  
       21 天前
    md5(md5(params=j4ELGzq6Z4t=1716837625162)+FIKv5Tr2VYRh0Nzs)
    gebishushu
        4
    gebishushu  
    OP
       21 天前
    @hogus nb 确实这样,厉害啊你
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2934 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 13:07 · PVG 21:07 · LAX 06:07 · JFK 09:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.