Crypto

@native @JSType
trait Crypto extends Object

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.

class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def getRandomValues(array: ArrayBufferView): ArrayBufferView

Fills the passed TypedArray with cryptographically sound random values.

Fills the passed TypedArray with cryptographically sound random values.

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object

Concrete fields

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

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