Results 1 to 20 of 28
Thread: Secure
- 08-31-2010, 12:03 AM #1
Member
- Join Date
- Aug 2010
- Posts
- 5
- Rep Power
- 0
Secure
How would one secure a Java class?
As in; users download a class, used as a "script".
They can see the source files of the client,
where this script is added in, but I do not want them to be able to find the source file of this script.
Could there be a method in the Java API that enables the loading of scripts, from a database for a website, but does not save the class.
That way the users can't decompile the class file.Last edited by Rabrg; 08-31-2010 at 12:20 AM.
- 08-31-2010, 04:37 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
What you mean by use it as a script? Can you explain it bit more.
- 08-31-2010, 10:17 AM #3
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
You're too paranoid.
- 08-31-2010, 10:34 PM #4
Member
- Join Date
- Aug 2010
- Posts
- 5
- Rep Power
- 0
Tolls, I'm selling it. I don't want anyone to get it and give it to their friends, or post it somewhere.
Eranga, its a small program that is used for a larger one.
- 09-01-2010, 02:40 AM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 09-01-2010, 08:45 AM #6
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
And?
For starters your use of terminology doesn't fill me with confidence...classes as a "script"?
How are you deploying this?
Is it an Applet, Web Start, straight download/installer?
Whichever of the above, there will be class files downloaded onto the users machine, because otherwise it won't work.
If you knew Java well enough to write something good enough to warrant being paranoid about software theft then you would know that.
(Not you, Eranga...:))
- 09-01-2010, 12:07 PM #7
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
As you have several question to OP, I'm worried that what really means by scripts. No explanation at all.
- 09-01-2010, 09:55 PM #8
Member
- Join Date
- Aug 2010
- Posts
- 5
- Rep Power
- 0
Totally ignore the word 'script'. My thing is a small program.
- 09-02-2010, 08:45 AM #9
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
OK.
You have a small program...how do you distribute it?
How does it run?
That was the second question.
- 09-02-2010, 02:41 PM #10
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
And what kind of, desktop or a web based?
- 09-03-2010, 11:03 PM #11
Member
- Join Date
- Aug 2010
- Posts
- 5
- Rep Power
- 0
Desktop. /Ten chars
- 09-04-2010, 10:18 AM #12
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
You do realise you are essentially asking if it's possible to download and run a program without downloading the compiled code?
The only way to avoid having code on the client machine is by having the client simply as a front end that accesses a server that does all the work.
- 09-07-2010, 01:44 AM #13
Member
- Join Date
- Aug 2010
- Posts
- 5
- Rep Power
- 0
My friend just did it.
- 09-07-2010, 08:49 AM #14
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Then ask him how.
Because I'll guarantee that to run a desktop program on your system will involve the class files being there somewhere, unless you have created an exe in which case there will be code that is still decompileable to some extent.
- 09-08-2010, 03:54 PM #15
Senior Member
- Join Date
- Nov 2008
- Posts
- 286
- Rep Power
- 5
As @Tolls says, whatever fancy scheme you come up with, the class files will always be there in some shape or form at the end of the day.
The usual way to protect a Java program (which does it to some limited degree) is to use an obfuscator. This generally provides fairly poor protection on short programs and moderate protection against casual hackers on larger programs. At the end of the day, there's nothing you can do to prevent a determined enough person from reverse-engineering your program-- the idea is to make it difficult enough that for most people it's more viable to buy your program than hack it.Neil Coffey
Javamex - Java tutorials and performance info
- 09-08-2010, 04:30 PM #16
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Or provide something else of value other than the straight code.
- 09-08-2010, 06:33 PM #17
Member
- Join Date
- Sep 2010
- Posts
- 31
- Rep Power
- 0
Could you obfuscate it? Just a thought, I don't actually know how to though. =]
- 09-09-2010, 06:22 AM #18
Here is something very interesting, read it
obfuscator : Java Glossary
-Regards
- 09-09-2010, 08:37 AM #19
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
1, 2 and 3 are really quite important in that list...I suspect a lot of people suffer from 1.
:)
- 09-09-2010, 04:54 PM #20
Member
- Join Date
- Sep 2010
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
How Java is so secure than other?
By makpandian in forum New To JavaReplies: 4Last Post: 06-26-2009, 04:22 AM -
Secure FTP Wrapper 3.0.3
By Java Tip in forum Java SoftwareReplies: 0Last Post: 07-23-2008, 01:56 PM -
Secure FTP Wrapper 3.0.2
By Java Tip in forum Java SoftwareReplies: 0Last Post: 04-29-2008, 06:05 PM -
Secure FTP Applet 4.4
By vglass in forum Java SoftwareReplies: 0Last Post: 11-13-2007, 06:30 PM -
Secure FTP Factory 7.0
By vglass in forum Java SoftwareReplies: 0Last Post: 07-20-2007, 01:44 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks