Hash a string with crypt.hash (sha1/sha256/sha384/sha512/md5)
crypt-hashCompute a cryptographic hash digest of a string inside a Roblox executor, choosing sha256, sha1, sha384, sha512, or md5; returns hex digest or a clean error.
Instructions
Compute a cryptographic digest of a string using the executor's crypt.hash(data, algorithm). This is a pure, side-effect-free compute that runs entirely in-game. Supported algorithms are sha1, sha256 (default), sha384, sha512, and md5; the result is the hex digest string returned by the executor. Requires crypt.hash; on an executor without it (no crypt table or no hash function) it returns { error } instead of throwing. The call is pcall-guarded so an unsupported algorithm degrades to a clean error. Returns { hash, algorithm } or { error }. Signature: { data: string, algorithm: any?, threadContext: number?, timeoutMs: number? }. Phase: observe; cost=medium; idempotency=read-only. Requires: active-client. Produces: structured-result. Safety: read-only. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The string to hash. | |
| algorithm | No | The hash algorithm to use (default 'sha256'). | sha256 |
| timeoutMs | No | Optional per-call deadline in milliseconds; omit it to use the tool or server default. | |
| threadContext | No | Optional Roblox thread identity for this call; omit it to use the server default. |