To estimate the size of a rainbow table that contains all possible passwords of 18 characters long, using a combination of alphabet (both lowercase and uppercase), numeric, and symbol characters, we first need to determine the character set size.
The character set typically includes:
- Lowercase letters: 26
- Uppercase letters: 26
- Numeric characters: 10
- Symbol characters: Assuming a broad set of commonly used symbols, approximately 32 (this can vary widely depending on the specific set considered, e.g., !, @, #, $, etc.)
So, the total character set size is: 26 + 26 + 10 + 32 = 94 characters.
For a password of 18 characters long, the total number of possible combinations (assuming each character can be any of the 94 characters) is:
94^18
Calculating this:
94^18 ≈ 3.3479 × 10^34
Now, let's consider the storage requirements. Each entry in a rainbow table typically consists of:
- The password (or its hash, but for simplicity in storage estimation, let's focus on the output, which can be considered as large as the input for rough estimations).
- The corresponding hash value.
However, the actual storage is mainly dominated by the hash values and the chain information, not the password itself, in traditional rainbow table constructions. For simplicity, let's assume each entry is roughly the size of a hash value.
Common hash values (e.g., MD5, SHA-1) are 16 bytes (128 bits) or 20 bytes (160 bits) respectively. For a rough estimation, let's use 20 bytes per entry.
The estimated size of the rainbow table would then be:
3.3479 × 10^34 * 20 bytes
To make this more understandable:
3.3479 × 10^34 * 20 bytes ≈ 6.6958 × 10^35 bytes
Converting to more familiar units:
6.6958 × 10^35 bytes ≈ 6.6958 × 10^32 kilobytes
≈ 6.6958 × 10^29 megabytes
≈ 6.6958 × 10^26 gigabytes
≈ 6.6958 × 10^23 terabytes
To put it simply, a rainbow table containing all possible passwords of 18 characters long, with a character set of 94, would require approximately 6.7 × 10^23 terabytes.
For context, as of 2022, the total data stored globally was estimated to be around 140 zettabytes (1 zettabyte = 10^21 bytes or 1 trillion gigabytes). So, we're talking about an amount of data that exceeds global storage capacities by many orders of magnitude.
In practical terms, creating such a rainbow table is completely infeasible with current technology, not to mention the time it would take to generate it. This calculation serves more to illustrate the immense security provided by sufficiently long and complex passwords than to propose a realistic storage solution.