SHAKE128 Hash Generator
Developer & Author —Egor VolchenkoThis 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.
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.
- Type or paste your message into Input text. Keep any spaces and line breaks that are part of the data.
- Set Input Encoding: to UTF-8 for text, Hex for hexadecimal bytes, or Base64 for Base64-encoded bytes.
- Leave Enable HMAC-SHAKE128 off. HMAC is not supported by this SHAKE service.
- Select Hex (lower), Hex (UPPER), or Base64 in the result options.
- Keep Auto / Live enabled to update the result as you edit the input. Turn it off and click Run for a manual calculation.
- 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.
https://million.tools/api/v1/run/shake128 Request Parameters (JSON / Form Data)
-
input_encodingInput Encoding
hexhex_ignore_non_hexbase64utf-8utf-16leutf-16bewindows-1251windows-1252 -
start(orinput)Input text
-
output_formatOutput encoding format
hexhex_upperbase64 -
hmac_enabledEnable HMAC-SHAKE128
-
hmac_keyHMAC Secret Key
-
hmac_encodingKey Encoding (Search/Type)
hexhex_ignore_non_hexbase64utf-8utf-16leutf-16bewindows-1251windows-1252
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"
}
}
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.
Ratings & feedback 0
Share your experience with this tool.
No feedback yet
Be the first to leave a review or rating.