I was talking to a friend about storing salts and passwords, the conversation was about whether or not it is more secure storing salts in a file somewhere on the server, rather then within the database itself.
I've never been one to hard-code salts, preferring randomly generated strings for each independent user and storing them in the database.
Is there any benefit to storing salts in a file rather then in a database? An example being; if the database containing the passwords is stolen somehow, the salts are not included within it, thus increasing security.
Any opinions or suggestions on this?