W3cubDocs

/Haxe JavaScript

Crypto

package js.html

Available on js

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.

Documentation Crypto by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Variables

read onlysubtle:SubtleCrypto

Returns a SubtleCrypto object providing access to common cryptographic primitives, like hashing, signing, encryption or decryption.

Methods

getRandomValues(array:ArrayBufferView):ArrayBufferView

Fills the passed TypedArray with cryptographically sound random values.

Throws:

null

DOMError

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/Crypto.html