Home > Glossary > CompTIA PenTest+ > Rainbow Tables

📖 What is Rainbow Tables?

Rainbow Tables are precomputed tables of hashed passwords used to reverse cryptographic hash functions. They trade storage space for computation time, allowing an attacker to crack passwords much faster than a brute-force attack.

🥋 Sensei Says:

"This is why 'salting' is critical. Adding a unique salt to a password before hashing makes precomputed rainbow tables useless, forcing the attacker to use slower brute-force or dictionary attacks."

📚 Certification: CompTIA PenTest+ (PT0-002)

🔑 What are the Key Concepts of Rainbow Tables?

  • Precomputation allows attackers to reverse cryptographic hashes quickly by looking up precalculated values instead of calculating each hash during the attack process.
  • The time-memory trade-off is central, as rainbow tables use significant storage space to drastically reduce the CPU time required to crack passwords.
  • Reduction functions are used to create chains of hashes, allowing the table to store only the start and end points of a sequence.
  • They are only effective against unsalted hashes, because the same plaintext must always result in the same hash for the lookup to work.
  • Salting is the primary defense, as it forces attackers to abandon precomputed tables in favor of slower, per-user brute-force or dictionary attacks.

🎯 How does Rainbow Tables appear on the PT0-002 Exam?

A scenario might describe an attacker who has stolen a database of unsalted hashes and needs to crack them rapidly without utilizing massive CPU resources.

You may be asked to recommend a specific security control, such as salting, to protect password hashes from being reversed using precomputed lookup tables.

Expect questions that require you to differentiate between dictionary attacks and rainbow table attacks based on the trade-off between computation time and storage space.

❓ Frequently Asked Questions

How do rainbow tables differ from standard dictionary attacks?

Dictionary attacks compute hashes in real-time using a wordlist. Rainbow tables use precomputed chains of hashes, making the lookup process nearly instantaneous but requiring massive amounts of disk storage.


Can rainbow tables be used against salted passwords?

No, because a salt changes the resulting hash. An attacker would need to precompute a separate rainbow table for every possible salt value, which is computationally impossible.

Related Terms from CompTIA PenTest+

📝 Related Study Guides

Comparison 8 min read

CISSP vs CISM: Which Certification Should You Pursue in 2026?

Choose CISSP if you want broad technical security expertise across eight domains, including cryptography, network security, and software development. Choose CISM if you're focused on information security management, governance, and risk management from a leadership perspective. CISSP is ideal for hands-on security architects, while CISM is designed for security managers and directors.

Career Guide 9 min read

The IT Certification Roadmap: Where to Start in 2026

Start your IT certification journey in 2026 with CompTIA A+ for general IT foundations, then branch into networking (Network+), cybersecurity (Security+), or cloud computing (AWS Cloud Practitioner or Azure Fundamentals) based on your career goals. Each path leads to advanced certifications like CISSP, AWS Solutions Architect, or CISM within 2-3 years of focused progression.

Comparison 10 min read

CISSP vs CISM: Which Certification Should You Pursue in 2026?

The CISSP is a broad, technical-to-managerial certification focusing on security operations and architecture across eight domains. In contrast, CISM is a specialized management certification centered on governance, risk management, and program development. Choose CISSP for comprehensive security expertise and CISM if you are pivoting specifically into security leadership and governance roles.

🧠

Test Your Knowledge

Think you understand Rainbow Tables? Put it to the test with our practice exam.

Try 10 Free Questions

⭐ 1,000 expert-curated questions available with Premium

Upgrade Premium