-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add doc of md5(),sha()/sha1() and remove descode(),encode() (#1064)
- Loading branch information
Showing
7 changed files
with
86 additions
and
103 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
docs/MatrixOne/Reference/Functions-and-Operators/String/md5.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# MD5() | ||
|
||
## 函数说明 | ||
|
||
`MD5()` 函数一种广泛使用的哈希函数,用于生成一个字符串的 32 字符长的十六进制 MD5 哈希值,它可以将任意长度的输入消息转换为一个 128 位(16 字节)的哈希值,通常表示为 32 位的十六进制字符串。如果参数为 NULL,则返回 NULL。 | ||
|
||
## 函数语法 | ||
|
||
``` | ||
> MD5(str) | ||
``` | ||
|
||
## 参数释义 | ||
|
||
| 参数 | 说明 | | ||
| -------- | ------------------------------------ | | ||
| str | 必要参数。要转换的字符串 | | ||
|
||
## 示例 | ||
|
||
```SQL | ||
mysql> select md5("hello world"); | ||
+----------------------------------+ | ||
| md5(hello world) | | ||
+----------------------------------+ | ||
| 5eb63bbbe01eeed093cb22bb8f5acdc3 | | ||
+----------------------------------+ | ||
1 row in set (0.00 sec) | ||
|
||
mysql> select md5(null); | ||
+-----------+ | ||
| md5(null) | | ||
+-----------+ | ||
| NULL | | ||
+-----------+ | ||
1 row in set (0.00 sec) | ||
``` |
45 changes: 45 additions & 0 deletions
45
docs/MatrixOne/Reference/Functions-and-Operators/String/sha1.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# SHA1()/SHA() | ||
|
||
## 函数说明 | ||
|
||
`SHA1()/SHA()` 函数是一种加密哈希函数,用于计算并返回给定字符串的 SHA-1 哈希值,它将任意长度的输入消息转换为一个固定长度(160 位,即 20 字节)的哈希值,通常表示为 40 个十六进制字符。如果参数为 NULL,则返回 NULL。 | ||
|
||
## 函数语法 | ||
|
||
``` | ||
> SHA1/SHA(str) | ||
``` | ||
|
||
## 参数释义 | ||
|
||
| 参数 | 说明 | | ||
| -------- | ------------------------------------ | | ||
| str | 必要参数。要加密的字符串 | | ||
|
||
## 示例 | ||
|
||
```SQL | ||
mysql> select sha1("hello world"); | ||
+------------------------------------------+ | ||
| sha1(hello world) | | ||
+------------------------------------------+ | ||
| 2aae6c35c94fcfb415dbe95f408b9ce91ee846ed | | ||
+------------------------------------------+ | ||
1 row in set (0.00 sec) | ||
|
||
mysql> select sha("hello world"); | ||
+------------------------------------------+ | ||
| sha(hello world) | | ||
+------------------------------------------+ | ||
| 2aae6c35c94fcfb415dbe95f408b9ce91ee846ed | | ||
+------------------------------------------+ | ||
1 row in set (0.00 sec) | ||
|
||
mysql> select sha1(null); | ||
+------------+ | ||
| sha1(null) | | ||
+------------+ | ||
| NULL | | ||
+------------+ | ||
1 row in set (0.00 sec) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 0 additions & 50 deletions
50
.../MatrixOne/Reference/Operators/operators/cast-functions-and-operators/decode.md
This file was deleted.
Oops, something went wrong.
49 changes: 0 additions & 49 deletions
49
.../MatrixOne/Reference/Operators/operators/cast-functions-and-operators/encode.md
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters