SubtleCrypto class
This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto). Available only in secure contexts.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- SubtleCrypto()
-
factory
Properties
-
decrypt
↔ Future<
ByteBuffer> Function(Object, CryptoKey, Object) -
Available on SubtleCrypto, provided by the SubtleCrypto$Typings extension
getter/setter pair -
deriveBits
↔ Future<
ByteBuffer> Function(Object, CryptoKey, num) -
Available on SubtleCrypto, provided by the SubtleCrypto$Typings extension
getter/setter pair -
deriveKey
→ ({Future<
CryptoKey> Function(Object algorithm, CryptoKey baseKey, Object derivedKeyType, bool extractable, List<KeyUsage> keyUsages) $1, Future<CryptoKey> Function(Object algorithm, CryptoKey baseKey, Object derivedKeyType, bool extractable, Iterable<KeyUsage> keyUsages) $2}) -
Available on SubtleCrypto, provided by the SubtleCrypto$Typings extension
Overload accessor: $1, $2no setter -
digest
↔ Future<
ByteBuffer> Function(Object, Object) -
Available on SubtleCrypto, provided by the SubtleCrypto$Typings extension
getter/setter pair -
encrypt
↔ Future<
ByteBuffer> Function(Object, CryptoKey, Object) -
Available on SubtleCrypto, provided by the SubtleCrypto$Typings extension
getter/setter pair -
exportKey
→ ({Future<
JsonWebKey> Function(String format, CryptoKey key) $1, Future<ByteBuffer> Function(dynamic format, CryptoKey key) $2, Future<Object> Function(KeyFormat format, CryptoKey key) $3}) -
Available on SubtleCrypto, provided by the SubtleCrypto$Typings extension
Overload accessor: $1, $2, $3no setter -
generateKey
→ ({Future<
CryptoKeyPair> Function(String algorithm, bool extractable, ReadonlyArray<GenerateKey> keyUsages) $1, Future<CryptoKeyPair> Function(Algorithm algorithm, bool extractable, ReadonlyArray<KeyUsage> keyUsages) $2, Future<CryptoKey> Function(Algorithm algorithm, bool extractable, ReadonlyArray<KeyUsage> keyUsages) $3, Future<Object> Function(Object algorithm, bool extractable, List<KeyUsage> keyUsages) $4, Future<CryptoKeyPair> Function(Algorithm algorithm, bool extractable, ReadonlyArray<KeyUsage> keyUsages) $5, Future<CryptoKey> Function(Algorithm algorithm, bool extractable, ReadonlyArray<KeyUsage> keyUsages) $6, Future<Object> Function(Object algorithm, bool extractable, Iterable<KeyUsage> keyUsages) $7}) -
Available on SubtleCrypto, provided by the SubtleCrypto$Typings extension
Overload accessor: $1, $2, $3, $4, $5, $6, $7no setter - hashCode → int
-
The hash code for this object.
no setterinherited
-
importKey
→ ({Future<
CryptoKey> Function(String format, JsonWebKey keyData, Object algorithm, bool extractable, ReadonlyArray<KeyUsage> keyUsages) $1, Future<CryptoKey> Function(dynamic format, Object keyData, Object algorithm, bool extractable, List<KeyUsage> keyUsages) $2, Future<CryptoKey> Function(String format, JsonWebKey keyData, Object algorithm, bool extractable, ReadonlyArray<KeyUsage> keyUsages) $3, Future<CryptoKey> Function(dynamic format, Object keyData, Object algorithm, bool extractable, Iterable<KeyUsage> keyUsages) $4}) -
Available on SubtleCrypto, provided by the SubtleCrypto$Typings extension
Overload accessor: $1, $2, $3, $4no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sign
↔ Future<
ByteBuffer> Function(Object, CryptoKey, Object) -
Available on SubtleCrypto, provided by the SubtleCrypto$Typings extension
getter/setter pair -
unwrapKey
→ ({Future<
CryptoKey> Function(KeyFormat format, Object wrappedKey, CryptoKey unwrappingKey, Object unwrapAlgorithm, Object unwrappedKeyAlgorithm, bool extractable, List<KeyUsage> keyUsages) $1, Future<CryptoKey> Function(KeyFormat format, Object wrappedKey, CryptoKey unwrappingKey, Object unwrapAlgorithm, Object unwrappedKeyAlgorithm, bool extractable, Iterable<KeyUsage> keyUsages) $2}) -
Available on SubtleCrypto, provided by the SubtleCrypto$Typings extension
Overload accessor: $1, $2no setter -
verify
↔ Future<
bool> Function(Object, CryptoKey, Object, Object) -
Available on SubtleCrypto, provided by the SubtleCrypto$Typings extension
getter/setter pair -
wrapKey
↔ Future<
ByteBuffer> Function(KeyFormat, CryptoKey, CryptoKey, Object) -
Available on SubtleCrypto, provided by the SubtleCrypto$Typings extension
getter/setter pair
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