Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 11-05-2009
Member
 
Join Date: May 2008
Posts: 923
How to hide source code in JAVA

I created a JAVA application, I created a jar with eclipse. My problem is that the user, with the help of winrar software, is able to view the source code of the jar.

Can I resist it? I would like to know how to hide my source code. I have my login, password and my FTP host and it is completely secured.
Reply With Quote
  #2  
Old 11-05-2009
Member
 
Join Date: May 2008
Posts: 2,383
Re: How to hide source code in JAVA

According to me, the only best way is to encrypt the data and it. Of course, the encryption key will be hard in your code. However the only problem in this is that if the user decrypts the bytecode, he/she could find the key and then find the login/password.
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
  #3  
Old 11-05-2009
Member
 
Join Date: May 2008
Posts: 2,293
Re: How to hide source code in JAVA

Actually, this happens because the JAR file is nothing but a good old ZIP and this is reason why any archiver such as WinRar can open them very easily. Generally jar file's contents can be governed by various specifications/archivers.
Reply With Quote
  #4  
Old 11-05-2009
XSI XSI is offline
Member
 
Join Date: May 2008
Posts: 271
Re: How to hide source code in JAVA

Quote:
Originally Posted by opaper View Post
According to me, the only best way is to encrypt the data and it. Of course, the encryption key will be hard in your code. However the only problem in this is that if the user decrypts the bytecode, he/she could find the key and then find the login/password.
I agree with this because without human intervention (like entering the password) there is no other way to secure the application. You can not ask the user to enter a password for your connection?
Reply With Quote
  #5  
Old 11-05-2009
Member
 
Join Date: Feb 2008
Posts: 194
Re: How to hide source code in JAVA

Why don't you do something like create another class and inherit all everything in it. Just ask the login, password and do the operations as per your requirement using the base class. You don't need to break anything, just a bytecode would be sufficient to invoke the right class and ask him to leave the password.

Duration of operation: 5 minutes to 1 hour, depending on the complexity of the code
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to hide source code in JAVA"
Thread Thread Starter Forum Replies Last Post
can i get c to java converter source code aaron_geo Software Development 2 19-03-2011 11:06 AM
Where to download Java EE 5 sdk source code Lohitaksha Software Development 6 24-07-2010 12:02 AM
Java Source Code From Compiled Binary CLASS Files Layton Windows Software 4 20-03-2010 08:54 PM
Source Code to get all the available time zones with using java samualres Software Development 3 30-11-2009 10:20 AM
Hide the source code of a Web page Antonio00 Software Development 2 17-09-2008 06:23 PM


All times are GMT +5.5. The time now is 08:34 AM.