pipr.tools

hash

SHA-256 hash of input

⚡ Gen

Try it

stdin0 chars
stdout0 chars

Example

Compute SHA-256 hash of a string

Usage
$ echo "hello world" | hash
View source
async (input) => {
      const data = new TextEncoder().encode(input);
      const hash = await crypto.subtle.digest("SHA-256", data);
      return Array.from(new Uint8Array(hash))
        .map((b) => b.toString(16).padStart(2, "0"))
        .join("");
    }

Suggested Pipelines

Related Tools