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 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, CryptoKey, Object, bool, List<KeyUsage> ) -
Available on SubtleCrypto, provided by the SubtleCrypto$Typings extension
getter/setter pair -
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}) -
Available on SubtleCrypto, provided by the SubtleCrypto$Typings extension
Overload accessor: $1, $2no setter -
generateKey
→ ({Future<
CryptoKeyPair> Function(Algorithm algorithm, bool extractable, List<KeyUsage> keyUsages) $1, Future<CryptoKey> Function(Algorithm algorithm, bool extractable, List<KeyUsage> keyUsages) $2, Future<Object> Function(Object algorithm, bool extractable, List<KeyUsage> keyUsages) $3}) -
Available on SubtleCrypto, provided by the SubtleCrypto$Typings extension
Overload accessor: $1, $2, $3no setter - hashCode → int
-
The hash code for this object.
no setterinherited
-
importKey
→ ({Future<
CryptoKey> Function(String format, JsonWebKey keyData, Object algorithm, bool extractable, List<KeyUsage> keyUsages) $1, Future<CryptoKey> Function(dynamic format, Object keyData, Object algorithm, bool extractable, List<KeyUsage> keyUsages) $2}) -
Available on SubtleCrypto, provided by the SubtleCrypto$Typings extension
Overload accessor: $1, $2no 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, Object, CryptoKey, Object, Object, bool, List<KeyUsage> ) -
Available on SubtleCrypto, provided by the SubtleCrypto$Typings extension
getter/setter pair -
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