Processing

Decryption

Removes known passwords from PDF, Word, Excel and PowerPoint files, writing unlocked copies and reporting which password number opened each file.

PRO Command line: decrypt Version 1.0
A Pro toolIn the free edition it works on up to 25 documents per run, so you can try it on real work. Compare Free and Pro.

Decryption tries each password you give it, in order, on every PDF and Office file in the input folder. When one works, an unlocked copy is written to the run folder with the same name and folder, and the report gives the number of the password that worked (1, 2, 3…), never the password itself. Passwords are used for this run only: they are not saved in the manifest, job file, reports or error log.

How a file is unlocked depends on its type. Encrypted .docx, .xlsx and .pptx files are decrypted directly, without Office, so the unlocked copy is exactly the document that was encrypted. Older .doc, .xls and .ppt files are opened in Microsoft Office from a working copy, with macros disabled, and saved again without a password; Office must be installed for these. PDFs are saved without encryption; the Details column says if anything had to be left out.

Use it when

How to run it

  1. Choose the folder of documents as Input.
  2. Choose an Output folder outside the input folder.
  3. Type the known passwords into passwords, one per line, exactly as given (letter case and spaces count). Add a password-file if you have a longer list.
  4. Turn on copy-unencrypted if you want the output folder to hold the whole set, not only the unlocked files.
  5. Close PowerPoint if you have it open and the set includes older .ppt files.
  6. Click Run, then click Open report and filter the Status column.
  7. Use the unlocked copies in the files folder for processing.

Settings

Every setting has the same help beside it in the app. On the command line, pass each as --name value; ltk help decrypt lists them.

Settings

SettingWhat it doesType and default
Passwords
--passwords
Passwords to try, one per line, used exactly as typed. They are numbered 1, 2, 3… in this order; the report says which number worked. Used for this run only: never saved in the manifest, job file, reports or error log. On the command line, use password-file instead: command lines can be seen in the process list and in shell history.
Each line is one password, used exactly as typed; only empty lines are ignored. The order matters only for the numbering in the report, so keep a note of your list outside the tool if you need to record which password opened which file.
text (lines)
empty
Password file
--password-file
Optional text file with more passwords, one per line, numbered after the typed ones (UTF-8 or Windows-1252; detected automatically). Only the file's location is recorded, never its contents.
A text file with one password per line; its passwords are numbered after the typed ones. On the command line, always use this rather than passwords, because command lines can be seen by other programs and kept in shell history. Only the file's location is recorded.
file
empty
Copy unencrypted
--copy-unencrypted
Also copy files that are not encrypted (unchanged, hash-verified), so the output folder holds the complete set.
Off by default: files that are not encrypted are listed as Not encrypted but not copied. On: they are copied unchanged and hash-verified, so the output folder is a complete working set.
yes/no
false
Time limit (seconds)
--timeout-seconds
If Office takes longer than this on one document, the Office copy this tool started is stopped, the document is reported as Timeout, and Office is restarted for the next document.
Applies only to the older Office files that are opened in Office. If Office takes longer than this on a document, the copy of Office the tool started is stopped and restarted for the next document.
number
120

Common settings

SettingWhat it doesType and default
Input required
--input
Folder (or single file) to read. It is opened read-only and never modified. folder
empty
Output required
--output
Folder for reports. Must not be inside the input folder. Each run gets its own sub-folder. folder
empty
Recurse
--recurse
Include sub-folders. yes/no
true
Extensions
--extensions
Only process these extensions (e.g. .pdf, .docx). Empty means the tool's default set. list
empty
Parallelism
--parallelism
Files processed at once. Use 1-2 for spinning disks or network shares. number
4

What you get

Each run creates its own folder inside the output folder, with the report decrypt.csv, errors.csv and manifest.json (see Run folders and manifests).

Report columns

Check the result

Tips
  • A workbook encrypted with Excel's built-in default password opens without one; the tool unlocks it and says so in Details.
  • Password-protected ZIP files are not handled here: use Extract Archives, which takes a password.
  • Unlocking a PDF with its permissions (owner) password re-writes it as it is, keeping its contents; digital signatures and earlier saved versions inside the file are not preserved.
Watch out for
  • Rights-managed (IRM) Office files are not password-protected and cannot be unlocked with a password; they are reported as errors.
  • Unlocked PDFs and older Office files are not byte-for-byte copies of the originals, so their hashes differ. Keep the originals and this run's report with the matter record.
  • The free edition processes up to 25 documents per run.

From the command line

The command line is part of LitTechKit Pro. See Command line.

ltk run decrypt --input "D:\Matter\Collection" --output "D:\Matter\Unlocked" --password-file "D:\Matter\Secure\passwords.txt" --copy-unencrypted true

Related tools