Webcrypto

Provides cryptographically strong random number generation and access to the SubtleCrypto interface for low-level cryptographic operations.

Module: whatwg.webcrypto Support: Experimental Since: 1.1.0 Docs: WHATWG Docs

Namespace crypto

Provides cryptographically strong random number generation and access to the SubtleCrypto interface for low-level cryptographic operations.

Since: 1.1.0 Docs: WHATWG Docs

3 members: 3 undocumented

Static Methods

⚪ randomUUID()
→ string
⚪ getRandomValues(array)
→ BufferSource

Properties

⚪ subtle
→ SubtleCrypto

---

Details

getRandomValues(array)

static getRandomValues(array: BufferSource): BufferSource static getRandomValues(array: BufferSource): BufferSource
ParameterTypeDescription
arrayBufferSourceThe typed array to fill with cryptographically random values.
Returns: BufferSource The same array filled with random values. Throws:
  • QuotaExceededError --- If the array is larger than 65536 bytes.

---