Git Product home page Git Product logo

meiqiasdk-push-signature-example's Introduction

MeiqiaSDK-Push-Signature-Example

美洽 SDK 3.0 推送的数据结构签名算法,多语言示例。

该项目是 美洽 SDK 3.0 推送的数据结构签名的算法,具体推送的数据结构请移步 美洽 SDK 推送说明

开发者收到美洽的推送数据后,开发者可以选择进行 签名验证

我们使用的签名算法是 HMAC-SHA1,key 使用的是美洽 App 的 Secret-Key,请到工作台获取你的 Secret-KeyWarning,请不要将 Secret-Key 暴露给任何人。

下图是获取 Secret-Key 截图: 获取 Secret-Key 截图

开发者收到美洽的推送数据请求后,请获取头信息的 Authorization,其中是美洽推送数据的签名。

我们提供 Java、Python、Ruby、JavaScript、PHP 五种语言的计算签名的代码,计算签名后,请和头信息的美洽数据签名进行比对,如果比对失败,则说明推送数据被修改过。

meiqiasdk-push-signature-example's People

Contributors

ijinmao avatar huhuanming avatar yangwenmai avatar maiyang avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.