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.
1414
1515## decode
1616
17- ` decode(value: str, encoding: str = "utf-8" ) -> str `
17+ ` decode(value: str) -> str `
1818
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.
4242
4343Encrypt the string ` value ` using ` SHA512 ` and the codec registered for encoding.
4444
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+
4551## uuid
4652
4753` uuid() -> str `
Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ weight: 100
1414
1515## decode
1616
17- ` decode(value: str, encoding: str = "utf-8" ) -> str `
17+ ` decode(value: str) -> str `
1818
19- 使用注册的编码器对字符串 ` value ` 进行解码。
19+ 使用注册的编码器对字符串 ` value ` 进行解码,解码的结果是一个 utf8 字符串
Original file line number Diff line number Diff line change @@ -42,6 +42,12 @@ weight: 100
4242
4343使用注册编码器和 ` SHA512 ` 算法对字符串 ` value ` 进行加密。
4444
45+ ## blake3
46+
47+ ` sha512(value: str, encoding: str = "utf-8") -> str `
48+
49+ 使用注册编码器和 ` BLAKE3 ` 算法对字符串 ` value ` 进行加密。
50+
4551## uuid
4652
4753` uuid() -> str `
You can’t perform that action at this time.
0 commit comments