This is an automated email from the ASF dual-hosted git repository.

zclll pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 702b3845aa4 [Fix] Fix wrong description of AES_ENCRYPT function (#2953)
702b3845aa4 is described below

commit 702b3845aa43cf58e15a47421bc20e4f679f4955
Author: zclllyybb <[email protected]>
AuthorDate: Fri Oct 10 03:04:11 2025 +0800

    [Fix] Fix wrong description of AES_ENCRYPT function (#2953)
    
    ## Versions
    
    - [x] dev
    - [x] 3.0
    - [x] 2.1
    - [x] 2.0
    
    ## Languages
    
    - [x] Chinese
    - [x] English
    
    ## Docs Checklist
    
    - [ ] Checked by AI
    - [ ] Test Cases Built
---
 .../scalar-functions/encrypt-digest-functions/aes-encrypt.md            | 2 +-
 .../scalar-functions/encrypt-digest-functions/aes-encrypt.md            | 2 +-
 .../sql-manual/sql-functions/encrypt-digest-functions/aes-encrypt.md    | 2 +-
 .../sql-manual/sql-functions/encrypt-digest-functions/aes-encrypt.md    | 2 +-
 .../scalar-functions/encrypt-digest-functions/aes-encrypt.md            | 2 +-
 .../scalar-functions/encrypt-digest-functions/aes-encrypt.md            | 2 +-
 .../sql-manual/sql-functions/encrypt-digest-functions/aes-encrypt.md    | 2 +-
 .../sql-manual/sql-functions/encrypt-digest-functions/aes-encrypt.md    | 2 +-
 .../scalar-functions/encrypt-digest-functions/aes-encrypt.md            | 2 +-
 .../scalar-functions/encrypt-digest-functions/aes-encrypt.md            | 2 +-
 10 files changed, 10 insertions(+), 10 deletions(-)

diff --git 
a/docs/sql-manual/sql-functions/scalar-functions/encrypt-digest-functions/aes-encrypt.md
 
b/docs/sql-manual/sql-functions/scalar-functions/encrypt-digest-functions/aes-encrypt.md
index 346d6d5e2c8..410b08365d6 100644
--- 
a/docs/sql-manual/sql-functions/scalar-functions/encrypt-digest-functions/aes-encrypt.md
+++ 
b/docs/sql-manual/sql-functions/scalar-functions/encrypt-digest-functions/aes-encrypt.md
@@ -10,7 +10,7 @@
 AES encryption function. This function behaves the same as the `AES_ENCRYPT` 
function in MySQL. The default algorithm is `AES_128_ECB`, and the padding mode 
is `PKCS7`.
 
 The AES_ENCRYPT function does not use the passed key directly, but further 
processes it. The specific steps are as follows:
-1. Determine the number of bytes of the key according to the encryption 
algorithm used. For example, if the AES_128_ECB algorithm is used, the number 
of bytes of the key is `128 / 8 = 16` (if the AES_256_ECB algorithm is used, 
the number of bytes of the key is `128 / 8 = 32`);
+1. Determine the number of bytes of the key according to the encryption 
algorithm used. For example, if the AES_128_ECB algorithm is used, the number 
of bytes of the key is `128 / 8 = 16` (if the AES_256_ECB algorithm is used, 
the number of bytes of the key is `256 / 8 = 32`);
 2. Then, for the key input by the user, the `i`th bit and the `16*k+i`th bit 
are XORed. If the key input by the user is less than 16 bits, 0 is added at the 
end.
 3. Finally, use the newly generated key to encrypt;
 
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/encrypt-digest-functions/aes-encrypt.md
 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/encrypt-digest-functions/aes-encrypt.md
index 60642deb453..21e17f61a78 100644
--- 
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/encrypt-digest-functions/aes-encrypt.md
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/encrypt-digest-functions/aes-encrypt.md
@@ -10,7 +10,7 @@
 AES 加密函数。该函数与 MySQL 中的 `AES_ENCRYPT` 函数行为一致。默认采用 `AES_128_ECB` 算法,padding 模式为 
`PKCS7`。
 
 AES_ENCRYPT 函数对于传入的密钥,并不是直接使用,而是会进一步做处理,具体步骤如下:
-1. 根据使用的加密算法,确定密钥的字节数,比如使用 AES_128_ECB 算法,则密钥字节数为 `128 / 8 = 16`(如果使用 
AES_256_ECB 算法,则密钥字节数为 `128 / 8 = 32`);
+1. 根据使用的加密算法,确定密钥的字节数,比如使用 AES_128_ECB 算法,则密钥字节数为 `128 / 8 = 16`(如果使用 
AES_256_ECB 算法,则密钥字节数为 `256 / 8 = 32`);
 2. 然后针对用户输入的密钥,第 `i` 位和第 `16*k+i` 位进行异或,如果用户输入的密钥不足 16 位,则后面补 0;
 3. 最后,再使用新生成的密钥进行加密;
 
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-1.2/sql-manual/sql-functions/encrypt-digest-functions/aes-encrypt.md
 
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-1.2/sql-manual/sql-functions/encrypt-digest-functions/aes-encrypt.md
index 48ae194479a..bad4e55bbf1 100644
--- 
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-1.2/sql-manual/sql-functions/encrypt-digest-functions/aes-encrypt.md
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-1.2/sql-manual/sql-functions/encrypt-digest-functions/aes-encrypt.md
@@ -27,7 +27,7 @@ Reference: 
https://dev.mysql.com/doc/refman/8.0/en/encryption-functions.html#fun
 #### Remarks
 
 AES_ENCRYPT 函数对于传入的密钥,并不是直接使用,而是会进一步做处理,具体步骤如下:
-1. 根据使用的加密算法,确定密钥的字节数,比如使用 AES_128_ECB 算法,则密钥字节数为 `128 / 8 = 16`(如果使用 
AES_256_ECB 算法,则密钥字节数为 `128 / 8 = 32`);
+1. 根据使用的加密算法,确定密钥的字节数,比如使用 AES_128_ECB 算法,则密钥字节数为 `128 / 8 = 16`(如果使用 
AES_256_ECB 算法,则密钥字节数为 `256 / 8 = 32`);
 2. 然后针对用户输入的密钥,第 `i` 位和第 `16*k+i` 位进行异或,如果用户输入的密钥不足 16 位,则后面补 0;
 3. 最后,再使用新生成的密钥进行加密;
 
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.0/sql-manual/sql-functions/encrypt-digest-functions/aes-encrypt.md
 
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.0/sql-manual/sql-functions/encrypt-digest-functions/aes-encrypt.md
index 8f7a2621efc..75bdd253244 100644
--- 
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.0/sql-manual/sql-functions/encrypt-digest-functions/aes-encrypt.md
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.0/sql-manual/sql-functions/encrypt-digest-functions/aes-encrypt.md
@@ -29,7 +29,7 @@ VARCHAR AES_ENCRYPT(VARCHAR str, VARCHAR key_str[, VARCHAR 
init_vector][, VARCHA
 ### 注意事项
 
 AES_ENCRYPT 函数对于传入的密钥,并不是直接使用,而是会进一步做处理,具体步骤如下:
-1. 根据使用的加密算法,确定密钥的字节数,比如使用 AES_128_ECB 算法,则密钥字节数为 `128 / 8 = 16`(如果使用 
AES_256_ECB 算法,则密钥字节数为 `128 / 8 = 32`);
+1. 根据使用的加密算法,确定密钥的字节数,比如使用 AES_128_ECB 算法,则密钥字节数为 `128 / 8 = 16`(如果使用 
AES_256_ECB 算法,则密钥字节数为 `256 / 8 = 32`);
 2. 然后针对用户输入的密钥,第 `i` 位和第 `16*k+i` 位进行异或,如果用户输入的密钥不足 16 位,则后面补 0;
 3. 最后,再使用新生成的密钥进行加密;
 
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/sql-manual/sql-functions/scalar-functions/encrypt-digest-functions/aes-encrypt.md
 
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/sql-manual/sql-functions/scalar-functions/encrypt-digest-functions/aes-encrypt.md
index 45181b90c9f..774a8342aa6 100644
--- 
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/sql-manual/sql-functions/scalar-functions/encrypt-digest-functions/aes-encrypt.md
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/sql-manual/sql-functions/scalar-functions/encrypt-digest-functions/aes-encrypt.md
@@ -11,7 +11,7 @@ AES 加密函数。该函数与 MySQL 中的 `AES_ENCRYPT` 函数行为一致。
 
 AES_ENCRYPT 函数对于传入的密钥,并不是直接使用,而是会进一步做处理,具体步骤如下:
 
-1. 根据使用的加密算法,确定密钥的字节数,比如使用 AES_128_ECB 算法,则密钥字节数为 `128 / 8 = 16`(如果使用 
AES_256_ECB 算法,则密钥字节数为 `128 / 8 = 32`);
+1. 根据使用的加密算法,确定密钥的字节数,比如使用 AES_128_ECB 算法,则密钥字节数为 `128 / 8 = 16`(如果使用 
AES_256_ECB 算法,则密钥字节数为 `256 / 8 = 32`);
 2. 然后针对用户输入的密钥,第 `i` 位和第 `16*k+i` 位进行异或,如果用户输入的密钥不足 16 位,则后面补 0;
 3. 最后,再使用新生成的密钥进行加密;
 
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-3.0/sql-manual/sql-functions/scalar-functions/encrypt-digest-functions/aes-encrypt.md
 
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-3.0/sql-manual/sql-functions/scalar-functions/encrypt-digest-functions/aes-encrypt.md
index 1aa8c37ca0d..cb698455c29 100644
--- 
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-3.0/sql-manual/sql-functions/scalar-functions/encrypt-digest-functions/aes-encrypt.md
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-3.0/sql-manual/sql-functions/scalar-functions/encrypt-digest-functions/aes-encrypt.md
@@ -11,7 +11,7 @@ AES 加密函数。该函数与 MySQL 中的 `AES_ENCRYPT` 函数行为一致。
 
 AES_ENCRYPT 函数对于传入的密钥,并不是直接使用,而是会进一步做处理,具体步骤如下:
 
-1. 根据使用的加密算法,确定密钥的字节数,比如使用 AES_128_ECB 算法,则密钥字节数为 `128 / 8 = 16`(如果使用 
AES_256_ECB 算法,则密钥字节数为 `128 / 8 = 32`);
+1. 根据使用的加密算法,确定密钥的字节数,比如使用 AES_128_ECB 算法,则密钥字节数为 `128 / 8 = 16`(如果使用 
AES_256_ECB 算法,则密钥字节数为 `256 / 8 = 32`);
 2. 然后针对用户输入的密钥,第 `i` 位和第 `16*k+i` 位进行异或,如果用户输入的密钥不足 16 位,则后面补 0;
 3. 最后,再使用新生成的密钥进行加密;
 
diff --git 
a/versioned_docs/version-1.2/sql-manual/sql-functions/encrypt-digest-functions/aes-encrypt.md
 
b/versioned_docs/version-1.2/sql-manual/sql-functions/encrypt-digest-functions/aes-encrypt.md
index b7421151530..4b92d101c81 100644
--- 
a/versioned_docs/version-1.2/sql-manual/sql-functions/encrypt-digest-functions/aes-encrypt.md
+++ 
b/versioned_docs/version-1.2/sql-manual/sql-functions/encrypt-digest-functions/aes-encrypt.md
@@ -27,7 +27,7 @@ Function with two arguments will ignore session variable 
`block_encryption_mode`
 #### Remarks
 
 For the incoming key, the AES_ENCRYPT function not directly uses, but will 
further process it. The specific steps are as follows:
-1. According to the encryption algorithm used, determine the number of bytes 
of the key, for example, if you use the AES_128_ECB algorithm, the number of 
bytes of the key is `128 / 8 = 16` (if you use the AES_256_ECB algorithm, the 
number of bytes of the key is `128 / 8 = 32`). 2;
+1. According to the encryption algorithm used, determine the number of bytes 
of the key, for example, if you use the AES_128_ECB algorithm, the number of 
bytes of the key is `128 / 8 = 16` (if you use the AES_256_ECB algorithm, the 
number of bytes of the key is `256 / 8 = 32`). 2;
 2. then for the key entered by the user, bits `i` and `16*k+i` are used to 
perform an isomorphism, followed by a zero if the key entered by the user is 
less than 16 bits. 3. finally, the newly generated key is used to generate a 
new key;
 3. finally, the newly generated key is used for encryption.
 
diff --git 
a/versioned_docs/version-2.0/sql-manual/sql-functions/encrypt-digest-functions/aes-encrypt.md
 
b/versioned_docs/version-2.0/sql-manual/sql-functions/encrypt-digest-functions/aes-encrypt.md
index de2ab76dab7..3739b941317 100644
--- 
a/versioned_docs/version-2.0/sql-manual/sql-functions/encrypt-digest-functions/aes-encrypt.md
+++ 
b/versioned_docs/version-2.0/sql-manual/sql-functions/encrypt-digest-functions/aes-encrypt.md
@@ -30,7 +30,7 @@ Function with two arguments will ignore session variable 
`block_encryption_mode`
 
 For the incoming key, the AES_ENCRYPT function not directly uses, but will 
further process it. The specific steps are as follows:
 
-1. According to the encryption algorithm used, determine the number of bytes 
of the key, for example, if you use the AES_128_ECB algorithm, the number of 
bytes of the key is `128 / 8 = 16` (if you use the AES_256_ECB algorithm, the 
number of bytes of the key is `128 / 8 = 32`). 2;
+1. According to the encryption algorithm used, determine the number of bytes 
of the key, for example, if you use the AES_128_ECB algorithm, the number of 
bytes of the key is `128 / 8 = 16` (if you use the AES_256_ECB algorithm, the 
number of bytes of the key is `256 / 8 = 32`). 2;
 2. then for the key entered by the user, bits `i` and `16*k+i` are used to 
perform an isomorphism, followed by a zero if the key entered by the user is 
less than 16 bits. 3. finally, the newly generated key is used to generate a 
new key;
 3. finally, the newly generated key is used for encryption.
 
diff --git 
a/versioned_docs/version-2.1/sql-manual/sql-functions/scalar-functions/encrypt-digest-functions/aes-encrypt.md
 
b/versioned_docs/version-2.1/sql-manual/sql-functions/scalar-functions/encrypt-digest-functions/aes-encrypt.md
index 3823773372f..02b78adbd54 100644
--- 
a/versioned_docs/version-2.1/sql-manual/sql-functions/scalar-functions/encrypt-digest-functions/aes-encrypt.md
+++ 
b/versioned_docs/version-2.1/sql-manual/sql-functions/scalar-functions/encrypt-digest-functions/aes-encrypt.md
@@ -11,7 +11,7 @@ AES encryption function. This function behaves the same as 
the `AES_ENCRYPT` fun
 
 The AES_ENCRYPT function does not use the passed key directly, but further 
processes it. The specific steps are as follows:
 
-1. Determine the number of bytes of the key according to the encryption 
algorithm used. For example, if the AES_128_ECB algorithm is used, the number 
of bytes of the key is `128 / 8 = 16` (if the AES_256_ECB algorithm is used, 
the number of bytes of the key is `128 / 8 = 32`);
+1. Determine the number of bytes of the key according to the encryption 
algorithm used. For example, if the AES_128_ECB algorithm is used, the number 
of bytes of the key is `128 / 8 = 16` (if the AES_256_ECB algorithm is used, 
the number of bytes of the key is `256 / 8 = 32`);
 2. Then, for the key input by the user, the `i`th bit and the `16*k+i`th bit 
are XORed. If the key input by the user is less than 16 bits, 0 is added at the 
end.
 3. Finally, use the newly generated key to encrypt;
 
diff --git 
a/versioned_docs/version-3.0/sql-manual/sql-functions/scalar-functions/encrypt-digest-functions/aes-encrypt.md
 
b/versioned_docs/version-3.0/sql-manual/sql-functions/scalar-functions/encrypt-digest-functions/aes-encrypt.md
index 9dae459e50d..88832e1f098 100644
--- 
a/versioned_docs/version-3.0/sql-manual/sql-functions/scalar-functions/encrypt-digest-functions/aes-encrypt.md
+++ 
b/versioned_docs/version-3.0/sql-manual/sql-functions/scalar-functions/encrypt-digest-functions/aes-encrypt.md
@@ -11,7 +11,7 @@ AES encryption function. This function behaves the same as 
the `AES_ENCRYPT` fun
 
 The AES_ENCRYPT function does not use the passed key directly, but further 
processes it. The specific steps are as follows:
 
-1. Determine the number of bytes of the key according to the encryption 
algorithm used. For example, if the AES_128_ECB algorithm is used, the number 
of bytes of the key is `128 / 8 = 16` (if the AES_256_ECB algorithm is used, 
the number of bytes of the key is `128 / 8 = 32`);
+1. Determine the number of bytes of the key according to the encryption 
algorithm used. For example, if the AES_128_ECB algorithm is used, the number 
of bytes of the key is `128 / 8 = 16` (if the AES_256_ECB algorithm is used, 
the number of bytes of the key is `256 / 8 = 32`);
 2. Then, for the key input by the user, the `i`th bit and the `16*k+i`th bit 
are XORed. If the key input by the user is less than 16 bits, 0 is added at the 
end.
 3. Finally, use the newly generated key to encrypt;
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to