Crypto
js.html.Crypto (extern class)
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:
Instance Members
subtle: SubtleCrypto
Returns a SubtleCrypto
object providing access to common cryptographic primitives, like hashing, signing, encryption or decryption.
getRandomValues(array: js.lib.ArrayBufferView): js.lib.ArrayBufferView
Fills the passed TypedArray
with cryptographically sound random values.
Name | Type |
---|---|
array |
js.lib.ArrayBufferView |
Returns |
---|
js.lib.ArrayBufferView |