About Encrypt a File With a Password
Choose a document, photo, archive or any other file, enter a password, and download an encrypted copy ending in .enc. Store it in the cloud, send it or keep it on a USB stick: without the password its content, its name and its type stay unreadable.
The same page opens .enc files again. Switch to Decrypt, add the file and enter the password to get the original back with its name. Several files can be done in one go with the same password.
How it works
- Your password is stretched into a 256-bit key with PBKDF2-HMAC-SHA256 over 600,000 rounds and a random 16-byte salt.
- The file is read and encrypted one megabyte at a time with AES-256-GCM in your browser’s Web Crypto, with a progress bar. Each piece carries its own authentication tag.
- The file’s name and type are encrypted along with its content. The .enc file starts with a short header (format version, rounds, salt, nonce) that is itself authenticated.
- Decryption checks every piece. A wrong password, a changed byte, pieces in the wrong order or a file cut short are reported, and nothing partial is handed back.
Questions
What if I lose the password?
The file cannot be recovered. The password is not stored anywhere, there is no reset, and the encryption has no back door. Use a passphrase you will remember, or keep it in a password manager.
How large a file can it encrypt?
Up to 2 GB per file. The encrypted copy is put together in your browser’s memory before you save it, so very large files need a computer with enough free memory; a phone may run out sooner.
Is the file uploaded?
No. It is read from your device and encrypted by your browser. Neither the file nor the password leaves your device.
Can I open a .enc file with another program?
Not as is. The format uses standard building blocks (PBKDF2-SHA256 and AES-256-GCM), but it is particular to this tool, so open it here. It also works offline once the page has loaded.
Can it open encrypted text made by the text tool?
Yes. If you saved an encrypted text block as a .txt file, add it in Decrypt mode and you get decrypted.txt back.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.