Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.
▸ generateKeyPair(alg
, options
?): Promise
<CryptoKeyPair
>
Generates a CryptoKeyPair for a given JWS alg
Algorithm identifier.
Parameter | Type | Description |
---|---|---|
alg |
string |
Supported JWS alg Algorithm identifier. Must be a supported JWS Algorithm. |
options ? |
GenerateKeyPairOptions |
- |