Kharabeesh
On-device ع

Encrypt & Decrypt Files

Encrypt any file with a password using strong AES-256-GCM before you send or store it, and decrypt it with the same tool. Everything stays in your browser, and the format is open and documented.

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 drop one or more files.
  2. Type a strong password and confirm it (the meter helps).
  3. Press “Encrypt & download” to get a .kbenc file.
  4. To decrypt: choose “Decrypt”, drop the .kbenc file, type the same password, and get the original file back with its name.

Privacy & how it works

Processes your data in the browser and stores nothing.

  • Engine: jszip (open-source libraries bundled with the site).
  • Works offline after you open it once.
  • Needs a modern browser with WebCrypto. The whole file is read into memory, so files above 1–2 GB may fail on phones.

Frequently asked questions

I forgot the password. Can you recover the file?

No, never. We have no copy of the password or the file, and there is no back door. Without the right password the file cannot be decrypted. Store it somewhere safe, such as a password manager.

What encryption is used?

AES-256-GCM with a key derived from the password via PBKDF2-HMAC-SHA256 with 600,000 iterations (OWASP’s 2023 recommendation) and a random salt per file. GCM detects any change to the encrypted file, so even one altered byte makes decryption fail.

How can I verify the format myself?

Format KBEC v1 (big-endian): “KBEC” 4 bytes · version 1 byte = 1 · PBKDF2 iterations 4 bytes (600,000) · random salt 16 bytes · random IV 12 bytes · then the AES-256-GCM output (ciphertext with the 16-byte tag at the end). Key = PBKDF2-HMAC-SHA256(password as UTF-8 after NFC normalisation, salt, iterations, 32 bytes), and the first 37 bytes are the additional authenticated data (AAD). After decryption: 2 bytes original-name length, the name in UTF-8, then the file data. Any library with PBKDF2 and AES-GCM (Python’s cryptography, WebCrypto…) can decrypt it.

Is the file name exposed?

No. The original name is stored inside the encrypted part. The output is named after the original plus .kbenc, so if the name itself is secret, rename the output after downloading.

Is this stronger than a password-protected ZIP?

Legacy ZIP encryption (ZipCrypto) is weak and easy to break. This is modern, strong encryption, but its strength depends on your password: use a long passphrase or a random password.

Formulas & sources

Related tools