File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
i18n/zh-CN/docusaurus-plugin-content-docs/current/reference/model Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -41,3 +41,15 @@ Encrypt the string `value` using `SHA384` and the codec registered for encoding.
4141` sha512(value: str, encoding: str = "utf-8") -> str `
4242
4343Encrypt the string ` value ` using ` SHA512 ` and the codec registered for encoding.
44+
45+ ## uuid
46+
47+ ` uuid() -> str `
48+
49+ Generate a random UUID string.
50+
51+ ## filesha256
52+
53+ ` filesha256(filepath: str) -> str `
54+
55+ Calculate the SHA256 hash of the file ` filepath ` .
Original file line number Diff line number Diff line change @@ -41,3 +41,15 @@ weight: 100
4141` sha512(value: str, encoding: str = "utf-8") -> str `
4242
4343使用注册编码器和 ` SHA512 ` 算法对字符串 ` value ` 进行加密。
44+
45+ ## uuid
46+
47+ ` uuid() -> str `
48+
49+ 生成一个随机 UUID 字符串。
50+
51+ ## filesha256
52+
53+ ` filesha256(filepath: str) -> str `
54+
55+ 计算文件 ` filepath ` 的 SHA256 哈希。
You can’t perform that action at this time.
0 commit comments