Tools/encoding
Encoding & Hashing

Encoding & Hashing

Active

Models fudge hashes, base64, and UUIDs; this returns exact, byte-for-byte results.

5 tools

Deterministic encoding and identifier utilities: hash text (MD5/SHA), base64 and URL encode or decode, generate UUIDs (v4/v7), and decode JWTs. Exact, byte-for-byte results computed locally, where a model would otherwise guess.

Developer Toolsencodinghashingbase64uuidjwthex

Tools (5)

url

URL percent-encode or decode text.

Free

Example prompts

  • URL-encode "a b&c=d"
  • Decode %2Fpath%3Fq%3D1
  • Form-encode "first name=Jane"

Parameters

plusbooleanoptional

Encode/decode spaces as '+' (form style) instead of '%20'. Defaults to false.

textstringrequired

Text to encode, or percent-encoded string to decode.

actionstringoptional

Whether to encode or decode. Defaults to encode.

API Usage

curl -X POST "https://skill.askfaro.com/skills/encoding/run" \
  -H "Authorization: Bearer faro_<your_key>" \
  -H "Content-Type: application/json" \
  -d '{
  "intent": {
    "prompt": "URL-encode \"a b&c=d\""
  }
}'

CLI Usage

askfaro describe encoding/encoding.url

Install pip install askfaro-cli, then askfaro auth login.

Decode a JWT's header and payload without verifying its signature.

Free

Example prompts

  • Decode this JWT
  • What claims are in this token?
  • Show the payload of this JWT

Parameters

tokenstringrequired

The JWT string to decode.

API Usage

curl -X POST "https://skill.askfaro.com/skills/encoding/run" \
  -H "Authorization: Bearer faro_<your_key>" \
  -H "Content-Type: application/json" \
  -d '{
  "intent": {
    "prompt": "Decode this JWT"
  }
}'

CLI Usage

askfaro describe encoding/encoding.jwt_decode

Install pip install askfaro-cli, then askfaro auth login.

uuid

Generate one or more UUIDs (random v4 or time-ordered v7).

Free

Example prompts

  • Generate a UUID
  • Give me 5 UUIDs
  • Create a v7 UUID

Parameters

countintegeroptional

How many UUIDs to generate. Defaults to 1.

versionintegeroptional

UUID version. 4 = random, 7 = time-ordered. Defaults to 4.

API Usage

curl -X POST "https://skill.askfaro.com/skills/encoding/run" \
  -H "Authorization: Bearer faro_<your_key>" \
  -H "Content-Type: application/json" \
  -d '{
  "intent": {
    "prompt": "Generate a UUID"
  }
}'

CLI Usage

askfaro describe encoding/encoding.uuid

Install pip install askfaro-cli, then askfaro auth login.

Base64 encode or decode text, with optional URL-safe alphabet.

Free

Example prompts

  • Base64 encode "Hello, World!"
  • Decode aGVsbG8= from base64
  • URL-safe base64 encode this token

Parameters

textstringrequired

Text to encode, or base64 string to decode.

actionstringoptional

Whether to encode or decode. Defaults to encode.

url_safebooleanoptional

Use the URL/filename-safe base64 alphabet. Defaults to false.

API Usage

curl -X POST "https://skill.askfaro.com/skills/encoding/run" \
  -H "Authorization: Bearer faro_<your_key>" \
  -H "Content-Type: application/json" \
  -d '{
  "intent": {
    "prompt": "Base64 encode \"Hello, World!\""
  }
}'

CLI Usage

askfaro describe encoding/encoding.base64

Install pip install askfaro-cli, then askfaro auth login.

hash

Hash text with MD5, SHA-1, SHA-256, or SHA-512; returns hex and base64 digests.

Free

Example prompts

  • SHA-256 of "hello world"
  • MD5 hash of this string
  • Give me the SHA-512 digest of my-api-key

Parameters

textstringrequired

The text to hash (UTF-8).

algorithmstringoptional

Hash algorithm. Defaults to sha256.

API Usage

curl -X POST "https://skill.askfaro.com/skills/encoding/run" \
  -H "Authorization: Bearer faro_<your_key>" \
  -H "Content-Type: application/json" \
  -d '{
  "intent": {
    "prompt": "SHA-256 of \"hello world\""
  }
}'

CLI Usage

askfaro describe encoding/encoding.hash

Install pip install askfaro-cli, then askfaro auth login.