新版某书X-s,X-t签名算法研究2023-5-16

文章仅供参考,禁止用于非法途径

近几天,某书更新了X-s,X-t算法。


一、打开Chrome浏览器,F12,搜索X-s定位到如下位置:

 二、整段抠下来,在本地浏览器运行:

1、html测试代码:

<!DOCTYPE html> 
<html>
<head>
    <meta charset="utf-8" />
    <title>新版X-s,X-t算法测试,技术支持:V:byc6352</title>
    <script src="xhsign.js"></script>
</head>
<body>
    <form>
        <input type="button" id="addButton" value="ClickMe!">

    </form>
    <script>
        window.onload = function () {
          var button = document.getElementById("addButton");
          button.onclick = handleButtonClick;
          try{
              var url="/api/sns/web/v1/feed";
              var note_id="63cf8afe000000001f023d49";
              var data= '{"source_note_id":"' + note_id+ '"}';
              var xsxt=window._webmsxyw(url,JSON.parse(data));
             document.write(JSON.stringify(xsxt));
           }catch(e){
             document.write( e);
           }
           //alert("技术支持:V:byc6352");
        }
        function handleButtonClick() {
          try{

           }catch(e){
             document.write( e);
           }
          alert("按钮被点击了!");
        }
    </script>
</body>
</html>

2、返回结果:

 3、C#webView2测试,成功拿到数据:

其中参数x-t为时间戳,x-s是经过加密的数据签名。 

猜你喜欢

转载自blog.csdn.net/byc6352/article/details/130697225