From 83e2582015c08163eb9985860fd2e653e8137f53 Mon Sep 17 00:00:00 2001 From: baiy Date: Wed, 27 Oct 2021 14:01:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=AD=BE=E5=90=8D=E9=AA=8C?= =?UTF-8?q?=E7=AD=BE=20#84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 + package-lock.json | 30 ++--- package.json | 4 +- src/config.js | 1 + src/views/tool/sign.vue | 260 ++++++++++++++++++++++++++-------------- 5 files changed, 187 insertions(+), 110 deletions(-) diff --git a/README.md b/README.md index 9d6c528..9a016ea 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,7 @@ npm run build -adapter=[chrome|edge|utools|firefox|web] |Hex/String转换|`hex to string`, `string to hex`, `十六进制转字符串`, `字符串转十六进制`|√| |文本处理|`大小写转换`, `中英文标点转换`, `简繁转换`, `替换`, `字符统计`, `行去重`, `添加行号`, `行排序`, `过滤行首尾不可见字符`,`过滤空行`|√| |html编码|`html编码`|√| +|签名/验签|`签名`,`验签`,`RSA`|√| ## 第三方开源库 @@ -118,5 +119,6 @@ npm run build -adapter=[chrome|edge|utools|firefox|web] - [axios](https://www.npmjs.com/package/axios) - [monaco-editor](https://www.npmjs.com/package/monaco-editor) - [js-htmlencode](https://www.npmjs.com/package/js-htmlencode) +- [jsrsasign](https://www.npmjs.com/package/jsrsasign) > 当然项目中还使用很多不知道姓名的大神的代码, 在这里就不一一感谢 diff --git a/package-lock.json b/package-lock.json index 15f1a5b..2418032 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1025,17 +1025,17 @@ "dev": true }, "@typescript-eslint/types": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.1.0.tgz", - "integrity": "sha512-sEwNINVxcB4ZgC6Fe6rUyMlvsB2jvVdgxjZEjQUQVlaSPMNamDOwO6/TB98kFt4sYYfNhdhTPBEQqNQZjMMswA==" + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.2.0.tgz", + "integrity": "sha512-cTk6x08qqosps6sPyP2j7NxyFPlCNsJwSDasqPNjEQ8JMD5xxj2NHxcLin5AJQ8pAVwpQ8BMI3bTxR0zxmK9qQ==" }, "@typescript-eslint/typescript-estree": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.1.0.tgz", - "integrity": "sha512-SSz+l9YrIIsW4s0ZqaEfnjl156XQ4VRmJsbA0ZE1XkXrD3cRpzuZSVCyqeCMR3EBjF27IisWakbBDGhGNIOvfQ==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.2.0.tgz", + "integrity": "sha512-RsdXq2XmVgKbm9nLsE3mjNUM7BTr/K4DYR9WfFVMUuozHWtH5gMpiNZmtrMG8GR385EOSQ3kC9HiEMJWimxd/g==", "requires": { - "@typescript-eslint/types": "5.1.0", - "@typescript-eslint/visitor-keys": "5.1.0", + "@typescript-eslint/types": "5.2.0", + "@typescript-eslint/visitor-keys": "5.2.0", "debug": "^4.3.2", "globby": "^11.0.4", "is-glob": "^4.0.3", @@ -1187,11 +1187,11 @@ } }, "@typescript-eslint/visitor-keys": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.1.0.tgz", - "integrity": "sha512-uqNXepKBg81JVwjuqAxYrXa1Ql/YDzM+8g/pS+TCPxba0wZttl8m5DkrasbfnmJGHs4lQ2jTbcZ5azGhI7kK+w==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.2.0.tgz", + "integrity": "sha512-Nk7HizaXWWCUBfLA/rPNKMzXzWS8Wg9qHMuGtT+v2/YpPij4nVXrVJc24N/r5WrrmqK31jCrZxeHqIgqRzs0Xg==", "requires": { - "@typescript-eslint/types": "5.1.0", + "@typescript-eslint/types": "5.2.0", "eslint-visitor-keys": "^3.0.0" }, "dependencies": { @@ -12392,9 +12392,9 @@ } }, "vue-router": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.5.2.tgz", - "integrity": "sha512-807gn82hTnjCYGrnF3eNmIw/dk7/GE4B5h69BlyCK9KHASwSloD1Sjcn06zg9fVG4fYH2DrsNBZkpLtb25WtaQ==" + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.5.3.tgz", + "integrity": "sha512-FUlILrW3DGitS2h+Xaw8aRNvGTwtuaxrRkNSHWTizOfLUie7wuYwezeZ50iflRn8YPV5kxmU2LQuu3nM/b3Zsg==" }, "vue-style-loader": { "version": "4.1.3", diff --git a/package.json b/package.json index 4ad4424..34d8a69 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "@babel/parser": "^7.15.8", "@prettier/plugin-php": "^0.17.5", "@prettier/plugin-xml": "^1.1.0", - "@typescript-eslint/typescript-estree": "^5.1.0", + "@typescript-eslint/typescript-estree": "^5.2.0", "angular-html-parser": "^1.8.0", "axios": "^0.21.4", "babel-runtime": "^6.26.0", @@ -55,7 +55,7 @@ "uuid": "^8.3.2", "view-design": "^4.6.1", "vue": "^2.6.14", - "vue-router": "^3.5.2", + "vue-router": "^3.5.3", "x2js": "github:abdolence/x2js" }, "devDependencies": { diff --git a/src/config.js b/src/config.js index 593012d..bb49c64 100644 --- a/src/config.js +++ b/src/config.js @@ -78,6 +78,7 @@ const utools = { jwt: ['jwtDecode'], hexString: ['hex to string', 'string to hex', '十六进制转字符串', '字符串转十六机制'], text: ['文本处理', '大小写转换', '中英文标点转换', '简繁转换', '字符替换', '字符统计', '行去重', '添加行号', '行排序', '过滤行首尾不可见字符', '过滤空行'], + sign: ['签名', '验签', 'rsa'], }, cmds: { timestamp: [ diff --git a/src/views/tool/sign.vue b/src/views/tool/sign.vue index 42008c4..67389e0 100644 --- a/src/views/tool/sign.vue +++ b/src/views/tool/sign.vue @@ -1,106 +1,180 @@ - - - \ No newline at end of file -- GitLab