Salting is a cryptographic technique used to enhance the security of stored passwords by adding a unique, random value to each password before hashing. This method prevents attackers from using precomputed tables like rainbow tables to crack passwords and ensures that even if two users have the same password, their stored hashes will differ.