• ARTICLE
  • STRING
  • CONVERTER
  • ENCRYPT
  • NETWORK
  • MORE
    CHART
    MATH
    COORDINATE
    IMAGE
    FILE
  • ARTICLE
    STRING
    CONVERTER
    ENCRYPT
    NETWORK
    MORE
    CHART
    MATH
    COORDINATE
    IMAGE
    FILE
logo Online Tools
0 Comments Favorite Copy Link Share

ChaCha20 Encrypt and Decrypt Online


  • Encrypt
  • Decrypt
password length is 32 bytes (256 bits)
nonce length is 12 bytes (96 bits)
authenticate tag length is 16 bytes (128 bits)
a 32-bit initial counter. This can be set to any number, but will usually be zero or one.
ChaCha20 Encrypt and Decrypt Online-summary

Online ChaCha20 Encryption and Decryption Tool, supporting ChaCha20, XChaCha20, ChaCha20-Poly1305, and XChaCha20-Poly1305 algorithms for encryption and decryption, with input data formats including string, hex, and base64, and the ability to select from multiple character sets.

ChaCha20 Encrypt and Decrypt Online-instructions

ChaCha20 is a modern stream cipher algorithm designed by Professor Daniel J. Bernstein in 2008, Intended to provide high-speed, secure, and low computational resource requirements encryption solutions. As an improved version of the Salsa20 algorithm, Due to its simple design and strong security, it has been widely used in many network security protocols such as TLS, VPN, SSH, etc.
ChaCha20 is often combined with Poly1305 message authentication codes to form the ChaCha20-Poly1305 algorithm, which provides data integrity verification while encrypting, making it a very secure authentication encryption scheme.
XChaCha20 is an extended version of the ChaCha20 stream cipher algorithm, primarily aimed at significantly reducing the risk of Nonce reuse by using longer random numbers.

  1. Encrypt, Decrypt : Select between performing encryption or decryption operations.
  2. Input Content : When encrypting, input raw data to be encrypted. When decrypting, input the ciphertext data to be decrypted.
  3. Algorithm : Choose the algorithm for encryption and decryption. This tool supports ChaCha20, XChaCha20, ChaCha20-Poly1305, XChaCha20-Poly1305 four algorithms.
  4. Charset : Select the character set used for string<->byte array conversion. When there are string formats such as input format, output format, password format, nonce format, and additional data format, it is necessary to use a character set to convert strings to byte arrays.
  5. Password : Fill in the password for encryption and decryption, with a length of 32 bytes. Passwords support string, hex, and base64 formats.
  6. Nonce : Fill in the nonce data used for encryption and decryption. The nonce length of ChaCha20 algorithm is 12 bytes, while the nonce length of XChaCha20 algorithm is 24 bytes. Nonce supports string, hex, and base64 formats.
  7. Input Format : Select the format of the input content, supporting string, hex, and base64. When decrypting, the input format does not support string.
  8. Output Format : Select the output format, supporting string, hex, and base64. When encrypting, the output format does not support string. When encrypting, both the encryption result and the authentication label are output in the output format.
  9. Initial Counter : The initial counter values of ChaCha20 and XChaCha20 are 32-bit integers, usually 0 or 1. When encrypting and decrypting, the same initial counter should be used.
  10. AAD(Associated Authenticated Data) : Choose ChaCha20Poly1305 and XChaCha20Poly1305 When encrypting and decrypting, should associate authentication data be added, Additional authentication data will participate in authentication, but will not be encrypted. The same additional authentication data is required for encryption and decryption. Additional authentication data supports string, hex, and base64 formats.
  11. Authenticate Tag : When decrypting ChaCha20Poly1305 and XChaCha20Poly1305, input authentication tag data. The authentication tag supports hex and base64 formats.
  12. Open : Open the file. If the input format is string, the binary content of the file will be read as text using UTF-8 encoding. If the input format is hex, the binary content of the file will be converted into a hex string. If the input format is base64, the binary content of the file will be converted to a base64 string.
  13. Exchange : Exchange the current output results and input data.
  14. Clear : Clear input data and output results.
  15. This tool has a certain frequency limit, please use this tool reasonably. Anonymous : 120/IP*Hour, Normal user : 120/Hour, VIP : 720/Hour, Senior VIP : 720/Hour.