10
4

SHAKE128 Hash Generator

Egor VolchenkoEgor Volchenko
CreatedNov 28, 2026
UpdatedNov 28, 2026

This SHAKE128 hash generator returns 16 bytes of SHAKE128 output from text or encoded data. Reproduce a short test vector, check the input encoding, or compare the same fixed-length result with another implementation.

1
Live
Output Format:

How to calculate a SHAKE128 digest

Generate a digest from your input

Start with a known message so you can check the encoding and result format before comparing your own data.

  1. Type or paste your message into Input text. Keep any spaces and line breaks that are part of the data.
  2. Set Input Encoding: to UTF-8 for text, Hex for hexadecimal bytes, or Base64 for Base64-encoded bytes.
  3. Leave Enable HMAC-SHAKE128 off. HMAC is not supported by this SHAKE service.
  4. Select Hex (lower), Hex (UPPER), or Base64 in the result options.
  5. Keep Auto / Live enabled to update the result as you edit the input. Turn it off and click Run for a manual calculation.
  6. Read SHAKE128 Hash Result and click Copy. To start again, use Clear where shown or the clear control in a text field; review the mode and encoding settings before the next calculation.

For a quick check, enter abc with Input Encoding: set to UTF-8 and Enable HMAC-SHAKE128 off. Choose Hex (lower). The result is 5881092dd818bf5cf8a3ddb793fbcba7.

This form returns 16 bytes of SHAKE128 output. The visible HMAC switch is unsupported: enabling it returns an error, not a keyed digest.

Keep the requested SHAKE length consistent

SHAKE128 is an extendable-output function rather than a hash with one mandatory digest size. This form returns 16 bytes and does not offer an output-length control. A test requiring 32 bytes must request that longer length in another implementation.

The 128 in the name identifies the SHAKE variant. It does not mean every possible SHAKE128 output has 128 bits, and retaining only 16 bytes does not provide the collision resistance associated with a 32-byte output. Match the length required by your application.

The current output contains 16 bytes, written as 32 hexadecimal characters. Hex (lower) and Hex (UPPER) change letter case; Base64 represents the same result bytes.

Input encoding determines the bytes being processed. UTF-8 abc, Hex 616263, and Base64 YWJj represent the same three bytes. Leaving UTF-8 selected for 616263 hashes six text characters instead.

The form sends input to the calculation API, so processing requires a network connection. Use public test data when checking an implementation.

Frequently asked questions

SHAKE128 is an extendable-output function standardized alongside SHA-3. This calculator exposes a fixed 16-byte result for testing text or bytes represented as Hex or Base64.

API — SHAKE-128 Digest Calculator

Automate this tool directly from your scripts, CI/CD pipelines, or backend applications via HTTP POST.

No API Key Required 60 req/min
https://million.tools/api/v1/run/shake128

Request Parameters (JSON / Form Data)

  • input_encoding

    Input Encoding

    hex hex_ignore_non_hex base64 utf-8 utf-16le utf-16be windows-1251 windows-1252
    Type: string Default: utf-8
  • start (or input)

    Input text

    Type: string Default: —
  • output_format

    Output encoding format

    hex hex_upper base64
    Type: string Default: hex
  • hmac_enabled

    Enable HMAC-SHAKE128

    Type: boolean Default: false
  • hmac_key

    HMAC Secret Key

    Type: string Default: —
  • hmac_encoding

    Key Encoding (Search/Type)

    hex hex_ignore_non_hex base64 utf-8 utf-16le utf-16be windows-1251 windows-1252
    Type: string Default: utf-8
bash — cURL
curl -X POST https://million.tools/api/v1/run/shake128 \
  -H "Content-Type: application/json" \
  -d '{"input_encoding":"hex","start":"616263"}'
const response = await fetch('https://million.tools/api/v1/run/shake128', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
      "input_encoding": "hex",
      "start": "616263"
  }),
});

const data = await response.json();
console.log(data.result);
import requests

response = requests.post(
    'https://million.tools/api/v1/run/shake128',
    json={
        "input_encoding": "hex",
        "start": "616263",
    },
    timeout=15,
)

data = response.json()
print(data['result'])
$ch = curl_init('https://million.tools/api/v1/run/shake128');
curl_setopt_array($ch, [
    CURLOPT_POST           => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER     => ['Content-Type: application/json'],
    CURLOPT_POSTFIELDS     => json_encode([
        'input_encoding' => 'hex',
        'start' => '616263',
    ]),
]);

$response = json_decode(curl_exec($ch), true);
curl_close($ch);

echo $response['result'] ?? '';
{
    "status": "success",
    "tool": "shake128",
    "service": "shake128",
    "result": "5881092dd818bf5cf8a3ddb793fbcba7",
    "results": {
        "result": "5881092dd818bf5cf8a3ddb793fbcba7"
    }
}
Egor Volchenko
Egor Volchenko Developer & Author

Hi! I’m a WordPress developer with over 10 years of experience. I love Tailwind CSS, clean code, and intuitive interfaces. I’m currently working on million.tools — a service with convenient online tools for everyday tasks. I’m building it from scratch with great attention to detail and user experience.

Published:
Updated:

Ratings & feedback 0

Share your experience with this tool.

Leave feedback

Your rating (optional)

Select a rating

Write a review, leave a rating, or do both.

Your email stays private.

No feedback yet

Be the first to leave a review or rating.