# Brute Force Attack

In cryptography, a brute-force attack consists of an attacker submitting many passwords or passphrases with the hope of eventually guessing correctly. The attacker systematically checks all possible passwords and passphrases until the correct one is found.

In a brute force attack, attackers often use **high-speed ASIC equipment**, similar to **Bitcoin mining** machines. These devices are approximately (10^6) times faster than modern CPUs.

#### Assumptions

* **Character Set Size:** 94 (26 uppercases + 26 lowercases + 10 digits + 32 special characters)
* **Passphrase Length:** 12 characters
* **Scrypt Parameters:** (N: 2^17, r: 8, p: 1)
* **Scrypt Computation Time:** Approximately 0.5 seconds on a modern CPU. For the sake of this analysis, we assume an **ASIC speed-up factor** of `10^6`, making it `5 * 10^-7` seconds per computation.

#### Analysis

* **Size of Possible Passphrase Space**:&#x20;

$$
94^{12} \approx 4.7 \times 10^{23}
$$

* **Hashes per Second by Fastest ASIC**:&#x20;

$$
\text{Hashes per second} = \frac{1}{5 \times 10^{-7}} = 2 \times 10^6 \text{ scrypt computations per second}
$$

* **Time to Brute Force**:&#x20;

$$
\text{Time (in seconds)} = \frac{4.7 \times 10^{23}}{2 \times 10^6} \approx 2.35 \times 10^{17} \text{ seconds}
$$

* **Convert Seconds to Years**:&#x20;

$$
\text{Years} = \frac{2.35 \times 10^{17}}{60 \times 60 \times 24 \times 365} \approx 7.54 \times 10^9 \text{ years} \approx 7.54 \text{ billion years}
$$

Even using the fastest known ASICs, a brute force attack would take approximately **7.54 billion years**, making it impractical.

### Additional Consideration: The Role of the PIN

In the above analysis, we focused strictly on the complexity of a single passphrase, but the actual security of the wallet is even stronger because the **pair of passphrase and PIN** determines the private key and wallet address.&#x20;

By requiring both inputs, the system effectively creates a high-entropy, multi-factor credential that acts as a self-contained salt for the key derivation process. This means that even if a common passphrase is used, the addition of a unique PIN drastically increases the difficulty of a successful attack, as an attacker must guess the exact combination of both secrets to gain access.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mybucks.online/concept/security-consideration/brute-force-attack.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
