Crypto class

The interface represents basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives.

Note: This feature is available in Web Workers

The Web Crypto API is accessed through the global crypto property, which is a object.

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

Crypto()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtle SubtleCrypto

Available on Crypto, provided by the PropsCrypto extension

no setter

Methods

getRandomValues(dynamic array) → dynamic

Available on Crypto, provided by the PropsCrypto extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
randomUUID() String

Available on Crypto, provided by the PropsCrypto extension

toString() String
A string representation of this object.
inherited

Operators

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