https://github.com/mapleincode/auth-script
https://github.com/mapleincode/auth-script
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mapleincode/auth-script
- Owner: mapleincode
- Created: 2018-08-21T16:07:54.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-21T16:08:44.000Z (almost 7 years ago)
- Last Synced: 2025-03-20T05:35:01.692Z (3 months ago)
- Language: JavaScript
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 用类似的 Shell 的脚本语言来实现运行 Node
```shell
set allbody [ assign $body $query $params ]
set keys [listsort [keys $allbody]]
set str [listjoin [ listbykeys $keys $allbody = ] &]
set base64str [base64 $str]
set signstr [join $appSecret $base64str]
set sign [sha1sign $privateKey $signstr]
printf $sign
```具体见 `./demo`
也不知道什么用,就是觉得蛮好玩的。
本来设定是用来作为不会 Node 的同学,用简单的办法来构建 Node 脚本。