Securing your Data Layer in a C# Application

前端 未结 12 1870
执念已碎
执念已碎 2020-12-23 12:47

I was thinking about how to secure the Data Layer in a C# Application, the layer could in this case be either a LINQ to SQL Model Diagram stored with the Application itself

12条回答
  •  眼角桃花
    2020-12-23 13:13

    The answer is simple to protect sql strings is simple. NEVER make a direct connetion to SQL in the client side.

    Only accept well formed, schema-validated xml serialized objects as the entrance of your program, after being authenticated in a hashed public private key pair (http://msdn.microsoft.com/en-us/library/6f05ezxy.aspx) , being the public key certificate shipped within your program, so someone eavesdropping wont discover the password.

    Also, watch out for DDOS attacks. Measure the use of each webservice exposed for each client, and if the use rises above a given limit, block all incoming connections from the user, and from the user´s ip.

提交回复
热议问题