Skip to content

Commit f8e5fb8

Browse files
authored
feat(crypt): update doc (#253)
1 parent 9441337 commit f8e5fb8

File tree

2 files changed

+48
-50
lines changed

2 files changed

+48
-50
lines changed

docs/guide/drivers/Crypt.md

Lines changed: 39 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -22,64 +22,60 @@ star: true
2222

2323
What is `Crypt`?
2424

25-
It is equivalent to a two -layer password -encrypted safe. No one else can be opened except you have the key to open it. The password and salt value in the configuration are equivalent to the key
25+
In simple words, it's a two-password-protected safe. No one can be open it without the key. The password and salt value in the configuration form the key.
2626

27-
Of course, you have to remember the password and salt value. If you lose it yourself, you can't open it yourself, unless you are poor or guess the correct password.
27+
::: Tips
2828

29-
::: tip Use reminder
29+
1. If you don’t know how to use this encryption/decryption driver, please read this guide carefully
30+
2. Please test it locally to understand it before use it in the production environment.
31+
3. The data loss is 100% caused by configuration change. If data has been stored within Crypt, change configuration won't re-encrypt data!
3032

31-
1. If you don’t know how to use this plus/decryption driver, please check carefully each text
32-
2. Please use it locally to understand and then move to the production environment to deploy and use it, otherwise the data will be lost!
33-
3. The data loss is 100%because the configuration file is modified. If the file has been uploaded, please do not modify the configuration file, otherwise the data will be lost!
34-
35-
==Remind again, please read the document carefully, otherwise the data will be lost and bear the loss!==
33+
==Remind again, please read the document carefully, otherwise the data will be lost!==
3634

3735
:::
3836

3937

4038

41-
## **Instructions for use**
39+
## **Instruction**
4240

43-
We only need to build a new **blank folder** in the driver (network disk) that has been mounted now.
41+
We need to build a new **empty folder** in the driver (network disk) that has been mounted now.
4442

45-
Then fill in the name of our new blank folder to the `Remote path` `Crypt` drive configuration
43+
Then fill in the name of our new empty folder to the `Remote path` `Crypt` driver configuration
4644

4745
E.g:
4846

49-
- Our original driving path was `/123`, we built a new `air` blank folder in the 123 directory
50-
- We are going to `Remote Path` options driven by` Crypt`,Fill in `/123/air`
51-
- To encrypt files, you need to upload them to the newly created "Crypt" drive. Encryption will only be applied when files are uploaded to this drive.
52-
- Crypto files We go to **`remote path`** can see the encrypted file, unable to open it normally
53-
- If you want to open it, you need to view it at the `Crypt` Drive Folder
47+
- Our original driving path was `/123`, we built a new `air` empty folder in the '123' directory
48+
- Fill `Remote Path` option in `Crypt` config page with `/123/air`
49+
- To encrypt files, you need to upload them to the newly created "Crypt" drive. Encryption will only be applied when files are uploaded to this driver.
50+
- Encrypted files are stored in **`remote path`** , and they can't be opened normally due to the encryption
51+
- If you want to open them, you need to view them in the `Crypt` Driver Folder
5452

5553

5654

5755

58-
## **Fill in the example**
56+
## **Config Example**
5957

60-
If you do n’t know how to configure, you can use the simpler default configuration as follows. The role of each configuration will be explained in detail below
58+
If you don’t know how to configure, you can use the simpler default configuration as follows. The role of each configuration will be explained in detail below
6159

6260
![image-20230721230425597](/img/drivers/crypt/crypt-demo1.png)
6361

6462

6563

6664
:::danger Please read the precautions carefully --- very important
6765

68-
State again, please do not think you are
69-
70-
Once the configuration is filled in storage, do not modify it, do not modify it, do not modify it! Emphasized things three times
66+
Once the configuration is filled and started using, do not modify it, do not modify it, do not modify it!
7167

72-
[**Password**](#password)[**Salt**](#salt) Must remember,After clicking, these two options will be encrypted and unable to display (the text above shows that it has not been stored)
68+
[**Password**](#password)[**Salt**](#salt) Keep in mind,after saving config, these two options will be encrypted and can't be reveled (the text above shows that it has not been stored)
7369

74-
- **If you forget the password before uploading the file, you can modify and fill in the password configuration**
70+
- **If you forget the password before uploading any file, you can modify and re-fill in the password configuration**
7571

7672
-----
7773

7874
If you have not uploaded files in the Crypt drive, you can modify the configuration, otherwise do not modify it!!!
7975

80-
Because different encryption methods will appear in different configuration methods, `Crypt` will not display (filtering) illegal files
76+
If you have data in Crypt, and changed the configuration, `Crypt` will try to filter out illegal files/folders, but the illegal data still exist in the remote storage
8177

82-
- **Illegal files are encrypted files generated by different configurations and no encryption files**
78+
- **Illegal means data that is encrypted by another config**
8379

8480
:::
8581

@@ -88,11 +84,11 @@ Because different encryption methods will appear in different configuration meth
8884
There are 5 methods for the encryption combination, (in fact 6 types) Because only the **folder encryption is turned on, the file name is not encrypted** and the configuration does not take effect (the first one of the example below)
8985

9086
1. <Badge text="invalid" color="red" vertical="middle" /> Filename `Off`,Directory `true`
91-
2. <Badge text="efficient" type="tip" vertical="middle" /> Filename `Off`,Directory `false`
92-
3. <Badge text="efficient" type="tip" vertical="middle" /> Filename `Standard`,Directory `false`
93-
4. <Badge text="efficient" type="tip" vertical="middle" /> Filename `Standard`,Directory `true`
94-
5. <Badge text="efficient" type="tip" vertical="middle" /> Filename `Obfuscate`,Directory `false`
95-
6. <Badge text="efficient" type="tip" vertical="middle" /> Filename `Obfuscate`,Directory `true`
87+
2. <Badge text="valid" type="tip" vertical="middle" /> Filename `Off`,Directory `false`
88+
3. <Badge text="valid" type="tip" vertical="middle" /> Filename `Standard`,Directory `false`
89+
4. <Badge text="valid" type="tip" vertical="middle" /> Filename `Standard`,Directory `true`
90+
5. <Badge text="valid" type="tip" vertical="middle" /> Filename `Obfuscate`,Directory `false`
91+
6. <Badge text="valid" type="tip" vertical="middle" /> Filename `Obfuscate`,Directory `true`
9692

9793
:::
9894

@@ -111,11 +107,11 @@ If you don’t understand, you can use the default configuration
111107
- Standard encryption safety level high^(recommended)^
112108

113109
- 3.**Simple Obfuscate**
114-
- The security level is very low, and the name of the long file is friendly, but for the Chinese file name, special characters will be generated. Some network disk storage does not support special characters.
110+
- The security level is very low, but friendly to long file name. Note: for the Chinese file name, special characters will be generated. Some network disk storage may not support them
115111

116112
- The left side of the figure below is encrypted [**Remote path**](#remote-path),On the right is the decrypted 'crypt` driver to view the file
117-
- If not open<Badge text="Filename" type="tip" vertical="middle" />encryption,It will be displayed<Badge text="Upper left corner" color="rgb(216,100,69)" vertical="middle" /> A new encrypted suffix is added behind the source file(xxxxx\.xxx **.bin** )(The suffix name can be customized, not necessarily .bin)
118-
- If you open<Badge text="Filename" type="tip" vertical="middle" />encryption,It will be displayed<Badge text="Lower left corner" color="rgb(78,130,184)" vertical="middle" />In this way, the file name is also confused with encryption, no suffix and the original file name,Others can't know what it is, but it can be driven by `crypt`(<Badge text="The folder displayed on the right" color="rgb(0.0.0.0)" vertical="middle" />)View the complete decryption and transparent file name
113+
- If not enabled <Badge text="Filename" type="tip" vertical="middle" /> encryption,It will be like <Badge text="Upper left corner pic" color="rgb(216,100,69)" vertical="middle" /> A new encrypted suffix is added behind the source file(xxxxx\.xxx **.bin** )(The suffix name can be customized)
114+
- If you enabled <Badge text="Filename" type="tip" vertical="middle" /> encryption,It will be like <Badge text="Lower left corner pic" color="rgb(78,130,184)" vertical="middle" /> In this way, the file name is also confused with encryption, no suffix and the original file name,others can't know what it is, but it can be viewed in `crypt`(<Badge text="The folder displayed on the right" color="rgb(0.0.0.0)" vertical="middle" />)
119115

120116
![image-20230721230425597](/img/drivers/crypt/crypt-demo2.png)
121117

@@ -125,13 +121,13 @@ If you don’t understand, you can use the default configuration
125121

126122
### <i class="fa-solid fa-folder-open" style="color: #409eff;"></i> **Directory name encryption**
127123

128-
Use the enable folder to encrypt, the default `false` is not enabled, if you dont understand, you can choose not to use it
124+
default is `false`, i.e disabled. don't use it if you don't understand below description
129125

130-
When you turn on the folder encryption, you must select a **filename encryption**. Otherwise, the folder encryption will not take effect
126+
When you turn on the folder encryption, you must select a **filename encryption** type. Otherwise, the folder encryption will not take effect
131127

132128
- The left side of the figure below is encrypted [**Remote path**](#remote-path),On the right is the decrypted 'crypt` driver to view the file
133-
- If not open<Badge text="Directory" type="tip" vertical="middle" />encryption,It will be displayed<Badge text="Upper left corner" color="rgb(216,100,69)" vertical="middle" />That kind of folder without any change
134-
- If you open<Badge text="Directory" type="tip" vertical="middle" />encryption,It will be displayed<Badge text="Lower left corner" color="rgb(78,130,184)" vertical="middle" />In that way, the folder name is also confused by encryption
129+
- If disabled <Badge text="Directory" type="tip" vertical="middle" /> encryption,It will be like<Badge text="Upper left corner pic" color="rgb(216,100,69)" vertical="middle" /> No change to folder name
130+
- If enabled <Badge text="Directory" type="tip" vertical="middle" /> encryption,It will be displayed<Badge text="Lower left corner pic" color="rgb(78,130,184)" vertical="middle" /> folder name is encrypted
135131

136132
![image-20230721230425597](/img/drivers/crypt/crypt-demo2.png)
137133

@@ -153,7 +149,7 @@ Just literally meaning password
153149

154150
### <i class="fa-solid fa-lock-keyhole" style="color: #409eff;"></i> **Salt**
155151

156-
It can also be understood as the second password
152+
It can be treated as the second password if you don't understand it
157153

158154
<br/>
159155

@@ -163,9 +159,7 @@ It can also be understood as the second password
163159

164160
The default is `.bin`, the custom must start with` .`, such as .abc .aaa .Psd.
165161

166-
If the file name is encrypted, the encryption suffix `will not be displayed (but still have to be configured)
167-
168-
- The high -level gameplay is to manually change the suffix to the suffix in the configuration file to display the access (provided that it is consistent with the **`password`** and **`Salt`** when encrypted
162+
If the file name is encrypted, the encryption suffix `will not be used
169163

170164
<br/>
171165

@@ -175,8 +169,11 @@ If the file name is encrypted, the encryption suffix `will not be displayed (but
175169

176170
Advanced usage is only applicable to those who know about **`rclone`**
177171

178-
If you know the **`rclone`** very well, you can view :point_right: [**rclone crypt document **] (https://rclont.org/crypt) Currently, completely compatible
172+
If you know the **`rclone`** very well, you can check :point_right: [**rclone crypt document **](https://rclone.org/crypt) Currently fully compatible
173+
174+
Note: `Alist Crypt` used `filename_encoding = base64` in default. If you want to use Rclone, please config it in the advanced config. (Reason: more friendly to long filename)
179175

176+
since Alist does not consider any case-insensitive internally, you may encounter problems when remote storage is case-insensitive. e.g.: use alist local driver on Windows, then use Crypt on it.
180177

181178

182179
<br/>

docs/zh/guide/drivers/Crypt.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ star: true
4848

4949
- 我们原本的驱动路径是`/123`,我们在123这个目录下新建了一个`air空白文件夹`
5050
- 我们就要在`Crypt`驱动的`加密后文件存储路径`选项填写`/123/air`
51-
- 我们上传文件需要在 新建的`Crypt`驱动进行上传文件才会进行加密
51+
- 我们上传文件需要在 新建的`Crypt`驱动目录进行上传文件才会进行加密
5252
- 加密文件我们去 **`加密后文件存储路径`** 查看会看到加密后的文件,无法正常打开查看
5353
- 如果要打开查看,我们需要在挂载的`Crypt`驱动文件夹查看
5454

@@ -77,9 +77,9 @@ star: true
7777

7878
如果你还没有在Crypt驱动內上传文件,可以修改配置,否则请勿修改!!
7979

80-
因为不同的配置方式会出现不同的加密方式`Crypt`不会显示(过滤)非法文件
80+
如果在已有数据的情况下更改配置`Crypt`尽力过滤非法文件/目录,但非法数据不会被删除
8181

82-
- **非法文件指的是非相同配置生成的加密文件以及没有经过加密的文件**
82+
- **非法文件/目录指的是另一种配置生成的加密数据**
8383

8484
:::
8585

@@ -115,7 +115,7 @@ star: true
115115

116116
- 下图中左侧的加密了的 [**加密后文件存储路径**](#加密后文件存储路径),右侧是解密后的`Crypt`驱动可以查看文件
117117
- 如果不开启<Badge text="文件名" type="tip" vertical="middle" />加密,就会显示<Badge text="左上角" color="rgb(216,100,69)" vertical="middle" />那样的是源文件后面新增一个加密的后缀(xxxxx\.xxx **.bin** )(后缀名可以自定义不一定是.bin)
118-
- 如果开启<Badge text="文件名" type="tip" vertical="middle" />加密,就会显示<Badge text="左下角" color="rgb(78,130,184)" vertical="middle" />那样将文件名也进行了加密混淆没有了后缀和原文件名,别人就无法知道是什么了,但是可以在`Crypt`驱动(<Badge text="右侧展示的文件夹" color="rgb(0.0.0.0)" vertical="middle" />)查看完整解密透明的文件名
118+
- 如果开启<Badge text="文件名" type="tip" vertical="middle" />加密,就会显示<Badge text="左下角" color="rgb(78,130,184)" vertical="middle" />那样将文件名也进行了加密混淆没有了后缀和原文件名,别人就无法知道是什么了,但是可以在`Crypt`驱动(<Badge text="右侧展示的文件夹" color="rgb(0.0.0.0)" vertical="middle" />)中看到真实文件名
119119

120120
![image-20230721230425597](/img/drivers/crypt/crypt-demo2.png)
121121

@@ -163,9 +163,7 @@ star: true
163163

164164
默认为`.bin`,可自定义必须要以`.`开头,例如 .abc .aaa .psd 这样的后缀
165165

166-
如果开启了文件名加密`加密后缀`就不会显示(但是还是要配置的)
167-
168-
- 进阶玩法:可以手动将后缀手动改成配置文件中设置的后缀就可以显示访问(前提是和加密时的 **`密码`****`Salt`** 是一致的)
166+
如果开启了文件名加密`加密后缀`就不会显示
169167

170168
<br/>
171169

@@ -175,8 +173,11 @@ star: true
175173

176174
高级用法仅适用于对 **`Rclone`** 了解的人
177175

178-
如果你对 **`Rclone`** 很了解可以看 :point_right: [**Rclone Crypt 文档**](https://rclont.org/crypt) 目前完全兼容
176+
如果你对 **`Rclone`** 很了解可以看 :point_right: [**Rclone Crypt 文档**](https://rclone.org/crypt) 目前完全兼容
177+
178+
注意,`Alist Crypt`驱动默认使用了 `filename_encoding = base64` ,如果使用Rclone请在高级设置中配置此条。(理由:对长文件名更友好一些)
179179

180+
因为alist内部并没有对大小写**不敏感**提供支持,所以如果使用了大小写不敏感的文件系统可能会出问题,例如:windows上使用本地存储驱动,再使用Crypt
180181

181182

182183
<br/>

0 commit comments

Comments
 (0)