ChaCha20 Decryption
Developer & Author —Egor VolchenkoThis ChaCha20 decryption tool restores a compatible payload entered as Hex or Base64 using the matching raw key. It expects a 16-byte initial-state prefix followed by ciphertext. The recovered bytes are displayed as UTF-8 text; the separate IV / Nonce field is not used.
How to use ChaCha20 Decryption
Use the following steps to process a small test input.
Decrypt a ChaCha20 test payload
- Paste the complete prefixed payload into Ciphertext. Set Input Encoding: to Hex for hexadecimal data or Base64 for Base64 data. The default UTF-8 choice also reads ciphertext as Base64.
- Enter the same 32-byte UTF-8 key in Decryption Key / Password. This form has no separate key-encoding or password-derivation selector.
- Leave IV / Nonce (Optional / Auto-generated) blank: its typed value is ignored. The operation reads the prefix from the complete ciphertext.
- Leave Auto / Live on for updates, or turn it off and click Decrypt.
- Read Decrypted Plaintext. Readable output alone does not authenticate the ciphertext.
- Click Copy to copy the result. Use Clear where shown, or the field clear controls, to remove the text.
With Hex selected, payload 812100192a74c032ee458b8d145eb3c68f55cd85b2 and UTF-8 key 0123456789abcdef0123456789abcdef decrypt to hello. Keep the full payload, including its prefix. The key is public test data.
A rejected request may leave an earlier result visible. Clear the fields and recheck the input before relying on a new calculation.
Match the payload layout
This operation expects a 16-byte initial-state prefix followed by ciphertext. This is the OpenSSL-style ChaCha20 layout with a 16-byte initial state, not a bare IETF 12-byte-nonce packet. No XChaCha20 or initial-counter setting is exposed.
Treat the key as bytes
Decryption Key / Password is interpreted as UTF-8 text, even if it looks like Hex or Base64. Internally, shorter keys are zero-padded and longer keys are truncated to 32 bytes; this does not provide password stretching. Use an exact 32-byte test key when comparing results. No output-encoding selector is exposed, so arbitrary decrypted binary data may not display faithfully.
Frequently asked questions
The visible IV / Nonce (Optional / Auto-generated) field is ignored by this operation. Encryption generates the prefix; decryption reads it from the payload.
API — ChaCha20 Payload Decoder
Automate this tool directly from your scripts, CI/CD pipelines, or backend applications via HTTP POST.
https://million.tools/api/v1/run/chacha20-decrypt Request Parameters (JSON / Form Data)
-
input_encodingInput Encoding
hexhex_ignore_non_hexbase64utf-8utf-16leutf-16bewindows-1251windows-1252 -
start(orinput)Ciphertext
-
hmac_keyDecryption Key / Password
-
cipher_ivIV / Nonce (Optional / Auto-generated)
curl -X POST https://million.tools/api/v1/run/chacha20-decrypt \
-H "Content-Type: application/json" \
-d '{"start":"AAAAAAAAAAAAAQIDBAUGB8gch5zM","hmac_key":"0123456789abcdef0123456789abcdef"}' const response = await fetch('https://million.tools/api/v1/run/chacha20-decrypt', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
"start": "AAAAAAAAAAAAAQIDBAUGB8gch5zM",
"hmac_key": "0123456789abcdef0123456789abcdef"
}),
});
const data = await response.json();
console.log(data.result); import requests
response = requests.post(
'https://million.tools/api/v1/run/chacha20-decrypt',
json={
"start": "AAAAAAAAAAAAAQIDBAUGB8gch5zM",
"hmac_key": "0123456789abcdef0123456789abcdef",
},
timeout=15,
)
data = response.json()
print(data['result']) $ch = curl_init('https://million.tools/api/v1/run/chacha20-decrypt');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Content-Type: application/json'],
CURLOPT_POSTFIELDS => json_encode([
'start' => 'AAAAAAAAAAAAAQIDBAUGB8gch5zM',
'hmac_key' => '0123456789abcdef0123456789abcdef',
]),
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
echo $response['result'] ?? ''; {
"status": "success",
"tool": "chacha20-decrypt",
"service": "chacha20_decrypt",
"result": "hello",
"results": {
"result": "hello"
}
}
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.