- Encrypt
- Decrypt
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 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.
- Encrypt, Decrypt : Select between performing encryption or decryption operations.
- Input Content : When encrypting, input raw data to be encrypted. When decrypting, input the ciphertext data to be decrypted.
- Algorithm : Choose the algorithm for encryption and decryption. This tool supports ChaCha20, XChaCha20, ChaCha20-Poly1305, XChaCha20-Poly1305 four algorithms.
- 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.
- Password : Fill in the password for encryption and decryption, with a length of 32 bytes. Passwords support string, hex, and base64 formats.
- 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.
- Input Format : Select the format of the input content, supporting string, hex, and base64. When decrypting, the input format does not support string.
- 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.
- 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.
- 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.
- Authenticate Tag : When decrypting ChaCha20Poly1305 and XChaCha20Poly1305, input authentication tag data. The authentication tag supports hex and base64 formats.
- 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.
- Exchange : Exchange the current output results and input data.
- Clear : Clear input data and output results.
- 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.