No, the rainbow attack does not match the brute force attack.
You can imagine the rainbow table as a large database of strings and their hashes. When someone gets access to your database, they can compare passwords with those in the rainbow table and itโs easy to get a password.
Salt prevents this by adding extra bits to the password. If the salt is long enough, the hash will not be in the rainbow table.
When using brute force attacks, you must calculate the hashes, and with the help of rainbow attacks, you already have the hashes.
So, when someone gets access to your database, they can also get your salt. But it does not matter if it is unique to each record.
source share