What you can do with File Encryption & Decryption
- Encrypt a file with a password
- Decrypt an encrypted file
How this security utility works
Encrypt a file up to 20 MiB with a passphrase using AES-256-GCM, or decrypt an EZCF1/EZCF2 file whose original content is within the same limit.
Example input
File: contract.pdf (248 KB) | Algorithm: AES-256-GCM (PBKDF2-SHA256, 250,000 iterations, 16B salt, 12B IV)Example output
easyutils-encrypted.ezcf (EZCF2; original filename and file content encrypted together)Practical workflow
- Choose Encrypt or Decrypt mode.
- Select or drop a source file no larger than 20 MiB; the browser rejects larger files before reading them into memory.
- Enter a strong passphrase (the same one is required to decrypt later).
- Download the resulting `.ezcf` file under a generic name, or download the restored original after decryption.
Common use cases
- Encrypt a sensitive document before uploading it to shared or untrusted storage.
- Protect a backup file with a passphrase before emailing it.
- Decrypt a file previously encrypted with this tool on another device.
Important notes and limitations
- Encryption and decryption run entirely in your browser using the Web Crypto API (AES-256-GCM with a PBKDF2-SHA256 key derived in 250,000 iterations); files are never uploaded.
- Original file contents are limited to 20 MiB. Decryption accepts a slightly larger EZCF container to allow the encrypted filename and format metadata; the limit is checked before reading the selected file and again on decrypted output.
- The complete file is processed in browser memory. Keep files within the 20 MiB limit, especially on mobile devices, and do not close or reload the tab before downloading the result.
- There is no password recovery. If you lose the passphrase, the encrypted file cannot be decrypted by this tool or anyone else.
- New EZCF2 files expose only the version marker, salt, and nonce; the original filename and file bytes are encrypted together and authenticated by AES-GCM. Earlier EZCF1 files remain readable, although their filename is stored in clear text and is not authenticated. The downloaded EZCF2 container uses a generic filename so it does not reveal the original name.
OpenSSL & native terminal file encryption commands
OpenSSL AES-256-CBC PBKDF2 encryption
openssl enc -aes-256-cbc -pbkdf2 -iter 100000 -salt -in confidential.tar -out confidential.encEncrypts a file with 256-bit AES in CBC mode using PBKDF2 key derivation with 100,000 iterations and a random 8-byte salt.
OpenSSL AES-256-CBC PBKDF2 decryption
openssl enc -d -aes-256-cbc -pbkdf2 -iter 100000 -in confidential.enc -out decrypted.tarPrompts for the passphrase and reverses the encryption, verifying block padding to extract the original archive.
Modern age CLI encryption with passphrase
age -p -o database_backup.tar.age database_backup.tarEncrypts files using modern ChaCha20-Poly1305 and Scrypt passphrase stretching, avoiding legacy ASN.1 and OpenSSL syntax quirks.
Symmetric Encryption & Key Derivation Comparison
| Algorithm / Standard | Key Size | Authentication Tag | Derivation Function | Best Suited For |
|---|---|---|---|---|
| AES-GCM (WebCrypto) | 256-bit | 128-bit GHASH tag | PBKDF2-HMAC-SHA256 (100k+ iter) | Browser in-memory file encryption with integrated tamper detection |
| AES-CBC (OpenSSL legacy) | 256-bit | None (Needs HMAC separately) | PBKDF2 with 100,000 rounds | Legacy archive compatibility; vulnerable to padding oracle if exposed |
| ChaCha20-Poly1305 | 256-bit | 128-bit Poly1305 tag | Argon2id or Scrypt | Fast software execution on mobile devices lacking AES-NI hardware |
| age (X25519 / ChaCha20) | 256-bit | Poly1305 AEAD | Scrypt passphrase derivation | Modern CLI file encryption & multi-recipient secret management |
Decryption errors & cryptographic troubleshooting
OperationError: The operation failed for an unspecified reason
Cause: Incorrect passphrase, corrupted ciphertext, truncated 16-byte authentication tag, or modified initialization vector (IV) in AES-GCM.
Solution: Confirm the exact passphrase. If transferred via text protocols (HTTP/FTP), ensure the file was transmitted in raw binary mode without newline mutations.
RangeError: Array buffer allocation failed during file decryption
Cause: Attempting to decrypt files larger than available V8 heap (typically >1.5 GB) completely inside browser JavaScript memory.
Solution: For multi-gigabyte disk images or large SQL dumps, stream files using OpenSSL or age CLI in a native terminal instead of in-browser WebCrypto.
bad decrypt / wrong final block length (OpenSSL compatibility)
Cause: Attempting to decrypt a WebCrypto AES-GCM file using 'openssl enc -d -aes-256-cbc' due to cipher mode or key derivation mismatch.
Solution: Ensure the cipher mode matches. Files encrypted with authenticated AES-GCM must be decrypted with AES-GCM compatible tools, not legacy CBC.
Continue your workflow
- Hash Generator — Compute SHA-256 and SHA-512 checksums to verify file integrity before and after encryption.
- Base64 Encoder — Encode encrypted binary payloads into safe ASCII text for transmission over JSON or email.
- Crypto Utility — Inspect cryptographic primitives, cipher modes, and generate cryptographically secure keys.
- Password Generator — Generate high-entropy random passphrases for strong symmetric file encryption.
Frequently asked questions
How do I encrypt a file online?
Select the file, choose Encrypt, enter a passphrase, and download the generic easyutils-encrypted.ezcf file. The browser encrypts the contents and original filename locally with AES-256-GCM; nothing is uploaded.
What happens if I enter the wrong passphrase when decrypting?
AES-GCM verifies the authentication tag before returning plaintext. A wrong passphrase or altered ciphertext causes a clear failure, except for a negligible cryptographic chance of a tag collision.
Can I recover a file if I forget the passphrase?
No. There is no backdoor or recovery mechanism — that is what makes the encryption real. Keep the passphrase somewhere safe, such as a password manager.
Is this different from the Text Encryption tool?
Yes. Text Encryption & Decryption handles short text/messages with several algorithm choices; File Encryption & Decryption handles one file up to 20 MiB using AES-256-GCM specifically.
Can another person see the name of an EZCF2 file?
No. EZCF2 encrypts the original filename alongside file bytes and authenticates both with AES-GCM. EZCF1 files from earlier releases keep their filename in clear text.