hexo-blog-encrypt 3.1.5 → 3.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ReadMe.zh.md +2 -2
- package/index.js +2 -2
- package/package.json +1 -6
package/ReadMe.zh.md
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
## 特性
|
|
26
26
|
|
|
27
|
-
- 一旦你输入了正确的密码, 它将会被存储在本地浏览器的 localStorage中. 按个按钮, 密码将会被清空.
|
|
27
|
+
- 一旦你输入了正确的密码, 它将会被存储在本地浏览器的 localStorage中. 按个按钮, 密码将会被清空. 若博客中有脚本, 它将会被正确地执行.
|
|
28
28
|
|
|
29
29
|
- 支持按标签加密.
|
|
30
30
|
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
|
|
33
33
|
- [PBKDF2](https://tools.ietf.org/html/rfc2898), [SHA256](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf) 被用于分发密钥, [AES256-CBC](https://csrc.nist.gov/publications/detail/sp/800-38a/final) 被用于加解密, 我们还使用 [HMAC](https://csrc.nist.gov/csrc/media/publications/fips/198/1/final/documents/fips-198-1_final.pdf) 来验证密文的来源, 并确保其未被篡改.
|
|
34
34
|
|
|
35
|
-
- 我们广泛地使用 Promise 来进行异步操作,
|
|
35
|
+
- 我们广泛地使用 Promise 来进行异步操作, 以此确保线程不被阻塞.
|
|
36
36
|
|
|
37
37
|
- 加密页面多主题支持, 现在已经支持的主题有 [`default`, `xray`], 更多的主题正在开发中.
|
|
38
38
|
|
package/index.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
5
|
const crypto = require('crypto');
|
|
6
|
-
const fs = require('
|
|
6
|
+
const fs = require('fs');
|
|
7
7
|
const path = require('path');
|
|
8
|
-
const log =
|
|
8
|
+
const log = hexo.log;
|
|
9
9
|
|
|
10
10
|
const defaultConfig = {
|
|
11
11
|
'abstract': 'Here\'s something encrypted, password is required to continue reading.',
|
package/package.json
CHANGED
|
@@ -5,10 +5,6 @@
|
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/D0n9X1n/hexo-blog-encrypt/issues"
|
|
7
7
|
},
|
|
8
|
-
"dependencies": {
|
|
9
|
-
"hexo-fs": "^1.0.2",
|
|
10
|
-
"hexo-log": "^0.2.0"
|
|
11
|
-
},
|
|
12
8
|
"description": "Yet, just another blog encrypt plugin for hexo.",
|
|
13
9
|
"homepage": "https://github.com/D0n9X1n/hexo-blog-encrypt#readme",
|
|
14
10
|
"keywords": [
|
|
@@ -25,7 +21,6 @@
|
|
|
25
21
|
}
|
|
26
22
|
],
|
|
27
23
|
"name": "hexo-blog-encrypt",
|
|
28
|
-
"optionalDependencies": {},
|
|
29
24
|
"repository": {
|
|
30
25
|
"type": "git",
|
|
31
26
|
"url": "git+ssh://git@github.com/D0n9X1n/hexo-blog-encrypt.git"
|
|
@@ -34,7 +29,7 @@
|
|
|
34
29
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
35
30
|
"lint": "eslint --ext .js ./"
|
|
36
31
|
},
|
|
37
|
-
"version": "3.1.
|
|
32
|
+
"version": "3.1.7",
|
|
38
33
|
"devDependencies": {
|
|
39
34
|
"eslint": "^6.2.2"
|
|
40
35
|
}
|