In cryptography, a salt is a random piece of data added to a password or passphrase before hashing it. This makes each hashed password unique, even if the same password is used by different users, and helps protect against attacks that try to crack hashed passwords.