rsaEncrypt()
function rsaEncrypt(text, publicKeyPem): Promise<string>;
Defined in: crypto/rsaEncrypt.ts:27
RSA 加密
Parameters
| Parameter | Type | Description |
|---|---|---|
text | string | 明文 |
publicKeyPem | string | PEM 格式公钥 |
Returns
Promise<string>
Base64 编码密文
function rsaEncrypt(text, publicKeyPem): Promise<string>;
Defined in: crypto/rsaEncrypt.ts:27
RSA 加密
| Parameter | Type | Description |
|---|---|---|
text | string | 明文 |
publicKeyPem | string | PEM 格式公钥 |
Promise<string>
Base64 编码密文