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
| Member | Status |
|---|
crypto.getRandomValues(typedArray) | Implemented — fills the array with cryptographically strong random values. |
crypto.randomUUID() | Implemented — returns a random v4 UUID string. |
crypto.subtle | The SubtleCrypto interface (see below). |
crypto.subtle
| Operation | Status |
|---|
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 / unwrapKey | Not 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