Socket
Socket
Sign inDemoInstall

@feizheng/next-fanyi-api-sign

Package Overview
Dependencies
5
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @feizheng/next-fanyi-api-sign

Get baidu translate api sign.


Version published
0
Maintainers
1
Install size
59.4 kB
Created
Weekly downloads
 

Readme

Source

next-fanyi-api-sign

Get baidu translate api sign.

installation

npm install -S @feizheng/next-fanyi-api-sign

usage

import '@feizheng/next-fanyi-api-sign';

//DOCS here!

descriptions

  1. 拼接字符串1
    1. appid=2015063000000001
    2. q=apple
    3. salt=1435660288
    4. 密钥=12345678
    5. 得到字符串1:“2015063000000001apple143566028812345678”
  2. 计算签名:(对字符串1做md5加密)
    1. sign=md5(2015063000000001apple143566028812345678)
    2. sign=f89f9594663708c1605f3d736d01d2d4

resources

  • https://api.fanyi.baidu.com/doc/21

FAQs

Last updated on 16 Feb 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc