Urgent.News

What's breaking now, across thousands of outlets.

Tech

The One Line of Code That Stops Rainbow Table Attacks

Someone steals a database of password hashes. Instead of cracking each one individually, they check it against a rainbow table — a massive precomputed list mapping hashes to the passwords that produced them. If a stolen hash shows up in that table, they're done in milliseconds. No cracking required, just a lookup. Salting kills this attack entirely, and it's a small enough fix that it's worth…

A single line of code can prevent rainbow table attacks when storing password hashes. Generating a unique salt for each user and combining it with the password during key derivation stops the attack cold. The salt isn't secret, but its job is to ensure every derivation is unique, even for identical passwords. This small piece of code protects users from massive, quick database breaches that would otherwise enable attackers to crack passwords using precomputed rainbow tables.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

The Capacity You Paid For But Never Used

The capacity you paid for and the capacity your business actually consumed are almost never the same number, and the gap between them is where this hidden cost lives — not in a utilization dashboard…

  • Paid capacity often doesn't match actual consumption
  • Hidden cost stems from capital commitment before demand forecast
  • Capacity models ignore downside risk of unused capacity

More from Wednesday 2 September →