From 011e7119f0ed128357af4578446a645c6a5b2686 Mon Sep 17 00:00:00 2001 From: Annie_wang Date: Wed, 27 Apr 2022 16:54:54 +0800 Subject: [PATCH] update docs Signed-off-by: Annie_wang --- en/application-dev/reference/apis/js-apis-fileio.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-fileio.md b/en/application-dev/reference/apis/js-apis-fileio.md index 451d5e4f40..d612bda229 100644 --- a/en/application-dev/reference/apis/js-apis-fileio.md +++ b/en/application-dev/reference/apis/js-apis-fileio.md @@ -961,7 +961,7 @@ Asynchronously calculates the hash value of a file. This method uses a promise t | Name | Type | Mandatory | Description | | --------- | ------ | ---- | ---------------------------------------- | | path | string | Yes | Absolute path of the target file. | - | algorithm | string | Yes | Algorithm used to calculate the hash value. The value can be **md5**, **sha1**, or **sha256**. **sha256** is recommended for security purposes.| + | algorithm | string | Yes | Algorithm used to calculate the hash value. The value can be **md5**, **sha1**, or **sha256**.
**sha256** is recommended for security purposes.| - Return value | Type | Description | @@ -990,7 +990,7 @@ Asynchronously calculates the hash value of a file. This method uses a callback | Name | Type | Mandatory | Description | | --------- | --------------------------- | ---- | ---------------------------------------- | | path | string | Yes | Absolute path of the target file. | - | algorithm | string | Yes | Algorithm used to calculate the hash value. The value can be **md5**, **sha1**, or **sha256**. **sha256** is recommended for security purposes.| + | algorithm | string | Yes | Algorithm used to calculate the hash value. The value can be **md5**, **sha1**, or **sha256**.
**sha256** is recommended for security purposes.| | callback | AsyncCallback<string> | Yes | Callback used to return the hash value. The hash value is a hexadecimal string consisting of digits and uppercase letters.| - Example -- GitLab