0
0

ChaCha20 Decryption

Egor VolchenkoEgor Volchenko
CreatedDec 2, 2026
UpdatedDec 2, 2026

This 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.

1
1

How to use ChaCha20 Decryption

Use the following steps to process a small test input.

Decrypt a ChaCha20 test payload

  1. 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.
  2. Enter the same 32-byte UTF-8 key in Decryption Key / Password. This form has no separate key-encoding or password-derivation selector.
  3. Leave IV / Nonce (Optional / Auto-generated) blank: its typed value is ignored. The operation reads the prefix from the complete ciphertext.
  4. Leave Auto / Live on for updates, or turn it off and click Decrypt.
  5. Read Decrypted Plaintext. Readable output alone does not authenticate the ciphertext.
  6. 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.

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

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)

    Ciphertext

    Type: string Default: —
  • hmac_key

    Decryption Key / Password

    Type: string Default: —
  • cipher_iv

    IV / Nonce (Optional / Auto-generated)

    Type: string Default: —
bash — cURL
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"
    }
}
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.