CHACHA20 ENCRYPTION =================== Use this ChaCha20 encryption tool with a raw UTF-8 key. Copy the complete encrypted payload as Hex or Base64. This ChaCha20 encryption tool encrypts pasted text or encoded bytes using a raw key and displays a complete payload as Hex or Base64. This plain stream-cipher operation does not authenticate the message. The IV / Nonce field is shared UI; the operation generates its own prefix rather than using that field. OVERVIEW & METADATA ------------------- Canonical URL: https://million.tools/chacha20-encrypt/ Markdown Copy (.md.txt): https://million.tools/chacha20-encrypt.md.txt Plain Text Copy (.txt): https://million.tools/chacha20-encrypt.txt API Endpoint: https://million.tools/api/v1/run/chacha20-encrypt (POST, Keyless, 60 req/min) SEO Title: ChaCha20 Encryption Online | Hex and Base64 Alternative Names: ChaCha20 Payload Encryptor, Encrypt with ChaCha20, ChaCha20 encryptor, ChaCha20 text encryption tool, ChaCha20 ciphertext generator, ChaCha20 online encryption Category: Cryptography (https://million.tools/cryptography/) Tags: #ChaCha20 Application Category: DeveloperApplication Platform: Web (All modern desktop and mobile browsers, requires JavaScript) Price: Free ($0.00 USD, no registration or sign-up required) Live Calculation: Supported (Auto / Live toggle enabled by default) Usage Statistics: 10 views Published: 2026-12-03 Last Updated: 2026-12-03 Author: Egor Volchenko (Developer & Author) KEY FEATURES ------------ - Encrypt pasted text or encoded source bytes - Use a raw UTF-8 key normalized to 32 bytes - Generate and embed a 16-byte initial-state prefix - Display payloads as Hex or Base64 - Update with Auto / Live or process manually - Copy output and clear text PARAMETERS & INTERFACE CONTROLS ------------------------------- Input Parameters & Options: - input_text: Plaintext. - hmac_key: Encryption Key / Password. - cipher_iv: IV / Nonce (Optional / Auto-generated). - input_encoding: Hex | Hex (Ignore Non-Hex Characters) | Base64 | UTF-8 | UTF-16LE | UTF-16BE | Windows-1251 (Cyrillic) | Windows-1252 (Latin 1) | ... (42 options) - output_format: Hex (lower) | Hex (UPPER) | Base64 Output Fields & Metrics: - result: Encrypted Ciphertext (Base64). Controls: Encrypt, Clear, Copy, Fill test data, Auto / Live INTERACTIVE EXAMPLE (TEST VECTOR) --------------------------------- Settings: - Input Encoding: UTF-8 - Encryption Key / Password: 0123456789abcdef0123456789abcdef - Output Format: Base64 Plaintext: Hello, million.tools! Encrypted Ciphertext (Base64): Mg8vNa/STd0gxYkmhzApcH4MTj/ZGub0maKgfHomV1Cml7Wbbg== HOW TO USE CHACHA20 ENCRYPTION ------------------------------ Use the following steps to process a small test input. Encrypt a ChaCha20 test message: 1. Paste the message into Plaintext. Set Input Encoding: to UTF-8 for normal text or the representation of source bytes. 2. Enter the same 32-byte UTF-8 key in Encryption Key / Password. This form has no separate key-encoding or password-derivation selector. 3. Select Hex (lower), Hex (UPPER), or Base64. Leave IV / Nonce (Optional / Auto-generated) blank: its typed value is ignored. The operation generates and embeds its own prefix. 4. Leave Auto / Live on for updates, or turn it off and click Encrypt. 5. Read Encrypted Ciphertext (Base64). Keep the complete encoded value, including its prefix. 6. Click Copy to copy the result. Use Clear where shown, or the field clear controls, to remove the text. For UTF-8 plaintext hello and key 0123456789abcdef0123456789abcdef, one verified Hex payload is 812100192a74c032ee458b8d145eb3c68f55cd85b2. A new run normally produces different bytes because the prefix is generated again. The matching decryption operation restores hello. This key is public test data. Note: 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: Encryption 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. The fixed output label can still say Base64 when Hex is selected. FREQUENTLY ASKED QUESTIONS -------------------------- Q: Can I supply a custom nonce or IV? A: The visible IV / Nonce (Optional / Auto-generated) field is ignored by this operation. Encryption generates the prefix; decryption reads it from the payload. Q: Can I enter a Hex key or use a password KDF? A: This layout has no key-encoding or KDF selector. Key text is read as UTF-8 and padded or truncated to 32 bytes. A Hex-looking key is not decoded from Hex. Q: Does this support XChaCha20? A: No XChaCha mode is exposed. The current operation uses the OpenSSL ChaCha20 cipher with a 16-byte initial-state prefix. Q: Does it detect altered ciphertext? A: No. Plain ChaCha20 has no authentication tag. A wrong key or changed ciphertext can produce garbage without a reliable integrity error. Q: Why does encryption produce a different result each time? A: The operation generates a fresh random prefix on each encryption. Keep the complete payload for decryption rather than comparing only the ciphertext characters. Q: Is the calculation performed only in my browser? A: No. This form sends the entered data to the calculation API. Use sample data instead of production secrets. RELATED TOOLS ------------- - ChaCha20 Decryption (https://million.tools/chacha20-decrypt/): Decrypt a complete ChaCha20 payload with the matching raw key. Enter Hex or Base64 ciphertext and view the restored UTF-8 text. - RSA Key Generator (https://million.tools/rsa-key-generator/): Generate a RSA test key pair as PKCS#8 private and SPKI public PEM. Choose a key size. The current page also makes API requests. - AES Encryption (https://million.tools/aes-encryption/): Encrypt text or encoded bytes with AES-256-CBC. Supply a key and copy Hex or Base64 output containing the random IV followed by the ciphertext. - AES Decryption (https://million.tools/aes-decryption/): Decrypt compatible AES-256-CBC ciphertext from Base64 or Hex. Supply the matching key and retain the 16-byte IV prefix to recover the plaintext. ABOUT THE AUTHOR ---------------- 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. Links: x.com (https://x.com/egorleet) | github.com (https://github.com/egorleet) | t.me (https://t.me/egorleet) | instagram.com (https://www.instagram.com/egorleet) | facebook.com (https://www.facebook.com/egorleet/) | egorleet.blog (https://egorleet.blog/) | mastodon.social (https://mastodon.social/@egorleet) | twitch.tv (https://www.twitch.tv/egorvolchenko) | stackoverflow.com (https://stackoverflow.com/users/31679135/egor-volchenko) | reddit.com (https://www.reddit.com/user/Vegetable_Window9185/) | youtube.com (https://youtube.com/@egor-volchenko)