Results 1 to 2 of 2
  1. #1
    synclenovo is offline Member
    Join Date
    Mar 2009
    Rep Power

    Default How can i encrypt java class files

    Hi guys,,

    i joined this forum today to get an insight into the various genious people who are giving solutions here..

    i have a query
    1. How can i encrypt java class files.
    2. i used proguard to obfuscate then after processing a .pro file is generated, how do i run this file again to get the result.

    looking forward to suggestions..

  2. #2
    toadaly is offline Senior Member
    Join Date
    Jan 2009
    Rep Power


    I suggest using the built-in crypto package. Write an unencrypted class that the user launches, that requires them to enter the key, which then unencrupts the class files in memory as needed, and uses a cutomized ClassLoader to load them in.

    Of course, this is not entirely secure, since the data does then exists in memory in an unencrypted form, and someone clever with a trojan installed could feasibly extract it.

Similar Threads

  1. How to Encrypt content of txt file?
    By aRTx in forum New To Java
    Replies: 0
    Last Post: 03-25-2009, 10:26 AM
  2. encrypt a folder
    By subramanya2teja in forum Advanced Java
    Replies: 5
    Last Post: 03-20-2009, 12:27 AM
  3. multiple class files
    By nemesys571 in forum Eclipse
    Replies: 0
    Last Post: 06-26-2008, 01:58 AM
  4. conversion of java .class files to .java files
    By kotturupraveen in forum New To Java
    Replies: 2
    Last Post: 06-09-2008, 12:58 PM
  5. Replies: 2
    Last Post: 12-04-2007, 10:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts