0
0

ChaCha20-Poly1305 Decryption

Egor VolchenkoEgor Volchenko
CreatedDec 5, 2026
UpdatedDec 5, 2026

This ChaCha20-Poly1305 decryption tool restores a compatible payload entered as Hex or Base64 using the matching raw key. It expects a 12-byte nonce, the ciphertext, and a final 16-byte authentication tag. The recovered bytes are displayed as UTF-8 text; the separate IV / Nonce field is not used.

1
1

How to use ChaCha20-Poly1305 Decryption

Use the following steps to process a small test input.

Decrypt a ChaCha20-Poly1305 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. A rejected authentication tag prevents successful decryption.
  6. Click Copy to copy the result. Use Clear where shown, or the field clear controls, to remove the text.

With Hex selected, payload fe0c49e40991416514233a51aec241baa61bca6b346f7dfd17ddaa68e7574d5c38 and UTF-8 key 0123456789abcdef0123456789abcdef decrypt to hello. Keep the full payload, including its prefix and authentication tag. 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 12-byte nonce, the ciphertext, and a final 16-byte authentication tag. The nonce and tag travel inside the encoded result. There is no AAD input, detached-tag mode, or XChaCha20-Poly1305 selector.

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-Poly1305 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-poly1305-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-poly1305-decrypt \
  -H "Content-Type: application/json" \
  -d '{"start":"AAECAwQFBgcICQoLkFo4VAgpynYpt2pQwiZGCH0N9N7x","hmac_key":"0123456789abcdef0123456789abcdef"}'
const response = await fetch('https://million.tools/api/v1/run/chacha20-poly1305-decrypt', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
      "start": "AAECAwQFBgcICQoLkFo4VAgpynYpt2pQwiZGCH0N9N7x",
      "hmac_key": "0123456789abcdef0123456789abcdef"
  }),
});

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

response = requests.post(
    'https://million.tools/api/v1/run/chacha20-poly1305-decrypt',
    json={
        "start": "AAECAwQFBgcICQoLkFo4VAgpynYpt2pQwiZGCH0N9N7x",
        "hmac_key": "0123456789abcdef0123456789abcdef",
    },
    timeout=15,
)

data = response.json()
print(data['result'])
$ch = curl_init('https://million.tools/api/v1/run/chacha20-poly1305-decrypt');
curl_setopt_array($ch, [
    CURLOPT_POST           => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER     => ['Content-Type: application/json'],
    CURLOPT_POSTFIELDS     => json_encode([
        'start' => 'AAECAwQFBgcICQoLkFo4VAgpynYpt2pQwiZGCH0N9N7x',
        'hmac_key' => '0123456789abcdef0123456789abcdef',
    ]),
]);

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

echo $response['result'] ?? '';
{
    "status": "success",
    "tool": "chacha20-poly1305-decrypt",
    "service": "chacha20_poly1305_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.