Results 1 to 12 of 12
Thread: Why java is very secure
- 09-07-2010, 07:22 AM #1
Member
- Join Date
- Aug 2010
- Posts
- 31
- Rep Power
- 0
- 09-07-2010, 07:28 AM #2
I wouldn't really call Java secure. The data is compiled into .class files which can be read by a decompiler. If you open a .class file with Notepad, you can actually see names of classes, methods, and variables (depending on the compiler). With the right decompiler and enough time on your hands, you can get pretty close to a workable source.
Java is more secure than a language such as Python, where the source to your program is immediately provided. No Python program can be run without the source code present on the user's computer. In this particular way, Java is more secure as the .class files are somewhat obfuscated from a user's perspective.
However, Java is not as secure as something like C++ which is compiled directly into native bytecode for the processor. Even then, you can use a reverse engineering process to boil it down to ASM and get parts of the source.
In short, anything done by software can be undone by software--that is, what your compiler does (turns your source into actual code) can be reversed (turned back into a source).
- 09-07-2010, 08:46 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
I've two reasons related to that.
1. Java does not allocate direct pointers to memory, like C/C++. This makes it impossible to accidentally reference memory that belongs to other programs or the kernel. If you know more about memory management then you can see how this is really useful.
2. The Java compiler catches more compile-time errors; other languages will compile programs that produce unpredictable results. Specially with the C/C++, like int value start over once the upper limit is exceeded.
- 09-07-2010, 09:08 AM #4
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Define "secure".
To be honest I doubt it's anymore secure (depnding on your definition of secure) than any other language...
- 09-07-2010, 09:47 AM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
For me, defining the how secure a language is depend on each other, in such a way that how and for what it is using. Points just came to my mind relevant to the title here, more like features I like to work on with than another language. It's all about the comparisons, and depends on me. I guess same for others too.
- 09-07-2010, 10:33 AM #6
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
That was mainly aimed at the OP, since it was their question.
"secure" can mean anything...and to me security is to do with authentication and authorisation, which is why I say it is no different to almost any other language.
Pointers and memory management are, to me, to do with likely reliability of the end product, as well as maintainability.
- 09-08-2010, 05:19 AM #7
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
True, that's why I think that most of the time, what we think as secure stuff more likely the features where some languages make more reliable than the other.
But in general those kind of points treated as secure features.
- 09-08-2010, 07:12 AM #8
I think he's referring to security of the code (i.e. how easily it can be read by a third party). I suppose we need the OP to clarify what exactly he means by "security" before speculating further...
- 09-08-2010, 10:53 AM #9
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
But no response from OP after starting the thread. ;)
- 09-08-2010, 10:54 AM #10
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Anyway, as I said earlier security is kind of debating topic in many cases. We can see what OP really thinks of it and move with further discussion.
- 09-08-2010, 11:37 AM #11
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
I expect there's a cross post on some other site somewhere...
- 09-08-2010, 11:57 AM #12
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Could be. And if so it's discourage to comment here again.
Similar Threads
-
Secure
By Rabrg in forum Advanced JavaReplies: 27Last Post: 09-10-2010, 09:04 AM -
How Java is so secure than other?
By makpandian in forum New To JavaReplies: 4Last Post: 06-26-2009, 04:22 AM -
data loss in the secure file transfer using java
By antony75 in forum NetworkingReplies: 4Last Post: 02-09-2009, 06:56 AM -
Secure FTP Wrapper 3.0.3
By Java Tip in forum Java SoftwareReplies: 0Last Post: 07-23-2008, 01:56 PM -
using Java to access a secure webpage, Exception occurred: Connection timed out
By toby in forum Enterprise JavaBeans (EJB)Replies: 1Last Post: 08-07-2007, 06:03 AM


LinkBack URL
About LinkBacks

Bookmarks