Kharabeesh
On-device ع

Encrypt & Decrypt Text

Turn any message or note into encrypted Base64 text with AES-256-GCM and a password, then send it through any app. Only someone with the password can read it. All on your device.

Free, no sign-up Your data stays on your device Works offline after first open

The tool

Loading the tool…

How to use

  1. Choose “Encrypt” and type or paste the text.
  2. Type a strong password (the meter shows its strength).
  3. Press “Encrypt”, copy or download the result, and share the password through a different channel.
  4. To decrypt: choose “Decrypt”, paste the encrypted text and type the password.

Privacy & how it works

Processes your data in the browser and stores nothing.

  • Engine: lightweight in-page code, no external libraries.
  • Works offline after you open it once.

Frequently asked questions

What if I forget the password?

The text is lost for good. There is no recovery or back door, and no copy is kept.

Why is the output different every time for the same message?

Each encryption uses a random salt and IV. That is intentional: nobody can tell two identical messages apart from their ciphertext.

What exactly is the format?

The output is Base64 of a KBEC v1 container: “KBEC” + version 1 + PBKDF2 iterations (4 bytes, 600,000) + 16-byte salt + 12-byte IV + the AES-256-GCM output (with a 16-byte tag), and the first 37 bytes are additional authenticated data. The key is PBKDF2-HMAC-SHA256 of the password (UTF-8, NFC). After decryption: a 2-byte name length (zero for text) and then the UTF-8 text. Same format as the file encryptor.

Can I send the password with the message?

Don’t. Anyone who sees both can read it. Share it another way (a call, say) or agree on it in advance.

Formulas & sources

Related tools