Ninjas Practicing Multidimensionality

    virsical-sign

    3.0.3 • Public • Published

    virsical-sign

    npm NPM downloads

    威思客签名算法 3.x

    范围

    微服务中使用

    算法描述

    接口签名规范

    使用

     import VirsicalSign from 'virsical-sign';
     //or
     //import {getSign} 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';
    //or
    //import {getSign} 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';
    //or
    //import {getSign} from 'virsical-sign';
    
    const url = 'http://localhost:8080/api/user?id=1&lang=zh_CN&tokenSn=1111';
    const token = 'ADFASA23427UIOUKIJO9W3YOHSLEFJS93U0RJIFSD';
    VircalSign.getSign(url, token);

    Keywords

    Install

    npm i virsical-sign

    DownloadsWeekly Downloads

    34

    Version

    3.0.3

    License

    MIT

    Unpacked Size

    26 kB

    Total Files

    8

    Last publish

    Collaborators

    • qiaolb
    • kairi1227
    • vkingw