exportKey

inline suspend fun SubtleCrypto.exportKey(format: KeyFormat.jwk, key: CryptoKey): JsonWebKey(source)

The exportKey() method of the SubtleCrypto interface exports a key: that is, it takes as input a CryptoKey object and gives you the key in an external, portable format.

MDN Reference


inline suspend fun SubtleCrypto.exportKey(format: KeyFormat, key: CryptoKey): ArrayBuffer(source)