You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: salt is a hex encoded string of 16 bytes. It's good enough to generate it once and reuse for multiple keys. You can generate with:
49
49
```bash
50
50
$ cargo run -- generate-salt --output salt
51
-
#or for instance:
51
+
#which is similar to:
52
52
$ openssl rand -hex 16
53
53
a228c13efadd4f6435a30d62a998d065
54
54
```
@@ -142,7 +142,6 @@ The table below shows realistic scenarios:
142
142
* Preimages are uniformly from [2<sup>n-1</sup>, 2<sup>n</sup>), i.e. the most‑significant bit is **always 1**. Every candidate truly has *n* bits; the search‑space size is therefore 2<sup>n‑1</sup>
143
143
* Each candidate costs **30s** to evaluate (Argon2id with the default cost).
* 🏭 **2048 threads** (e.g. 64×32-core/128GB RAM machines on some cloud provider)
@@ -180,18 +179,9 @@ The table below shows realistic scenarios:
180
179
| 32 | 127 y 257 d | 364 d 2 h | 364 d 2 h | 4 y 217 d | 6 y 325 d |
181
180
182
181
183
-
## Understanding Random Search Variance
184
-
185
-
Random search follows a geometric distribution with high variance. While the table shows expected times, actual recovery can vary significantly:
186
-
187
-
**⚠️ Important**: The random search times shown are averages. Due to the geometric distribution:
188
-
- 50% chance of finding by 0.69× the shown time
189
-
- 10% chance of taking more than 2.3× the shown time
190
-
- 1% chance of taking more than 4.6× the shown time
191
-
192
-
Systematic search has no variance—it will find the key in exactly the expected time.
182
+
### Understanding Random Search Variance
193
183
194
-
For planning purposes, consider the 99th percentile times shown in the table above to understand worst-case scenarios.
184
+
Random search follows a geometric distribution with high variance. For planning purposes, consider the 99th percentile times shown in the table above to understand worst-case scenarios.
0 commit comments