Hash Utilities

Hash Blake2S

Generate BLAKE2s cryptographic hashes from text input via `/v1/hash/blake2s`. This fast, secure hash function produces 256-bit digests ideal for checksums, data integrity, and password hashing. Use through MCP in Cursor or Windsurf, or call the REST endpoint directly. BLAKE2s outperforms SHA-256 while maintaining cryptographic security.

API Endpoint

GET /v1/hash/blake2s

Code Examples

curl "https://tinyfn.io/v1/hash/blake2s" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/hash/blake2s', {
  headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests

response = requests.get('https://tinyfn.io/v1/hash/blake2s',
    headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)

Use via MCP

Add to your AI agent

Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's hash tools:

{
  "mcpServers": {
    "tinyfn-hash": {
      "url": "https://tinyfn.io/mcp/hash",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

What makes BLAKE2s different from SHA-256 or MD5?

BLAKE2s is faster than SHA-256 while being cryptographically secure, unlike MD5 which is broken. It's optimized for 8-32 byte platforms and produces 256-bit hashes by default.

How do I hash a string using the BLAKE2s MCP tool in Cursor?

Call the hash_blake2s tool with your text as input. The MCP tool handles the API request and returns the hexadecimal hash digest directly in your editor.

What's the output format of the BLAKE2s hash?

Returns a 64-character hexadecimal string representing the 256-bit BLAKE2s digest. Example: 'hello' produces '324dcf027dd4a30a932c441f365a25e86b173defa4b8e58948253471b81b72cf'.

Can I use BLAKE2s for password hashing in production?

BLAKE2s is cryptographically secure but not specifically designed for passwords. For password hashing, use dedicated functions like Argon2, bcrypt, or scrypt that include built-in salt and iteration controls.

Does the BLAKE2s tool support custom digest lengths or keys?

The TinyFn implementation uses standard 256-bit output length without keying. For custom parameters, you'd need to implement BLAKE2s directly in your application.

Try Hash Blake2S Now

Get your free API key and start using Hash Blake2S in seconds.

Get Free API Key