
The transformative benefits of AI in education for students, from personalized learning to enhanced accessibility, while addressing potential challenges.
Common hash types (MD5, SHA-256, bcrypt, NTLM) and the attacks against them: rainbow tables, pass the hash, collisions and hash DoS, with defences.


Content writer, trio.so
A hash function turns any input into a fixed-length string, and you cannot run it backwards. Systems store password hashes instead of passwords so a stolen database does not hand over the passwords themselves. The common hash types are MD5, SHA-1, SHA-256, bcrypt and NTLM. Attackers break them by guessing (brute force and dictionary attacks), by looking answers up (rainbow tables), by reusing the hash itself (pass the hash), by forcing collisions, or by overloading hash tables (hash DoS).
There are dozens of hash functions. These five are the ones IT staff meet most. The main split is between fast general-purpose hashes (MD5, SHA-1, SHA-256) and slow password hashes (bcrypt).
| Hash | Output size | Used for | Still safe? |
|---|---|---|---|
| MD5 | 128 bits | File checksums, old password databases | No for security. Collisions are practical, and it is far too fast for passwords. |
| SHA-1 | 160 bits | Old certificates, Git object IDs, legacy signatures | No. NIST deprecated it in 2011 and plans to retire it from its remaining protocols by 31 December 2030. |
| SHA-256 (SHA-2 family) | 256 bits | Digital signatures, certificates, integrity checks, blockchains | Yes for integrity and signatures. Not on its own for passwords: it is fast, so use a slow password hash around it. |
| bcrypt | 60-character string with built-in salt | Password storage | Yes, with a work factor of at least 10, and a 72-byte limit on password length. OWASP lists it for legacy systems; Argon2id is preferred. |
| NTLM (NT hash) | 128 bits | Windows password hashes, NTLM authentication | Weak. It is an unsalted MD4-based hash, quick to crack and reusable in pass-the-hash attacks. |
Other types you will see: SHA-3 (a different design, same strength goals as SHA-2), Argon2, scrypt and PBKDF2 (slow, built for passwords) and the obsolete LM hash. OWASP's current Password Storage Cheat Sheet ranks Argon2id first for new systems, then scrypt, bcrypt and PBKDF2 with HMAC-SHA-256 where FIPS compliance is required.
A rainbow table is a precomputed lookup that maps hash values back to likely passwords. Instead of storing every hash, it stores compressed chains of hashes and rebuilds the match, which trades some computing time for much less storage. If an attacker steals a database of unsalted MD5 or NTLM hashes, a rainbow table can reverse many of them quickly.
Defense: salt every password with a unique random value before hashing. A salt makes a table built for one hash useless for the rest, so an attacker must start again for every user. OWASP states that salts defeat precomputed lookup tables and stop an attacker from cracking many hashes in one pass. Use a slow password hash such as Argon2id or bcrypt, which adds a salt automatically.
In a pass-the-hash attack the attacker does not crack anything. MITRE describes it as authenticating as a user without access to the cleartext password, using a stolen password hash. In Windows networks the NTLM hash is enough to prove identity to other machines, so one stolen hash lets an attacker move sideways from computer to computer.
Defense:
Our guide on how to prevent pass-the-hash attacks goes through these controls in detail.
With a stolen hash file, attackers guess offline: a brute force attack tries every combination, a dictionary attack tries known words and passwords, and rule-based attacks mutate those words (Password1!). Offline guessing needs no rate limit and no lockouts, only hardware. Fast hashes like MD5, SHA-1 and NTLM let a graphics card test billions of guesses a second.
Defense: store passwords with a slow, salted hash so every guess costs real time, require long passphrases, and check new passwords against known breached lists. See password best practices and credential stuffing prevention.
A collision is two different inputs with the same hash. If an attacker can create one on demand, they can swap a harmless file or certificate for a malicious one that carries the same hash, so a signature or checksum still verifies. Collisions are practical for MD5 and SHA-1, which is why both were removed from certificates and signatures. A collision attack is not the same as cracking a password hash. The risk is to signing and integrity.
Defense: use SHA-256 or stronger for signatures and integrity checks, and reject certificates and software signed only with MD5 or SHA-1.
A hash DoS (HashDoS) attack does not target passwords. Programs store data like web form fields in hash tables. If an attacker knows the hash function, they can send many keys that land in the same slot, which turns fast lookups into slow ones and ties up the CPU. A small request can cost a server a lot of time.
Defense: use hash tables with a random per-process seed or a keyed hash such as SipHash (several language runtimes now randomize hashing), cap the number of request parameters and body size, and keep frameworks patched.
For the wider picture, see preventing remote code execution attacks and what endpoint security is.
Every organization today needs a solution to automate time-consuming tasks and strengthen security. Without the right tools, manual processes drain resources and leave gaps in protection. trio.so is designed to solve this problem, automating key tasks, boosting security, and ensuring compliance with ease.
Every organization today needs a solution to automate time-consuming tasks and strengthen security. Without the right tools, manual processes drain resources and leave gaps in protection. trio.so is designed to solve this problem, automating key tasks, boosting security, and ensuring compliance with ease.





Have questions? We've got answers. This section covers some of the most commonly asked questions related to this topic.
Related
The related industry news, interviews, technologies, and resources.

The transformative benefits of AI in education for students, from personalized learning to enhanced accessibility, while addressing potential challenges.

Explore how Identity Fabric in Modern Security transforms identity management, offering scalable solutions for complex digital ecosystems and enhanced cybersecurity.

Discover how access control granularity enhances data security and streamlines operations. Explore best practices and solutions for stronger protection.

How secure is your cloud environment? Discover key risks and how cloud-native security solutions can protect your infrastructure and data.

Explore the essentials of a Policy Administration Point (PAP) in cybersecurity. Learn about PAP tools, examples, and how they enhance access control.

RMM agents play a pivotal role in providing the tools necessary for organisations to maintain their systems efficiently and securely.

IT operations team is fundamentally a strategic unit that greatly influences the organization's performance and efficiency.

Explore policy decision point architecture, meaning, & examples. Learn how PDPs strengthen access control and how MDM optimizes policy management.
14 day free trial. No credit card required.
trio.so for MSPs: one console, separate clients