Web Crypto

Elide exposes the WHATWG Web Crypto API as the guest global crypto. This is a distinct surface from node:crypto and the elide.crypto host primitives.

crypto

MemberStatus
crypto.getRandomValues(typedArray)Implemented — fills the array with cryptographically strong random values.
crypto.randomUUID()Implemented — returns a random v4 UUID string.
crypto.subtleThe SubtleCrypto interface (see below).

crypto.subtle

OperationStatus
digest(algorithm, data)Implemented for SHA-1, SHA-256, SHA-384, SHA-512 — returns Promise.
encrypt / decrypt / sign / verify / generateKey / importKey / exportKey / deriveBits / deriveKey / wrapKey / unwrapKeyNot implemented — reject with a DOMException named NotSupportedError.
Only digest is wired today; every other subtle operation returns a rejected promise with NotSupportedError, per the Web Cryptography API.

See also