|
First, good job by thinking about security before beginning to code. If more people did that, you wouldn't be asking your question. I code in PHP only (server side langs). I have also taken a lot of time to research hacking methods to help ensure that my programs don't open holes on the server. I highly recommend that whichever language you use, that you first research common methods of hacking the language and security recommendations so that your code -- again, whichever language you use -- is as secure as possible.
That said, there are no unhackable programs/systems of any non-trivial degree of complexity. With enough time and resources, just about anything short of OTP encryption can be hacked. And, don't forget that it's generally-speaking far easier to social engineer than hack well-written codeand your only protection against that is well-trained users.
There seems to be this common perception that hacking open source code is easier than closed source. While in certain cases that may be true, I suggest that it's not true in general. Programs have been written which perform automated attacks against systems searching for the characteristics of security flaws so, so long as the flaw exists, it can usually be discovered. The advantage open source has is that educated users of the source will point out, and possibly correct, obvious flaws, so as the saying goes "2 heads are better than 1."
|