المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : c# server security Help me out!



C# Programming
05-20-2009, 02:40 PM
Hello i need some experimented coder opinion about how to securise a c# server

1. i have a c# server listening public incoming soket on my computer (XP Windows)
so i have a port forwarded (86.123.xxx.xxx:666) in my gateway .
user are then able send me data . but i need know what are the risk of a such conection for my computer.
is there a way to block potential hacker attack?.

2.this server share (using soket) the IP with of all user (like a p2p machine).
what i want is encrypt the IP(s) in a XML and share the IP.XML with users.
i feel like it will not be hard for a hacker decrypt the IP.xml.
how can i max secure this stuff.

3.I know from my old programme experience that haker can read my C# code so
(like one of them(a friend lukily) success get my Sql password/user if i put it into the code).
how to well secure my c# code and make it not readable and where to put sensible string
like http://MydistanteSite/login.php or code for sql user =toto pass=123.

i feel like c# totaly unsecure rigth now may be i should switch lange for include sensible data in a public machine?

any security advise welcome^^