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 );
+ })
+
+