Giter Site home page Giter Site logo

pywe-sign's Introduction

pywe-sign

Wechat Sign Module for Python.

Installation

pip install pywe-sign

Usage

from pywe_sign import calculate_signature, check_signature, fill_signature, jsapi_signature, calculate_jsapi_signature, check_jsapi_signature, fill_jsapi_signature, basic_signature, calculate_basic_signature, calculate_callback_signature, check_callback_signature, calculate_msg_signature, check_msg_signature

Method

def format_url(params, api_key=None, ignore_zero=False):

def calculate_signature(params, api_key, ignore_zero=False):

def check_signature(params, api_key, sign=None, sign_key='sign', ignore_zero=False):

def fill_signature(params, api_key, sign_key='sign', ignore_zero=False):

def jsapi_signature(params, ignore_zero=False):

def calculate_jsapi_signature(params, ignore_zero=False):

def check_jsapi_signature(params, sign=None, sign_key='sign', ignore_zero=False):

def fill_jsapi_signature(params, sign_key='sign', ignore_zero=False):

def basic_signature(data, delimiter=b''):

def calculate_basic_signature(data, delimiter=b''):

def calculate_callback_signature(token, timestamp, nonce):

def check_callback_signature(token, signature, timestamp, nonce):

def calculate_msg_signature(token, timestamp, nonce, encrypt):

def check_msg_signature(token, msg_signature, timestamp, nonce, encrypt):

pywe-sign's People

Contributors

brightcells avatar

Stargazers

Victor avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

iloug

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.