There are many ways to do this, it really depends on the type of protection you want, here are some of my ideas.
By protecting unauthorized access, you can:
Encrypt ConnectionStrings in web.config file (if .net)
WindowsA
, , , - , .. , AES , , Base64,
, , ..
SQL, , , , inline, .