crypto
NamespaceNamespace in the Lens Scripting API.
- Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.
Namespaces
| Namespace | Description |
|---|---|
| subtle | - |
Functions
| Function | Description |
|---|---|
| getRandomValues | Fills a provided Uint8Array with cryptographically secure random values. This method emulates crypto.getRandomValues() from the Web Crypto API. |
| randomUUID | Generates a cryptographically secure UUID. This method mimics crypto.randomUUID() from the Web Crypto API. |