Crypto

(No, not that kind of crypto.)

The nova.crypto global object is used to generate cryptographic primitives for use in secure operations.

Added in Nova 10.

Methods

getRandomValues(typedArray)

Filles the provided TypedArray with cryptographically-sound random values. The provided array should be one of the JavaScript integer-based typed arrays, such as Int8Array, Uint8Array, Int16Array, etc. All elements of the array will be overritten. This method returns the same array instance as was passed as an argument.

randomUUID()

Returns a randomly generated, 36-character UUID v4 identifier string.