From 60f3c3ccca7a1482ab1446fa6c42516a08f1d26d Mon Sep 17 00:00:00 2001 From: zhou-hao Date: Thu, 29 Jul 2021 11:17:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0MQTT=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=90=8D=E5=AF=86=E7=A0=81=E7=94=9F=E6=88=90=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ jetlinks-mqtt-auth-generator.html | 54 +++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 jetlinks-mqtt-auth-generator.html diff --git a/README.md b/README.md index 2853969..96e004f 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,5 @@ 类名: `org.jetlinks.protocol.official.JetLinksProtocolSupportProvider` [查看说明](http://doc.jetlinks.cn/basics-guide/jetlinks-protocol-support.html) + +MQTT 用户名密码可以使用[生成工具进行生成](jetlinks-mqtt-auth-generator.html) \ No newline at end of file diff --git a/jetlinks-mqtt-auth-generator.html b/jetlinks-mqtt-auth-generator.html new file mode 100644 index 0000000..56d053f --- /dev/null +++ b/jetlinks-mqtt-auth-generator.html @@ -0,0 +1,54 @@ + + + + + + + + + + JetLinks官方协议MQTT用户名密码生成工具 + +

JetLinks官方协议MQTT用户名密码生成工具

+ + secureId: +
+ secureKey: +
+ +
+ username: +
+ password: + +
+

算法:

+
+var now = new Date().getTime(); //当前时间戳
+var username = secureId+"|"+now; // 拼接用户密码
+var password = md5(username+"|"+secureKey); //使用md5生成摘要
+  
+ + + + \ No newline at end of file