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