Skip to main content
Generated from the same public contract that feeds the Monaco editor. Declaration-marked deprecated compatibility methods are intentionally excluded. Do not edit this page manually.
This page contains 33 methods. Search the docs for an exact method name, or use this index:

util.sleep()

Waits asynchronously, capped at 60 seconds per call.

Signature

Example

util.aesDecrypt()

AES decrypt helper.

Signature

Example

util.aesEncrypt()

AES encrypt helper.

Signature

Example

util.compareHash()

Compares a value against a password hash.

Signature

Example

util.isBase64()

Checks whether a value is base64.

Signature

Example

util.decodeBase64()

Decodes a base64 string.

Signature

Example

util.encodeBase64()

Encodes a string to base64.

Signature

Example

util.generateHash()

Generates a password hash.

Signature

Example

util.isUUID()

Validates UUID shape.

Signature

Example

util.randomUUID()

Generates a random UUIDv7.

Signature

Example

util.getUUID()

Returns a random UUIDv7 with no arguments, or a deterministic UUIDv5 only when both value and namespace are supplied. Do not generate IDs for server-created platform resources; use this only for caller-owned data values.

Signature

Example

util.hashObject()

Creates a stable hash from an object.

Signature

Example

util.sha1()

SHA-1 hash helper.

Signature

Example

util.sha256()

SHA-256 hash helper.

Signature

Example

util.md5()

MD5 hash helper.

Signature

Example

util.timingSafeEqual()

Performs a timing-safe comparison.

Signature

Example

util.hmac()

Creates an HMAC signature.

Signature

Example

util.verifyHmacSignature()

Verifies an HMAC signature.

Signature

Example

util.base64UrlEncode()

Encodes base64url.

Signature

Example

util.base64UrlDecode()

Decodes base64url.

Signature

Example

util.randomBytes()

Generates random bytes as a string.

Signature

Example

util.randomInt()

Generates a random integer.

Signature

Example

util.randomString()

Generates a random string.

Signature

Example

util.otp()

Generates a numeric one-time code.

Signature

Example

util.validate()

Validates a payload with the platform schema validator used by Endpoints. Notes:
  • When ‘whitelist’ is false and ‘whitelistErrors’ is false, unknown properties are removed from the returned value.

Signature

Example

util.jwtDecode()

Decodes a JWT without verifying it.

Signature

Example

util.jwtSign()

Signs a JWT.

Signature

Example

util.jwtVerify()

Verifies a JWT.

Signature

Example

util.rsaDecrypt()

Decrypts with RSA.

Signature

Example

util.rsaEncrypt()

Encrypts with RSA.

Signature

Example

util.rsaGeneratePair()

Generates an RSA key pair.

Signature

Example

util.rsaSign()

Signs data with RSA.

Signature

Example

util.rsaVerify()

Verifies an RSA signature.

Signature

Example

Last modified on September 5, 2026