Crypto class

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

MDN Reference

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

Crypto()
factory

Properties

getRandomValues ↔ T Function<T extends ArrayBufferView?>(T)

Available on Crypto, provided by the Crypto$Typings extension

getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
randomUUID String Function()

Available on Crypto, provided by the Crypto$Typings extension

getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtle SubtleCrypto

Available on Crypto, provided by the Crypto$Typings extension

Available only in secure contexts.
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