2

So I've been looking for a way to secure my Connection Strings in my PHP code that connect to my SQL server. I've thought about just making the entire connection string a secret, or making just the password and username a secret.

I'm not sure if this is the correct way to do this though as I've seen a post suggesting using a certificate instead but I didn't quite understand it as the post was from 2010.

Addtionally, the connection to the SQL database is sent from a C# app to the PHP file on the server. The app is also used by the public.

Does anyone know the best way to secure Connection Strings in PHP?

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.