Hongmu Notes

🔐 Text encryption and decryption

Select encryption or decryption and fill in the content and password: Encrypt to obtain a ciphertext that can be transmitted with confidence, and decrypt to restore it with the same password. The random value and verification information attached to the ciphertext allow it to be discovered that it has been altered, and all operations are completed within your browser.
100% Browser local processing 0 Data upload

🔐 Encrypt or decrypt text

Enter length 0 | Output length 0

💡 Instructions for use

  • The exact same password must be used for encryption and decryption, including uppercase and lowercase letters and spaces; the password is not saved and cannot be restored if lost.
  • The ciphertext is a whole paragraph. In addition to the encrypted content, it also contains random values and verification information. When copying, it must be taken completely from the beginning to the end, otherwise the decryption will fail.
  • The ciphertext itself can go through any channel, but the password should be communicated through another channel. Putting the two in the same email or the same message means there is no encryption.
  • Passing the verification only means that the content has not been changed, but does not mean that the source is trustworthy; if you need to confirm the identity of the sender, you should verify it through other channels.

🔐 how it works

After entering the password, the page first uses key derivation to convert the password into a key, then uses authentication encryption to encrypt the text into a segment of characters, and then packages the salt value, initial vector and verification information together for output. When decrypting, the same password is used to re-derive the key, and the content is restored only after the verification is passed. All operations are completed in the browser.

The exact same password must be used for encryption and decryption, including uppercase and lowercase letters and spaces. If it differs by one character, it cannot be restored.

📦 What is contained in the ciphertext?

In addition to the encrypted content, it also contains the salt value and initial vector generated randomly each time, as well as verification information used to detect tampering. None of them need to be kept secret, but one of them is indispensable. Therefore, when copying and transmitting, the entire section should be taken. Do not only intercept the front or back sections, otherwise the decryption will inevitably fail.

The ciphertext must be copied in its entirety: random values are attached to it, and any part that is cut off will not be unsolvable.

🔑 How to control password strength

The algorithm itself is public and tested, the only thing that can separate the gap is the password. Even if the number of key derivation times is high, a short password may still be tried one by one; if the password is lengthened to more than ten digits and mixed with upper and lower case, numbers and symbols, the cost of cracking will increase exponentially, which is much more effective than changing the algorithm.

Instead of struggling with the algorithm, it is better to add the password to more than a dozen digits and mix the characters, and the benefits will be much greater.

⚠ In which scenarios it should not be used?

For content that needs to be stored for a long time without risk of loss, you should first confirm that there is a reliable backup method for passwords; sensitive data involving compliance requirements should be processed in accordance with the regulations of the industry. In addition, if the ciphertext and password are transmitted through the same channel, there is no protection, and the two must go through different channels.

The ciphertext and password should not go through the same channel. Only by sending them separately can we achieve protection.

🔗 All keywords and tutorials

Keywords page of the tool12a

Return to tool home page

❓ FAQ

Can I still unlock it if I forget the password??
No. Passwords do not participate in saving. If lost, the ciphertext cannot be restored and there is no way to reset it.
Will the size increase after encryption??
It will be slightly larger because the ciphertext also contains random values and verification information, which is normal.
Will the content be uploaded??
No. Encryption and decryption are all completed locally in the browser, and no upload request is initiated.
How much text can be encrypted??
Any common length is acceptable; particularly long lengths can be encrypted in sections to facilitate batch transmission and verification.
Can the password be changed??
The generated ciphertext cannot be modified directly; a new password is required and can be re-encrypted with the new password.
Can the secret text be made public??
It can be delivered publicly, and the security depends on the strength of the password, but the password must be delivered separately.