Password-Protected File Checker
"Is this file actually encrypted, or just named like one?" is a question with
real consequences - a password-protected ZIP from a client, a PDF that asks for
an owner password, a disk image you were told is LUKS. Upload a file - or paste
the leading bytes as hex - and this checker reads only the public
metadata of the container: the ZIP central directory flags, the PDF
/Encrypt dictionary, the 7z archive header, RAR block headers, GPG
session-key packets or the LUKS magic. It tells you which protection scheme is
present, what that scheme protects, and - just as important - what it leaves
visible in plaintext. It never attempts to decrypt, crack or bypass anything;
the password is not needed and is not asked for.
1. What to check
Drop in the file itself, or paste its leading bytes as hex (plain hex or xxd/hexdump -C output). Files up to 64 MB are analyzed in full; larger files are checked from their first 16 MB.
Read locally in your browser - it is never uploaded.
2. Verdict
Whether protection is present, which scheme provides it, and the one-line summary.
Nothing analyzed yet - drop a file or paste hex above.
3. Protection details
Everything the public metadata says about this file's protection - and nothing it cannot say honestly.
| Field | Value |
|---|---|
| Waiting for input… | |
4. What the protection does and does not hide
Encryption is often weaker than people assume - this is the part of the answer that saves you from surprises.
⚠ Still visible without the password
- Waiting for input…
5. Report
A plain-text summary you can keep with a ticket, an incident write-up or a data-handling record.
Format protection reference
Which formats support password protection at all, how it works in each one, and what stays visible. Search by format, extension or scheme.
| Format | Password protection? | Mechanism | What stays visible |
|---|
How to use the Password-Protected File Checker
The fastest path is the upload tab: drop the file in and the analysis runs immediately, reading it locally with the browser's FileReader API. If you cannot attach the file itself - a forensic sample on a locked-down machine, bytes copied out of a hex editor, or a header pasted from a packet dump - switch to the hex tab and paste them. Plain hex with or without spaces works, as does complete xxd or hexdump -C output including the offset column and the ASCII gutter; the parser takes the byte field from each line and ignores the rest.
The six sample buttons build small but structurally genuine files in memory - a plain ZIP, a ZIP with one WinZip AES-256 entry and one unencrypted entry, a PDF with an /Encrypt dictionary, a 7z archive whose stream info declares an AES-256 coder, a GPG file with a symmetric session-key packet, and a LUKS version-1 header - so you can see exactly what each verdict looks like before running it against a real document. The verdict panel gives the answer in one line, the details table shows every field the metadata exposed, the two-column panel separates what is protected from what stays readable, and the report buttons give you a copyable or downloadable plain-text record.
Worked example
An email arrives with an attachment named contract-signed.pdf. The sender says it is password-protected and the password will follow by phone. You drop the file into the checker before you trust anything else. The verdict is Password protected, container PDF, scheme AES-256 (revision 6). The details table reports the /Encrypt dictionary: /Filter /Standard /V 4 /R 6 /Length 128, and the visibility panel adds the two facts that matter operationally: the document's metadata - title, author, creation date - is still readable without the password, and the owner password (which controls printing and editing) is a different credential from the user password that opens the file. Two things fall out of that. First, you now know the protection is modern AES-256 rather than legacy RC4 40-bit, which changes how much you should trust it against a determined attacker. Second, when the password arrives by phone you can verify it is the user password, not just the owner password - a distinction this tool cannot make for you because testing either one would mean attempting decryption, which it deliberately never does.
How it works - reading metadata, never touching the key
Every protection scheme leaves a public trace of its own existence, because the software that opens the file needs to know which algorithm to run. The checker reads only those traces. For a ZIP it walks the central directory: bit 0 of each entry's general-purpose flag marks traditional ZipCrypto encryption, compression method 99 marks WinZip AES, and the AES extra field (ID 0x9901) carries the key length - 128, 192 or 256 bits. For a PDF it locates the /Encrypt reference in the trailer, follows it to the security dictionary and reads /V, /R and /Length, which together name the algorithm: RC4 40-bit, RC4 128-bit, AES-128 or AES-256. For a 7z archive it reads the 32-byte start header, jumps to the main header at offset 32 + NextHeaderOffset, verifies its CRC, and walks the stream-info sections looking for the AES coder (method ID 0x6F10701), whose property block names the PBKDF2-SHA256 key-derivation parameters; if the main header is itself an encoded header (tag 0x17, created with -mhe) the walker instead reads how that header is protected, and that is the answer. For RAR it walks the block chain and reads the per-file encryption flags plus the archive-level "headers encrypted" flag. For GPG/PGP it walks OpenPGP packets and distinguishes a symmetric session-key packet (tag 3 - password protected, cipher named in the packet) from a public-key-encrypted one (tag 1 - needs the recipient's private key). LUKS and BitLocker disk images announce themselves with magic strings, and LUKS v1 additionally stores cipher, mode and hash names in plaintext in its header.
The line it refuses to cross is decryption. Deriving a key from a password, testing whether a candidate password unlocks the file, or recovering content would require the actual cryptographic operation - and a tool that does that with your file in the browser is a very different product from one that reads a flag. This checker reports what the format declares, says plainly when the metadata cannot answer a question (for example, it cannot tell you which of a PDF's two passwords is set, or whether a TrueCrypt container exists at all), and never guesses.
Common mistakes with password-protected files
- Assuming the extension means protection. Renaming
report.docxtoreport.docx.encchanges nothing about the bytes - the document is still fully readable. Only a container that actually stores an encryption flag (a ZIP with encrypted entries, a PDF with an/Encryptdictionary, a GPG packet stream) is protected, and this checker reads exactly that evidence. - Confusing "owner password" with "encrypted". A PDF's owner password controls permissions - printing, editing, copying - while the user password gates opening. A PDF can have an owner password and still open for anyone. The
/Ppermission field in the dictionary is readable metadata; the checker reports it but cannot test either password. - Trusting traditional ZipCrypto. The original ZIP encryption (flag bit 0, no AES extra field) has been cryptographically broken for years and falls to dictionary attacks in hours on a GPU. If the details table says ZipCrypto rather than WinZip AES, treat the protection as a deterrent against casual access, not against an adversary.
- Forgetting that names and metadata survive encryption. ZIP entry names, folder structure and timestamps live in plaintext in the central directory; PDF metadata is usually readable without the password; a 7z archive hides its names only if it was built with encrypted headers. If the file's mere existence or its internal structure is sensitive, the scheme matters as much as the cipher.
- Mixing up symmetric and public-key GPG. A password-protected GPG file (symmetric session key) opens for anyone who knows the password; a public-key-encrypted one opens only for the holder of a specific private key. The packet tags tell them apart, and so does the verdict here - it is easy to hand someone a
.gpgfile they cannot open and wonder why. - Believing Office "restrict editing" is encryption. Word and Excel's protection settings are permission toggles stored in plain XML inside an ordinary ZIP. The only real protection for a DOCX or XLSX is a password on the ZIP container itself - which this checker will show as encrypted entries if it is present.
- Expecting to detect TrueCrypt/VeraCrypt from bytes. Those containers deliberately hide their header so an unopened volume is indistinguishable from random data (plausible deniability). No tool can confirm one exists without the password - "unknown format, no known protection marker" is the honest answer for such a file.
Privacy
This page is a static document with client-side JavaScript and zero network calls. The file you drop in is read by the browser's FileReader API from local disk and analyzed in memory on your machine; nothing is transmitted, stored or logged - techgeek.biz never sees the file, its name or its contents. Pasted hex is parsed in the page's JavaScript engine and discarded when you leave. That matters disproportionately here: the files people check for protection are usually the ones they most want to keep private, and the act of checking them on a third-party site would defeat the purpose of the protection. The checker also never attempts decryption or password testing, so even its own logs - of which there are none - could not contain anything sensitive.
Suggested
Luke Keam | techgeek.biz