Click here to Skip to main content
16,009,057 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi sir ,

Is C# .NET More Secure Than Java?
and what is the meaning of security in any programming language.

Thanks & Regards
sairam bhat
Posted

It will create a debate. There is no satisfying answer, it differs from person to person based on requirements and platform.

Ref:http://simpleprogrammer.com/2010/02/12/c-vs-java-part-3-the-frameworks-network-reflection-security-text/[^]
Security
Both C# and Java frameworks are vast in areas of security. Unfortunately, both are fairly complex and difficult to use or understand. Couple this complexity with the changing demands of security and theories about security, spread across multiple platforms and deployment situations, and you get a mess.
Both choices have similar functionality in cryptography. Both use provider models for authentication and support a wide variety of authentication services, including user defined services. Both allow for role based security through a provider model.
The differences are what you would expect considering the language and framework targets. C# and .NET are better equipped in a Windows environment and allow very easy use of windows authentication schemes and active directory. Java is more flexible, allowing easier interoperability with multiple operating systems and authentication methods, but at the cost of a slightly more complex and burdensome API. C# and .NET allow the usage of Code Access Security (CAS), which is a very complex concept that basically allows individual level rights to be applied to sections of code controlled from the machine configuration. Unfortunately, this turned out to be overly complex and something that almost no one used correctly. For that reason Microsoft is getting rid of the concept of CAS in .NET framework 4.0.
I really don’t like either choice for Security at this point. Both are confusing, and there is no clear-cut best practices for applying security to the application. I think both frameworks have a way to go to make security something that is very easy to implement and understand. We will probably see a large amount of churn in this area, because of the changing needs of security, as we transition from a primarily web based application model to this mixed model, using applications that are able to run outside of the browser but start their life inside, and hybrid systems utilizing both.

Or just google[^] it.
 
Share this answer
 
Hope this[^] might help you.
 
Share this answer
 
Comments
Wayne Gaylard 29-Mar-11 3:19am    
I think you should read the links that you provide. On many occasions i have found the links that you post to be quite irrelevant to the question. I never down voted you, although I think you deserve it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900