A scan of a passport, a tax return, a contract or a spreadsheet of passwords often has to travel by email or sit in a cloud folder that other people, or the provider, could open. This tool wraps any file in password-based encryption before it goes, so whoever gets the file without the password sees only noise. It's for anyone who needs to send or store a sensitive document and doesn't want to install software to do it. We make Noxium, an encrypted photo vault, and built this tool to run entirely in your browser.
How do you encrypt a file with a password?
Choose the file, set a password, and download the encrypted copy.
- Leave the tool on Encrypt and choose a file. Tap the box above, or drag the file onto it on a computer. Any type works: PDF, Word, Excel, ZIP, photos, videos.
- Type a password twice. Or tick Show password and type it once while you can see it.
- Decide about the name. By default the encrypted file is called, for example,
contract.pdf.nox. Tick the random name option if the name itself gives something away; the original name is still stored inside the encryption and comes back when you decrypt. - Tap Encrypt file, then Download. The tool shows each step while it works. The original file isn't changed.
- Send the .nox file and the password separately. Attach the file to an email or upload it to a cloud folder, and give the password by phone, text or in person.
To encrypt a whole folder, zip it first. On a Mac, Control-click the folder and choose Compress, as Apple's Mac User Guide describes. On Windows, right-click it and choose Show more options › Send to › Compressed (zipped) folder. Then encrypt the .zip file.
How do you open a .nox file?
Open this page, choose Decrypt, pick the .nox file and type the password. The tool restores the original file with its original name, ready to download. A wrong password, or a file that was damaged or cut short on the way, gives a clear error instead of a broken file: the encryption includes a check that fails if a single bit has changed.
If the recipient can't use this page, the format is documented below, so anyone can decrypt it with standard tools.
When is encrypting a file worth it?
Whenever the file passes through something you don't control.
- Email attachments. An attachment sits in the sender's and recipient's mailboxes, and often in backups, for years. Encrypted, it's useless to anyone who gets into either account.
- Cloud folders and shared links. A link can be forwarded, and the storage provider can usually read what you upload. An encrypted file stays private even if the link leaks.
- USB sticks and old laptops. A lost drive with encrypted files on it gives nothing away.
- Sending to someone with no special software. They only need a web browser and the password.
For a short piece of text, like a door code or an account number, the text encryptor is simpler: it gives you text you can paste into a message instead of a file.
How does the encryption work?
The tool uses your browser's built-in Web Crypto API. The password goes through PBKDF2 with HMAC-SHA-256 and 600,000 rounds, the figure the OWASP Password Storage Cheat Sheet recommends, to make a 256-bit key. That key encrypts the file with AES-256-GCM. A new random salt and nonce go into every file, so encrypting the same file twice gives two different results.
| Bytes | Field | What it is |
|---|---|---|
| 0–3 | Magic | The letters NOXF, so the tool can recognise its own files. |
| 4 | Version | 1 for this format. |
| 5–8 | Rounds | The PBKDF2 iteration count, big-endian (600,000). |
| 9–24 | Salt | 16 random bytes, mixed into the password. |
| 25–36 | Nonce (IV) | 12 random bytes for AES-GCM. |
| 37 to end | Ciphertext | AES-256-GCM of: the name's length (4 bytes, big-endian), the original file name in UTF-8, then the file. The last 16 bytes are the authentication tag. |
This Python script, using the widely used cryptography package, decrypts a .nox file without this page:
import getpass, sys
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC
from cryptography.hazmat.primitives.ciphers.aead import AESGCM
raw = open(sys.argv[1], "rb").read()
assert raw[:4] == b"NOXF" and raw[4] == 1
rounds = int.from_bytes(raw[5:9], "big")
salt, nonce, data = raw[9:25], raw[25:37], raw[37:]
key = PBKDF2HMAC(hashes.SHA256(), 32, salt, rounds).derive(getpass.getpass().encode())
plain = AESGCM(key).decrypt(nonce, data, None)
n = int.from_bytes(plain[:4], "big")
open(plain[4:4 + n].decode(), "xb").write(plain[4 + n:])
How should you share the password?
By a different route from the file, and never in the same email. The password is the only key: nobody can reset or recover it, so a forgotten password means a lost file. A good one is long and new, like four or more random words, and isn't used for any account. The tool warns you when it's under 12 characters. If the file is for you, keep the password somewhere safe and separate, the way you'd keep a vault's recovery phrase.
What happens to your file and password?
Nothing leaves your device. The page reads the file with your browser's file reader, derives the key and encrypts or decrypts in memory, and hands the result to your browser's download. There's no upload and no server that could keep a copy, and nothing is stored once you close the tab. The page does load Google Analytics, which counts visits as our privacy policy describes; it never receives your file, its name, your password or the result. You can turn off your connection after the page loads and the tool still works.
What are the limits?
- 250 MB per file. Web Crypto encrypts a file in one go, with no streaming, so the browser holds the file, a working copy and the encrypted result in memory at the same time. Above that size, many browsers run out of memory, phones sooner than computers. For bigger files, use disk-encryption software instead.
- The password sets the strength. AES-256-GCM isn't the weak point; a guessable password is. Anyone with the .nox file can try passwords on their own computer for as long as they like, and the 600,000 rounds only slow each guess down.
- The size shows. A .nox file is the original size plus 57 bytes and the length of the name, so someone can tell roughly how big the original was.
- The original stays where it was. Encrypting makes a new file. Delete the unencrypted original if it shouldn't stay on the device.
- After decryption, it's a normal file again. Whoever opens it can copy or forward it.
Photos and videos that stay encrypted
Noxium hides photos, videos and notes in encrypted vaults on your iPhone, with their names, dates and places encrypted too. An encrypted backup goes to your own private iCloud. No ads, no accounts, no analytics.
Download on the App Store Available on the App Store for iPhone and iPad.This tool is for one file at a time that you're about to send. For a camera roll you want to keep private, Noxium does the encryption for you on the device, as the on-device encryption page explains, and only encrypted data goes to its iCloud backup.
Questions people ask
Can I password-protect a PDF with this?
Yes, and any other type of file. The difference from a PDF's own password is that the result is a .nox file, not a PDF, so the recipient opens it on this page first and then has a normal PDF. It works the same for Word, Excel, ZIP, images and videos.
Is it safe to email an encrypted file?
Yes, as long as the password doesn't travel with it. Without the password, the .nox file is noise to anyone who reads the email, including the mail provider. Send the password by phone, text or in person.
Can I decrypt a .nox file on my phone?
Yes. Open this page in your phone's browser, choose Decrypt and pick the file from your Files app or downloads. Very large files may be too big for a phone's memory; a computer handles them more easily.
Can I encrypt a folder?
Not directly. Zip the folder first (Compress on a Mac, Send to › Compressed (zipped) folder on Windows), then encrypt the .zip file. When it's decrypted, you get the .zip back and unzip it as usual.
What if I forget the password?
The file can't be recovered. The password isn't stored anywhere, and there's no reset. Keep the unencrypted original until you're sure the password works, by decrypting the .nox file once yourself.
Something wrong or out of date? Email business@inertiaprojects.info and we'll fix it.