PDF password search time: formula and estimator inputs
An estimator needs two measured inputs: how many candidates the plan will test and how many candidates per second the exact PDF revision verifies on the selected runtime. This page shows the math, explains average versus worst-case time, and documents the assumptions an honest estimate must expose.
This page's scope
This page is the mathematics reference. Service queues, customer statuses, verification, and release timing belong to the separate recovery-timeline page.
Core formula: candidates divided by measured rate
For a finite candidate list, worst-case search time is T = N / r, where N is the number of unique candidates and r is the measured verification rate in candidates per second for the exact PDF mode. Average hit time is often approximated as N / (2r) only when the correct password is uniformly distributed inside the tested order.
That average assumption is usually false for dictionaries and rules, which deliberately test high-probability candidates first. Report worst-case completion separately from an evidence-weighted expectation.
Fixed-length mask combinations
If every position draws from the same character set of size C and the password length is L, the full mask contains C^L candidates. If positions have different sets, multiply their sizes: N = C1 × C2 × … × CL.
For lengths from a through b, add each space instead of using only the largest: N = Σ C^L for L=a…b. A mask such as one uppercase letter, five lowercase letters, and two digits has 26 × 26^5 × 10^2 candidates.
Dictionary and rule expansion
A dictionary with D unique base words and R rule outputs has an upper bound near D × R, but duplicates can reduce the unique count. Multiple rule files, case mutations, and appended years can overlap heavily.
Use the tool's actual candidate count when available. Do not multiply marketing labels such as “billions of patterns” without deduplication and without binding the count to a specific file revision.
Measure the exact verification mode
PDF revisions use different verification algorithms. A benchmark from one mode cannot be transferred to another, and a benchmark hash may not match real-file behavior, power limits, driver versions, or optimized-kernel constraints.
Measure the same runtime, mode, device, and workload that will execute the plan. Record the command, software version, device name, rate, and date. Cluster estimates must use measured combined throughput rather than assuming perfect linear scaling.
What the estimator cannot predict
A search-space estimate answers how long a specified plan takes to exhaust. It cannot predict whether the password is in that plan. A short human password outside the dictionary is missed; a long password can be found immediately if it is the first evidence-based candidate.
Queue delay, worker availability, file transfer, verification, payment, and customer response are service-timeline concerns. Keep them out of the mathematical candidate estimate so users can see which uncertainty belongs to compute and which belongs to operations.
Primary references
Frequently asked questions
Is average time always half the worst case?
Only for a uniformly distributed target inside a uniformly ordered finite space. Probability-ranked dictionaries intentionally violate that assumption.
Can I use a WPA or ZIP benchmark for a PDF?
No. Use the exact PDF verification mode and runtime. Different formats and revisions have different algorithms and rates.
Does a calculator predict success?
No. It estimates exhaustion time for the candidate plan you entered. Success still requires the real password to be inside that plan.
Next step
Enter a measured rate and a bounded candidate plan; treat the result as plan duration, not a success promise.
Open the PDF time estimator