Password hashing security does not come from secret information. You have already canceled the actual secret, namely the password, which is the basis for the hash value. The remaining hash is just a fingerprint of this source data. Security comes from the fact that it is not possible to get raw data from a hash. The only way is to try all possible passwords and see what creates the same hash. Security here is due to the fact that it is computationally expensive and unlikely to succeed over a useful period of time.
The salt is only introduced so that someone does not use the already programmed set of known hashed passwords, forcing the attacker to actually rephrase all possible passwords using a unique salt. The salt itself is not a secret, and is not a hashing algorithm.
In short: yes, it is absolutely safe to store this value in the database.
source share