From 98c131e3566e13f8fa5d4d5a803983e30084b50a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E4=BB=AA=E5=BC=8F?= <854085467@qq.com> Date: Sun, 19 Jul 2020 02:04:42 +0800 Subject: [PATCH] add hash component and hash document --- admin/data/menu.json | 8 ++ view/document/drawer.html | 2 +- view/document/hash.html | 171 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 180 insertions(+), 1 deletion(-) create mode 100644 view/document/hash.html diff --git a/admin/data/menu.json b/admin/data/menu.json index eb03f77..f6c3c11 100644 --- a/admin/data/menu.json +++ b/admin/data/menu.json @@ -57,6 +57,14 @@ "type": 1, "openType": "_iframe", "href": "view/document/drawer.html" + }, + { + "id": 205, + "title": "哈希加密", + "icon": "layui-icon layui-icon-face-cry", + "type": 1, + "openType": "_iframe", + "href": "view/document/hash.html" } ] }, diff --git a/view/document/drawer.html b/view/document/drawer.html index 3f04289..90deaea 100644 --- a/view/document/drawer.html +++ b/view/document/drawer.html @@ -69,7 +69,7 @@
+ + 并 + ++
+ layui.use(['hash'], function() {
+ var hash = layui.hash;
+
+ hash.md5( str );
+
+ hash.sha1( str );
+
+ hash.sha256( str );
+ })
+
+