yeepay_yop_gen_key_pair
Generate asymmetric encryption key pairs (public and private keys) using specified algorithms and formats, then save them locally or as strings. Supports RSA and SM2 algorithms.
Instructions
根据密钥算法生成非对称加密的密钥对(公钥和私钥),并保存到本地路径
参数: algorithm: 密钥算法,可选值为 "RSA" 或 "SM2",默认为 "RSA" key_format: 密钥格式,可选值为 "pkcs8"或"pkcs1",默认为 "pkcs8" storage_type: 密钥存储类型,"file"或"string",默认为 "file"
Input Schema
Name | Required | Description | Default |
---|---|---|---|
algorithm | No | RSA | |
key_format | No | pkcs8 | |
storage_type | No | file |