Salting involves adding random data, known as a "salt," to a password before hashing it. This technique makes it harder for attackers to use precomputed tables, like rainbow tables, to crack the password.