mysql - Encrypting database credentials -


firstly explain, have websites connect central database. rule don't give clients access ftp website cant access files db credentials in them. 99.9% of time fine.

however having client insisting have full ftp access. want add advertising / tracking stuff in, , have set them own database , locked down ftp in directory, thats not enough apparently.

now sure don't intend steal our mysql credentials , connect , wipe out our db's no doubt agree huge security risk.

is there way to:

a) connect database without them seeing credentials within code

b) stopping them adding own code , connecting central database, own

pretty sure nothing going 100% secure, giving them ftp access means can same can, wondering if else has ideas?

the way "securely" without writing restful api (which you've indicated not feasible), create them special user account in mysql, cannot access records not owned them. truthfully should clients if you're doing "right," although understand can lot of maintenance.

regarding encryption, there isn't way encrypt db credentials client , have them decrypted db login without intermediary code. shouldn't matter though if client has own mysql account access.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -