案例
P-256 keys as PEM
Generate a disposable P-256 pair in this browser. Native Web Crypto imports both keys, signs a fixed test message and verifies it. This checks pair consistency, not entropy quality.
输入
Expected checks
EC P-256
Native key import and signing/verification succeed.- 椭圆曲线
P-256- 输出格式
PEM
P-384 keys as PEM
Generate a disposable P-384 pair in this browser. Native Web Crypto imports both keys, signs a fixed test message and verifies it. This checks pair consistency, not entropy quality.
输入
Expected checks
EC P-384
Native key import and signing/verification succeed.- 椭圆曲线
P-384- 输出格式
PEM
P-521 keys as PEM
Generate a disposable P-521 pair in this browser. Native Web Crypto imports both keys, signs a fixed test message and verifies it. This checks pair consistency, not entropy quality.
输入
Expected checks
EC P-521
Native key import and signing/verification succeed.- 椭圆曲线
P-521- 输出格式
PEM
P-256 keys as JWK
Generate a disposable P-256 pair in this browser. Native Web Crypto imports both keys, signs a fixed test message and verifies it. This checks pair consistency, not entropy quality.
输入
Expected checks
EC P-256
Native key import and signing/verification succeed.- 椭圆曲线
P-256- 输出格式
JWK
P-384 keys as JWK
Generate a disposable P-384 pair in this browser. Native Web Crypto imports both keys, signs a fixed test message and verifies it. This checks pair consistency, not entropy quality.
输入
Expected checks
EC P-384
Native key import and signing/verification succeed.- 椭圆曲线
P-384- 输出格式
JWK
参数
| 参数 | 默认值 | 输入与选项 |
|---|---|---|
| 椭圆曲线 | P-256 | P-256, P-384, P-521 |
| 输出格式 | PEM | PEM, DER, JWK |