Hongmu Notes

String encryption

Replace a string that cannot be placed explicitly with a line of cipher text.
100% Browser local processing 0 Data upload

🔐 Text and Password

0Output length (characters)
0Key derivation rounds
-integrity check

💡 Instructions for use

  • The password is used locally only: used to derive keys, not sent to any server, nor written to local storage.
  • A new random salt and initialization vector will be generated each time during encryption. It is normal for the same plaintext to be encrypted twice to obtain different ciphertexts.
  • Decryption requires exactly the same password and complete ciphertext: one missing character will cause the integrity check to fail, and the tool will clearly prompt instead of outputting garbled characters.
  • This secret text is suitable for pasting into notes or chat tools for saving; please remember the password separately, as it cannot be recovered if lost.

Replace a string that cannot be placed explicitly with a line of cipher text.

Applicable scenarios

Connection strings, interface addresses, temporary tokens, internal account notes and other strings that are inconvenient to disclose.

Content that needs to be posted into work orders, group chats or documents, but does not want to be seen directly.

Output form

The result is a line of Base64 characters with no spaces that can be pasted directly into a configuration file or document.

If it is automatically wrapped when pasting, it will not affect decryption. The tool will automatically ignore white space characters.

The length will become longer

The ciphertext is expressed in Base64 and is approximately more than one-third of the original number of bytes, plus a fixed header.

The longer the string, the longer it will be output. Make sure it can fit before pasting it into a field with character limit.

Operation steps

Paste the string into the text box, fill in the password, keep the encryption mode and click start calculation.

After taking the results, it is recommended to immediately switch to decryption and verify once to confirm that it can be restored.

Format description

The ciphertext contains version marks, random salts, initialization vectors and encrypted data, which need to be parsed in the same format.

Therefore, it is suitable for restoration within this tool. Do not expect to use other tools to read it directly.

Not a replacement for key management

It is suitable for temporary transmission and storage, but is not suitable as a long-term key hosting solution.

Credentials involving production environments should still be handed over to a dedicated key management service and rotated regularly.

The output is a line of Base64 that can be glued directly into the configuration; however, production credentials should still be handed over to a dedicated key management service.

📖 Glossary

AES-GCM
A symmetric encryption mode that generates an authentication label while encrypting. The integrity is verified before decryption, and the ciphertext can be found to have been altered.
PBKDF2
Password-based key derivation function expands short passwords into fixed-length keys through a large number of iterations, increasing the cost of brute force guessing.
salt
A randomly generated piece of data is encrypted each time and participates in the derivation together with the password, so that the same password can obtain different keys in different encryptions.
initialization vector
The random parameters that allow the same plaintext to generate different ciphertexts under the same key must be saved together with the ciphertext, and the same value must be used when decrypting.
Certification label
The check value generated during encryption is used to confirm that the ciphertext has not been modified during decryption. If the check fails, the plaintext will not be output.
Base64
An encoding method that converts binary data into printable characters, making it easy to paste into text and save it. It does not provide any confidentiality.
Key derivation
The process of deriving the actual key used for encryption from the password. A good derivation function must be slow enough to resist brute force cracking.
Plain text and cipher text
The plaintext is the original content, and the ciphertext is the encrypted result; only the party with the correct password can restore the plaintext from the ciphertext.
local computing
All calculations are completed in the browser, and the data does not pass through the server, so it can be used even if the Internet is disconnected, and there is no upload leakage.
Ciphertext integrity
Status of whether the ciphertext matches the label; a mismatch indicates that it has been altered or copied incompletely, in which case decryption will be rejected.

🔗 All keywords and tutorials

Keywords page of the tool12a

Return to tool home page

❓ FAQ

Can the results be used directly for declaration??
This tool is used to save private text and does not involve declaration materials. Please do not use it to replace the formal encrypted archiving solution.
Will the data be uploaded??
No. Encryption and decryption are done within the browser, without any network requests for passwords and text.
Can I retrieve my password if I lose it??
No. The password is not saved and the password cannot be restored if forgotten. Please back up the password yourself.
Is it normal for the same text to be encrypted twice and the results to be different??
Normal. A new random salt and initialization vector are generated each time, so the ciphertext is different but can be decrypted with the same password.
Where can the cipher text be placed??
You can put it in notes, chat records or email drafts. Be careful to copy the entire string, not just a part.
How long text is supported?
It is recommended not to exceed 100,000 characters at a time. Text that is too long will occupy more memory and take longer to process.