You need to sign in or sign up before continuing.
未验证 提交 d0b924ee 编写于 作者: O openharmony_ci 提交者: Gitee

!15950 【开发自提单】修改cipher文档,更新模块与属性信息

Merge pull request !15950 from 胡啸天/master
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
> **说明:** > **说明:**
> >
> 本模块首批接口从API version 3开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 > 本模块首批接口从API version 3开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
>
> 从API version 9开始废弃, 建议使用[cryptoFramework-Cipher](js-apis-cryptoFramework.md#Cipher)替代。
## 导入模块 ## 导入模块
...@@ -18,9 +19,10 @@ import cipher from '@system.cipher'; ...@@ -18,9 +19,10 @@ import cipher from '@system.cipher';
**系统能力**:SystemCapability.Security.Cipher **系统能力**:SystemCapability.Security.Cipher
| 参数名 | 类型 | 必填 | 说明 | | 名称 | 类型 | 可读 | 可写 |说明 |
| ------ | ------ | ---- | ------------ | | ------ | ------ | ---- | ---- | ------------ |
| text | string | 是 | 返回的内容。 | | text | string | 是 | 否 | 返回的内容。 |
## CipherRsaOptions ## CipherRsaOptions
...@@ -28,7 +30,7 @@ import cipher from '@system.cipher'; ...@@ -28,7 +30,7 @@ import cipher from '@system.cipher';
**系统能力**:SystemCapability.Security.Cipher **系统能力**:SystemCapability.Security.Cipher
| 参数名 | 类型 | 必填 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| -------------- | ------------------------------------ | ---- | ------------------------------------------------------------ | | -------------- | ------------------------------------ | ---- | ------------------------------------------------------------ |
| action | string | 是 | 加密类型,可选项有:<br/>1. encrypt 加密<br/>2. decrypt 解密 | | action | string | 是 | 加密类型,可选项有:<br/>1. encrypt 加密<br/>2. decrypt 解密 |
| text | string | 是 | 待加密或解密的文本内容。待加密的文本内容应该是一段普通文本,长度不能超过 keySize / 8 - 66,其中 keySize 是密钥的长度(例如密钥长度为 1024 时,text 不能超过 62 个字节)。待解密的文本内容应该是经过 base64 编码的一段二进制值。base64 编码使用默认风格。 | | text | string | 是 | 待加密或解密的文本内容。待加密的文本内容应该是一段普通文本,长度不能超过 keySize / 8 - 66,其中 keySize 是密钥的长度(例如密钥长度为 1024 时,text 不能超过 62 个字节)。待解密的文本内容应该是经过 base64 编码的一段二进制值。base64 编码使用默认风格。 |
...@@ -44,7 +46,7 @@ import cipher from '@system.cipher'; ...@@ -44,7 +46,7 @@ import cipher from '@system.cipher';
**系统能力**:SystemCapability.Security.Cipher **系统能力**:SystemCapability.Security.Cipher
| 参数名 | 类型 | 必填 | 说明 | | 名称 | 类型 | 必填 | 说明 |
| -------------- | ------------------------------------ | ---- | ------------------------------------------------------------ | | -------------- | ------------------------------------ | ---- | ------------------------------------------------------------ |
| action | string | 是 | 加密类型,可选项有:<br/>1. encrypt 加密<br/>2. decrypt 解密 | | action | string | 是 | 加密类型,可选项有:<br/>1. encrypt 加密<br/>2. decrypt 解密 |
| text | string | 是 | 待加密或解密的文本内容。待加密的文本内容应该是一段普通文本。待解密的文本内容应该是经过 base64 编码的一段二进制值。base64 编码使用默认风格。 | | text | string | 是 | 待加密或解密的文本内容。待加密的文本内容应该是一段普通文本。待解密的文本内容应该是经过 base64 编码的一段二进制值。base64 编码使用默认风格。 |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册