developer

Use this when you need the exact SHA-1, SHA-256, and/or SHA-512 hex digest of a UTF-8 string — never recall or guess a hash, since digests cannot be produced from memory.

Use this when you need the exact SHA-1, SHA-256, and/or SHA-512 hex digest of a UTF-8 string — never recall or guess a hash, since digests cannot be produced from memory. Deterministic: same input, same output. Pass algorithm for a single digest or algorithms for a subset; the default computes all three. The empty string is valid, and byteLength reports the UTF-8 encoded byte length of the input. Example: text "hello" with algorithm SHA-256 -> byteLength 5, hashes["SHA-256"] = "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824".

post/v1/hash_text

Request

  • Base URL: https://api.clean.tools
  • URL: https://api.clean.tools/v1/hash_text
  • Auth: none declared

Request body

textstring required

The text to hash (UTF-8; empty string is allowed).

algorithm'SHA-1' | 'SHA-256' | 'SHA-512'

A single algorithm to compute.

algorithmsstring[]

Multiple algorithms (default: all three).

Response

Structured tool result.

toolstring

Changes

No recorded changes to this operation across all 1 revision of this API.