DOCFinite-key candidate

Office 97-2003 RC4 — Hashcat Modes 9700 / 9800

Microsoft Office 97 through 2003 (.doc, .xls, .ppt) used a Standard Encryption Header with 40-bit RC4. The short key makes qualifying files candidates for finite-key analysis, but the exact variant, the file's health, the compute budget, and output verification still matter.

Office 97-2003 RC4hashcat 9700 / 9800weak encryption

What Office 97-2003 actually encrypted

Office 97 introduced password protection across Word, Excel, and PowerPoint using a Compound File Binary Format container (CFB, also called OLE2). Inside that container sits a hidden EncryptionInfo stream holding the salt, the verifier, and mode metadata.

The encryption itself is RC4 with a 40-bit key by default. Microsoft offered other cipher choices through Crypto API providers — the Base, Strong, and Enhanced Cryptographic Providers — but the default was 40-bit RC4, for compatibility.

Hashcat distinguishes two modes for this generation: 9700 covers the MD5-based key derivation used by Word and Excel (.doc, .xls); 9800 covers the SHA-1-based derivation used by PowerPoint (.ppt). The cipher and the 40-bit key length are identical — only the hash function in the derivation differs.

  • File extensions: .doc, .xls, .ppt (Office 97-2003 binary)
  • Cipher: RC4 with 40-bit key
  • 9700: Word/Excel — MD5-based KDF
  • 9800: PowerPoint — SHA-1-based KDF
  • Container: OLE2 / Compound File Binary (CFB)

Why 40-bit Office RC4 is recoverable

Forty bits means 2^40, about 1.1 trillion possible keys. By 2026 hardware standards that entire key space is exhaustively searchable on modern GPU clusters within tractable timeframes. Recovery does not need to guess the password — it can target the cipher key directly.

Once a cipher key is established, the document body can be checked without depending on the original password's length. A 4-character password and a 40-character password still map into the same finite key space for this legacy scheme.

After a valid key is established, the file can be re-saved without password protection. Check content, formulas, charts, embedded objects, signatures, and metadata on the individual output rather than assuming byte identity.

How to identify Office 97-2003 files

The file extension is a strong signal: .doc (Word), .xls (Excel), .ppt (PowerPoint) — without the trailing x that newer Office formats use. Internally, the OLE2 container begins with the magic bytes D0 CF 11 E0 A1 B1 1A E1.

An OLE2 inspection tool (oletools, olebrowse, or 7-Zip's Open archive) reveals the structure, and the EncryptionInfo stream is present in protected files. Tools such as office2john from John the Ripper, or oledump.py, extract the hash without needing the password.

The extracted hash uses the oldoffice prefix followed by a numeric type identifier from 0 to 4. Types 0 and 1 are RC4 with 40-bit keys (modes 9700/9800). Type 3 is also RC4 40-bit but uses a slightly different verifier path. Type 4 is the modern AES-128 path used by Office 2007 and later — a different mode entirely (mode 9410).

Why these files still appear in 2026

Office 2007 introduced the OOXML formats (.docx, .xlsx, .pptx) with stronger encryption, but the legacy binary formats remained fully supported in every Office version through Microsoft 365. Many enterprise document systems standardised on .doc and .xls during the 2000s and kept the format internally for compatibility.

Common modern sources: long-archived legal disclosure files, mid-2000s financial templates, government documents that predate the Office 2007 rollout, and files exported from accounting systems that still default to .doc or .xls.

When organisations migrate document archives, the original encryption is preserved by default rather than upgraded. A memo encrypted in 2003 with Office XP is still 40-bit RC4 today, even after several round-trips through modern systems.

Office 97-2003 versus OOXML

Office 2007 was a complete rewrite of both the file format and the encryption. OOXML files (.docx, .xlsx, .pptx) are ZIP containers with XML inside, encrypted with AES-128 by default and AES-256 in Office 2010 and later.

If you have a choice between distributing an .xls and an .xlsx and confidentiality matters, .xlsx is materially stronger. If you are recovering an old document, the .xls/.doc/.ppt path is the favourable case.

FormatCipherHashcat modeRecovery outlook
.doc / .xls (Office 97-2003)40-bit RC4, MD5 KDF9700Finite-key candidate
.ppt (Office 97-2003)40-bit RC4, SHA-1 KDF9800Finite-key candidate
.docx / .xlsx / .pptx (Office 2007)AES-1289400Materially harder
.docx / .xlsx / .pptx (Office 2010)AES-1289500Materially harder
.docx / .xlsx / .pptx (Office 2013+)AES-2569600Hardest of the three

Practical recovery flow

The standard flow for a mode 9700/9800 file: first, drop the file into a browser-based analyzer to confirm the format and version — this happens client-side and the file content never leaves the browser. Second, run the free check against fast attack techniques, which completes quickly and shows whether the password follows a common pattern. Third, for documents the free check does not crack, the cipher-key search runs on GPU clusters with a bounded duration.

The honest expectation: 40-bit RC4 documents are the strongest candidates for this technical route. Duration and outcome still depend on parseable input, implementation details, compute budget, and verification.

Frequently asked questions

Is recovering my own Office 97-2003 file legal?
Recovering access to a file you own or are authorised to access is generally different from unauthorised access, but the law depends on the jurisdiction and the facts. Document ownership and authorisation must be confirmed before paid recovery proceeds.
How long does mode 9700/9800 typically take?
We don't publish a fixed timing because it depends on the queue, the implementation, machine availability, file health, and verification. The finite key space defines the technical route, not a delivery promise.
Will the recovered file be identical to the original?
The process aims to preserve readable content, formulas, embedded objects, charts, and metadata. Verify the resulting file, and any signatures or compliance requirements, individually.
Why doesn't password length matter for mode 9700?
The key derivation always produces a 40-bit key regardless of password length. A 6-character password and a 60-character password yield keys from the same 2^40 space. Recovery operates on the key space, not on the password directly.
How is mode 9700 different from mode 9800?
Mode 9700 covers Word and Excel binary files (MD5-based derivation). Mode 9800 covers PowerPoint binary files (SHA-1-based derivation). The cipher and the 40-bit key length are identical — only the hash function differs.
Can I do this myself with open-source tools?
Authorized technical users can inspect the format with tools such as Hashcat, John the Ripper, or office2john. Time, electricity, file integrity, and result verification remain the practical constraints.
What if the file is partially corrupted?
The OLE2 container needs to be parseable for any recovery to apply. If the file is structurally corrupted, repair must come first.
Does VBA project password affect this?
A VBA project password is separate from the document open password — it protects macro source code, not document content. VBA passwords have their own protection layer, which is typically much weaker than the document password.

Need a second opinion on this file?

Run the free local check first. If the file is healthy and you are authorized to recover it, you can compare the evidence with a specialist's supported workflow.

Related guides

For authorized owner use only. Recovery depends on the exact file and password; no outcome is guaranteed. FilesUnlock is a separate product from the recovery service that processes submissions.