virsical-sign

威思客签名算法 3.x
范围
微服务中使用
算法描述
接口签名规范
使用
import VirsicalSign from 'virsical-sign';
const timestamp = new Date().getTime();
const url = 'http://localhost:8080/api/user?id=1&lang=zh_CN&tokenSn=1111';
const key = '123';
const body = 'XXX';
const token= '22222';
VircalSign.getSign(url, token, key,timestamp, body);
威思客签名算法 2.x
范围
微服务中使用
算法描述
接口签名规范
使用
import VirsicalSign from 'virsical-sign';
const timestamp = new Date().getTime();
const url = 'http://localhost:8080/api/user?id=1&lang=zh_CN&tokenSn=1111';
const key = '123';
const body = 'XXX';
VircalSign.getSign(url, key,timestamp, body);
威思客签名算法 1.0.6
使用
import VirsicalSign from 'virsical-sign';
const url = 'http://localhost:8080/api/user?id=1&lang=zh_CN&tokenSn=1111';
const token = 'ADFASA23427UIOUKIJO9W3YOHSLEFJS93U0RJIFSD';
VircalSign.getSign(url, token);