I've got a database login on a desktop application made in C#.
To check if the user exists, I do a WHERE
clause and get the row returned. If row is returned...then user exists.
My problem is pack sniffers can see the strings being returned. They are encrypted and such but some people could use a auto mated response to fool the application into thinking it was right.
Is there a way to hide my DB stuff from packet sniffers?
Yes - you can do that by using an encrypted connection (SSL certificate based)... for details and some sample configuration/code see: