method SubtleCrypto.exportKey
#SubtleCrypto.exportKey(format: "jwk",key: CryptoKey,): Promise<JsonWebKey>
Exports a cryptographic key in JSON Web Key (JWK) format.
This method allows exporting an asymmetric key (e.g., RSA, ECDSA) into a JSON-based representation, making it easy to store and transfer across systems.
Examples #
#
await crypto.subtle.exportKey("jwk", key);
Parameters #
Return Type #
Promise<JsonWebKey>
See #
#SubtleCrypto.exportKey(): Promise<ArrayBuffer>