How to Encrypt and Decrypt Files Locally
Protect sensitive PDFs, tax documents, private photos, or source archives before uploading them to cloud storage or sending them over email and chat.
- Stay in Encrypt Files mode and drop one or more files into the upload zone. Dropping multiple files automatically bundles them into a single ZIP archive before encrypting.
- Enter a strong passphrase or click Generate Strong Passphrase to create a high-entropy 5-word Diceware passphrase with a numeric suffix. Check the real-time entropy meter and copy the passphrase into your password manager.
- Click Encrypt with AES-256-GCM to generate an authenticated
.tenccontainer processed in bounded 4 MiB chunks. - To unlock a file later, drop any
.tencfile onto the page. The tool detects theTENCsignature automatically, switches to Decrypt (.tenc) mode, verifies every GCM authentication tag, and restores the original filename and file type.
Chunked AES-256-GCM Architecture and Tamper Protection
Rather than loading an entire archive into one monolithic cipher call, this tool implements a streaming .tenc v1 format built strictly on the browser’s native WebCrypto SubtleCrypto API.
- PBKDF2-SHA256 (600,000 iterations): Every encryption draws a fresh 16-byte cryptographically random salt via
crypto.getRandomValuesand stretches your passphrase through 600,000 SHA-256 rounds into a 256-bit AES-GCM key. Encrypting the same file twice with the same password always produces distinct ciphertext. - Encrypted Authenticated Metadata: The original filename, MIME type, byte length, and chunk count are encrypted inside an authenticated header bound to the file preamble via Additional Authenticated Data (AAD), preventing filename leakage.
- Per-Chunk IV and Sequence AAD: Each 4 MiB slice receives its own random 12-byte IV and binds
salt + chunkIndex + isFinalas AAD. If even a single bit is modified, two chunks are swapped, a trailing byte is appended, or the end of the file is truncated, decryption immediately halts with a clear tampering error instead of outputting corrupt data.
Related Privacy and Archive Tools
When decrypting a multi-file encrypted bundle, the restored .zip archive can be handed directly to ZIP Extract in one click without saving an intermediate file first.
- Need to encrypt short text snippets instead of binary files? Use AES Encrypt & Decrypt.
- Want custom character-set rules for new secrets? Generate keys with Password Generator.
- Verify file checksums before or after transfer using Hash Generator.
100% Local Zero-Upload Privacy
All key derivation and authenticated encryption runs strictly inside your browser’s native WebCrypto engine with zero external crypto servers and zero file uploads. Because neither your files nor your passphrase ever leave your device, lost passphrases cannot be reset or recovered. Always store your passphrase safely before sharing or archiving .tenc files.