CryptoKey extension type

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

For security reasons, the CryptoKey interface can only be used in a secure context.


API documentation sourced from MDN Web Docs.

on
Implemented types
Available extensions

Properties

algorithm JSObject
The read-only algorithm property of the CryptoKey interface returns an object describing the algorithm for which this key can be used, and any associated extra parameters.
no setter
extractable bool
The read-only extractable property of the CryptoKey interface indicates whether or not the key may be extracted using SubtleCrypto.exportKey() or SubtleCrypto.wrapKey().
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type KeyType
The read-only type property of the CryptoKey interface indicates which kind of key is represented by the object. It can have the following values:
no setter
usages JSObject
The read-only usages property of the CryptoKey interface indicates what can be done with the key.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited