魔方生成RSA公私钥
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | common::idcsmart_openssl_rsa_key_create |
| 所属业务 | 公共接口 |
| 来源模块/系统 | 公共函数 |
功能说明
魔方生成RSA公私钥
调用示例
$result = idcsmart_openssl_rsa_key_create();参数
该函数/方法无需传入参数。
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
public_key | string | 公钥 |
private_key | string | 私钥 |
正常返回
{
"public_key": "string",
"private_key": "string"
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |