So I have plans to work on a website with some people that I do not know, on GitHub. For websites that I have created in the past, I have stored my credentials in a file called db-const.php, and included them when needed.
The problem that I am having is, the host that the website will on is not the same host as my mySQL database, so I cannot simply use localhost-only credentials. I would perfer to not have to censor my credientials every time I commit.
My idea so far is to create a php file on my host that delivers the data in a hashed format when called for, which is then unhashed on retrieval. Thoughts?