✨ feat(tsl-api-reference): update API catalog and data dictionary
This commit is contained in:
@@ -4,7 +4,9 @@
|
||||
|
||||
声明:class
|
||||
|
||||
TCipher 内置对象
|
||||
提供对称加密和解密能力的内置对象
|
||||
|
||||
<!-- tags: Object TCipher 对称加密 对象 实例 -->
|
||||
|
||||
### `create(mode)`
|
||||
|
||||
@@ -12,13 +14,15 @@ TCipher 内置对象
|
||||
|
||||
创建 TCipher 实例
|
||||
|
||||
<!-- tags: Object TCipher 对称加密 创建 生成 对象 实例 -->
|
||||
|
||||
可见性:public
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------ | ------- | -------------- |
|
||||
| `mode` | integer | mode,取值见下 |
|
||||
|
||||
### mode 取值
|
||||
#### `mode` 取值
|
||||
|
||||
- `1` — DES_ECB(密钥长度(字节)8,IV长度(字节)0)
|
||||
- `2` — DEC_CBC(密钥长度(字节)8,IV长度(字节)8)
|
||||
@@ -47,11 +51,13 @@ TCipher 内置对象
|
||||
|
||||
字符串s的内容解密,返回解密后的字符串
|
||||
|
||||
<!-- tags: Object TCipher 对称加密 对象 实例 -->
|
||||
|
||||
可见性:public
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `s` | any | s |
|
||||
| ---- | ---- | ---- |
|
||||
| `s` | any | s |
|
||||
|
||||
返回:string
|
||||
|
||||
@@ -61,14 +67,16 @@ TCipher 内置对象
|
||||
|
||||
对文件src_filename进行解密,加密后的内容写入dest_filename文件中
|
||||
|
||||
<!-- tags: Object TCipher 对称加密 对象 实例 -->
|
||||
|
||||
可见性:public
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `src_alias` | any | src_alias |
|
||||
| `src_filename` | any | src_filename |
|
||||
| `dest_alias` | any | dest_alias |
|
||||
| `dest_filename` | any | dest_filename |
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ---- | ------------- |
|
||||
| `src_alias` | any | src_alias |
|
||||
| `src_filename` | any | src_filename |
|
||||
| `dest_alias` | any | dest_alias |
|
||||
| `dest_filename` | any | dest_filename |
|
||||
|
||||
返回:any
|
||||
|
||||
@@ -78,11 +86,13 @@ TCipher 内置对象
|
||||
|
||||
对字符串s的内容加密,返回加密后的字符串
|
||||
|
||||
<!-- tags: Object TCipher 对称加密 对象 实例 -->
|
||||
|
||||
可见性:public
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `s` | any | s |
|
||||
| ---- | ---- | ---- |
|
||||
| `s` | any | s |
|
||||
|
||||
返回:string
|
||||
|
||||
@@ -92,14 +102,16 @@ TCipher 内置对象
|
||||
|
||||
对文件src_filename进行加密,加密后的内容写入dest_filename文件中
|
||||
|
||||
<!-- tags: Object TCipher 对称加密 对象 实例 -->
|
||||
|
||||
可见性:public
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --- | --- | --- |
|
||||
| `src_alias` | any | src_alias |
|
||||
| `src_filename` | any | src_filename |
|
||||
| `dest_alias` | any | dest_alias |
|
||||
| `dest_filename` | any | dest_filename |
|
||||
| 参数 | 类型 | 说明 |
|
||||
| --------------- | ---- | ------------- |
|
||||
| `src_alias` | any | src_alias |
|
||||
| `src_filename` | any | src_filename |
|
||||
| `dest_alias` | any | dest_alias |
|
||||
| `dest_filename` | any | dest_filename |
|
||||
|
||||
返回:any
|
||||
|
||||
@@ -109,6 +121,8 @@ TCipher 内置对象
|
||||
|
||||
初始化向量,hex字符串
|
||||
|
||||
<!-- tags: Object TCipher 对称加密 对象 实例 -->
|
||||
|
||||
可见性:public
|
||||
|
||||
类型:string
|
||||
@@ -121,6 +135,8 @@ TCipher 内置对象
|
||||
|
||||
秘钥,hex字符串
|
||||
|
||||
<!-- tags: Object TCipher 对称加密 对象 实例 -->
|
||||
|
||||
可见性:public
|
||||
|
||||
类型:string
|
||||
@@ -131,7 +147,9 @@ TCipher 内置对象
|
||||
|
||||
声明:property
|
||||
|
||||
密钥长度
|
||||
获取密钥长度
|
||||
|
||||
<!-- tags: Object TCipher 对称加密 获取 查询 对象 实例 -->
|
||||
|
||||
可见性:public
|
||||
|
||||
@@ -143,7 +161,9 @@ TCipher 内置对象
|
||||
|
||||
声明:property
|
||||
|
||||
初始化向量长度
|
||||
获取初始化向量长度
|
||||
|
||||
<!-- tags: Object TCipher 对称加密 获取 查询 对象 实例 -->
|
||||
|
||||
可见性:public
|
||||
|
||||
@@ -155,7 +175,9 @@ TCipher 内置对象
|
||||
|
||||
声明:property
|
||||
|
||||
算法类型
|
||||
设置算法类型
|
||||
|
||||
<!-- tags: Object TCipher 对称加密 设置 修改 对象 实例 -->
|
||||
|
||||
可见性:public
|
||||
|
||||
@@ -167,7 +189,9 @@ TCipher 内置对象
|
||||
|
||||
声明:property
|
||||
|
||||
密码
|
||||
设置密码
|
||||
|
||||
<!-- tags: Object TCipher 对称加密 设置 修改 对象 实例 -->
|
||||
|
||||
可见性:public
|
||||
|
||||
|
||||
Reference in New Issue
Block a user