I am currently working in node and noticed that bcrypt puts the salt in the initial portion of the hash
password : "$2a$04$kpj4oCA/b85xWAIL3n4l9uPMA2Ku4VR90oT3iE9IZVvREvmmJCZem" salt : "$2a$04$kpj4oCA/b85xWAIL3n4l9u" Is doing this safe. I mean the purpose of hashing and salting is to stop the developers from inserting plain passwords in the database. So if someone gets into my database now they know my salt and then its just the matter of brute forcing all the passwords until i get the rest of the hash. Why is salting necessary then? I could just store the hash only without salting