生成 RSA 密钥对

按照相应算法或格式生成 RSA 密钥对。

输入: 文本结果: 文本

文本输入

工具选项

案例

Example keys and passwords are public test material.

Generate a disposable demonstration key. Native Web Crypto imports the private key and checks its modulus length and a sign/verify round trip. A 1024-bit key is obsolete for new security designs; do not retain these example keys.

1024-bit RSA keys as PEM

输入

Expected checks

RSA 1024 bits
Native key import and signing/verification succeed.
RSA 密钥长度
1024
输出格式
PEM
2048-bit RSA keys as PEM

输入

Expected checks

RSA 2048 bits
Native key import and signing/verification succeed.
RSA 密钥长度
2048
输出格式
PEM
4096-bit RSA keys as PEM

输入

Expected checks

RSA 4096 bits
Native key import and signing/verification succeed.
RSA 密钥长度
4096
输出格式
PEM
1024-bit RSA keys as DER

输入

Expected checks

RSA 1024 bits
Native key import and signing/verification succeed.
RSA 密钥长度
1024
输出格式
DER
2048-bit RSA keys as DER

输入

Expected checks

RSA 2048 bits
Native key import and signing/verification succeed.
RSA 密钥长度
2048
输出格式
DER

参数

参数默认值输入与选项
RSA 密钥长度10241024, 2048, 4096
输出格式PEMPEM, JSON, DER

相关工具

公钥

操作参考

查看原始技术文档 (English)