Files
playbook/skills/tsl-api-reference/references/codegen/builtin/object/trsa.md
T
csh 9010829c6d feat(tsl-api-reference): expand and reorganize api catalog
Flatten builtin pages, add third-party and platform scopes, and import financial and data warehouse references.

Keep the existing generated index without rebuilding after signature normalization.
2026-08-10 18:26:24 +08:00

1.2 KiB

Object - TRSA 非对称加密

TRSA

声明:class

TRSA 内置对象

create()

声明:function

创建 TRSA 实例

可见性:public

priDecrypt(s)

声明:function

对字符串s的内容用私钥解密

可见性:public

参数 类型 说明
s any s

返回:string

priEncrypt(s)

声明:function

对字符串s的内容用私钥加密

可见性:public

参数 类型 说明
s any s

返回:string

pubDecrypt(s)

声明:function

对字符串s的内容用公钥解密

可见性:public

参数 类型 说明
s any s

返回:string

pubEncrypt(s)

声明:function

对字符串s的内容用公钥加密

可见性:public

参数 类型 说明
s any s

返回:string

GenerateKey

声明:property

生成指定位数的公钥和私钥,位数必须是256的正整数倍,最大4096

可见性:public

类型:any

访问:read/write

PrivateKey

声明:property

私钥

可见性:public

类型:string

访问:read/write

PublicKey

声明:property

公钥

可见性:public

类型:string

访问:read/write