crypto_blake3
Generate a BLAKE3 hash, keyed-MAC, or key derivation output from text, hex, or base64 input with any output length from 1 to 1024 bytes.
Instructions
BLAKE3 Hash Generator. Compute a BLAKE3 hash of a text string with configurable output length (1-1024 bytes, default 32), in plain-hash, keyed-MAC, or context key-derivation mode. Use crypto_hash instead for MD5/SHA-1/ SHA-256/SHA-512, crypto_sha3 for SHA-3, or crypto_keccak for the pre-standard Keccak used in Ethereum; reach for BLAKE3 when you want the fastest modern hash, an extendable (XOF) digest, a 32-byte keyed MAC, or KDF output from a context string. Runs locally on the input you provide: read-only, non-destructive, deterministic (no random salt), contacts no external service, and is rate-limited (5 requests/min anonymous). Returns the digest as lowercase hex, uppercase hex, and base64, plus the resolved mode, encoding, length, and bit count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Message to hash. Interpreted per the encoding field. The empty string is valid (BLAKE3 of empty input is af1349b9f5f9a1a6a0404dea36dcc9499bcb25c9adc112b7cc9a93cae41f3262 at 32 bytes). | |
| encoding | No | How to decode text into bytes before hashing: UTF-8 text, hex, or base64. | text |
| mode | No | hash = plain BLAKE3 digest; keyed = 32-byte-keyed MAC (requires key); derive-key = KDF from a context string (requires context). | hash |
| length | No | Output digest length in bytes (BLAKE3 is an XOF). Defaults to 32 (256-bit). | |
| key | No | Keying material for mode=keyed. After decoding with keyEncoding it must be exactly 32 bytes. Required and used only when mode=keyed; ignored otherwise. | |
| keyEncoding | No | How to decode key into bytes (must yield 32 bytes). Only applies when mode=keyed. | text |
| context | No | Application-specific context string for mode=derive-key (decoded as UTF-8). Required and used only when mode=derive-key; ignored otherwise. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | No | Digest as lowercase hex. | |
| hashBase64 | No | Same digest encoded as standard base64. | |
| uppercase | No | Same digest as uppercase hex. | |
| algorithm | No | Algorithm id, always blake3. | |
| mode | No | Resolved hashing mode. | |
| encoding | No | Resolved input encoding applied to text. | |
| keyed | No | True when mode=keyed (a 32-byte key was applied). | |
| length | No | Output length in bytes (1-1024). | |
| bits | No | Output length in bits (length x 8). | |
| context | No | Context string echoed back; present only when mode=derive-key. |