Coder Social home page Coder Social logo

mmtls-1's Introduction

mmtls

基于TCP 上 mmtls 安全传输实现

一直也在研究tcp 的安全通信问题,项目中用的是OpenSSL 提供的TLS,当存在大量并发的时候TLS 的握手过程确实消耗很大,后来就一直研究微信的 mmtls 方案,握手过程只需要一个来回就可以搞定。

用nodejs 实现了一个mmtls的加解密流程,加解密放到了服务器上,可以使用微信的服务器来测试一下是否符合 mmtls 的流程。

调试运行

nodejs 写的,git clone 回来之后,直接 用vs code 打开目录。
npm install 
直接F5 就可以调试了。
详细讲解了整个数据包的解析,加解密的分析过程。
收集到的另一篇文章,也是分析数据包的加解密过程,后面收集到的技术资料都放到资料文件夹下

3 [微信官方mmtls 介绍]

包括两篇详细介绍,但是只是介绍原理,并没有算法代码。

基于 TLS 1.3的微信安全通信协议 mmtls 介绍(上)

基于 TLS 1.3的微信安全通信协议 mmtls 介绍(下)

服务器只是用来测试加解密是否符合MMTLS 的流程, 不要发送大量请求,也不要攻击服务器

公司目前也已经切换到MMTLS 这套加解密方案,效果还不错

觉得有用的可以点个赞

mmtls-1's People

Contributors

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