Results 1 to 5 of 5

Thread: How to hide source code in JAVA

  1. #1
    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.

  2. #2
    Join Date
    May 2008
    Posts
    2,389

    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.

  3. #3
    Join Date
    May 2008
    Posts
    2,297

    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.

  4. #4
    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?

  5. #5
    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

Similar Threads

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,005,794.32475 seconds with 17 queries