Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 1.05 KB

generateKeyPair.md

File metadata and controls

22 lines (13 loc) · 1.05 KB

Function: generateKeyPair()

💗 Help the project

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.

Parameters

Parameter Type Description
alg string Supported JWS alg Algorithm identifier. Must be a supported JWS Algorithm.
options? GenerateKeyPairOptions -

Returns

Promise<CryptoKeyPair>