File tree Expand file tree Collapse file tree 4 files changed +16
-4
lines changed
i18n/zh-CN/docusaurus-plugin-content-docs/current/reference/model Expand file tree Collapse file tree 4 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ Encode the string `value` using the codec registered for encoding.
14
14
15
15
## decode
16
16
17
- ` decode(value: str, encoding: str = "utf-8" ) -> str `
17
+ ` decode(value: str) -> str `
18
18
19
- Decode the string ` value ` using the codec registered for encoding.
19
+ Decode the string ` value ` using the codec registered to the utf8 string for encoding.
Original file line number Diff line number Diff line change @@ -42,6 +42,12 @@ Encrypt the string `value` using `SHA384` and the codec registered for encoding.
42
42
43
43
Encrypt the string ` value ` using ` SHA512 ` and the codec registered for encoding.
44
44
45
+ ## blake3
46
+
47
+ ` blake3(value: str, encoding: str = "utf-8") -> str `
48
+
49
+ Encrypt the string ` value ` using ` BLAKE3 ` and the codec registered for encoding.
50
+
45
51
## uuid
46
52
47
53
` uuid() -> str `
Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ weight: 100
14
14
15
15
## decode
16
16
17
- ` decode(value: str, encoding: str = "utf-8" ) -> str `
17
+ ` decode(value: str) -> str `
18
18
19
- 使用注册的编码器对字符串 ` value ` 进行解码。
19
+ 使用注册的编码器对字符串 ` value ` 进行解码,解码的结果是一个 utf8 字符串
Original file line number Diff line number Diff line change @@ -42,6 +42,12 @@ weight: 100
42
42
43
43
使用注册编码器和 ` SHA512 ` 算法对字符串 ` value ` 进行加密。
44
44
45
+ ## blake3
46
+
47
+ ` sha512(value: str, encoding: str = "utf-8") -> str `
48
+
49
+ 使用注册编码器和 ` BLAKE3 ` 算法对字符串 ` value ` 进行加密。
50
+
45
51
## uuid
46
52
47
53
` uuid() -> str `
You can’t perform that action at this time.
0 commit comments