CryptoKey

interface CryptoKey

JavaScript: CryptoKey

The CryptoKey interface of the Web Crypto API represents a cryptographic key obtained, wrapped, or generated, using the SubtleCrypto facilities.

From MDN: "The CryptoKey interface of the Web Crypto API represents a cryptographic key obtained from one of the SubtleCrypto methods generateKey, deriveKey, importKey, or unwrapKey."

See instance properties for more information. This interface is part of the Web Crypto API (Crypto).

See also

for the main Web Crypto API interface.

for the "Subtle Crypto" module, which provides cryptographic primitives which run in constant-time. Methods on this interface are used to generate, wrap, or otherwise obtain CryptoKey instances.

Types

Link copied to clipboard
interface Constructors

Non-standard interface which gathers the available key creation, generation, and wrapping methods, so they can be defined on a single factory. See MDN documentation for CryptoKey and SubtleCrypto for more information.

Properties

Link copied to clipboard
abstract val algorithm: Any
Link copied to clipboard
abstract val extractable: Boolean
Link copied to clipboard
abstract val type: String
Link copied to clipboard
abstract val usages: Array<String>