Git Product home page Git Product logo

dingcrypto's Introduction

DingCrypto

该模块主要是用于解决钉钉的消息加密与解密,因为官方并没有提供相关 的sdk,所以将自己的采坑经验分享出来

使用pip进行安装

pip install DingCrypto

使用方法

from DingCrypto import DingCrypto

dingCrypto = DingCrypto(encodingAesKey,key)      ##此处的encodeingAesKey为在注册接口时填写的aes_key,后面的key对于普通企业开发,填写企业的Corpid。对于ISV开发来说,填写对应的suitekey

###生成签名
signature = dingCrypto.generateSignature(nonce, timestamp, token, msg_encrypt)

##加密数据
encrypt = dingCrypto.encrypt(content)

##解密数据
decrypt = dingCrypto.decrypt(content)

dingcrypto's People

Contributors

shuizhengqi1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.