Crypto extension type

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

The Crypto is available in windows using the Window.crypto property and in workers using the the WorkerGlobalScope.crypto property.


API documentation sourced from MDN Web Docs.

on
Implemented types
Available extensions

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
The Crypto.subtle read-only property returns a SubtleCrypto which can then be used to perform low-level cryptographic operations.
no setter

Methods

getRandomValues(ArrayBufferView array) ArrayBufferView
The Crypto.getRandomValues() method lets you get cryptographically strong random values. The array given as the parameter is filled with random numbers (random in its cryptographic meaning).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
randomUUID() String
The randomUUID() method of the Crypto interface is used to generate a v4 using a cryptographically secure random number generator.
toString() String
A string representation of this object.
inherited

Operators

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