0

I have a java applet on a page in this format:

In order for the application to work, these two parameters must be passed to it or else it won't allow the user to connect. Obviously, these parameters can be crawled/scraped which is something I want to stop. I know that if you don't want people to get something, don't put it on the internet; there has to be a way to do what I'm trying to accomplish.

I have tried using ioncube loader, html "obfuscators", and all of them are able to be decoded easily. The main goal is for this .jar to be able to get these parameters and allow access to my service via a web browser, but not have them visible to the public. Any idea on how I can do this?


Looked at reading manifest, seemed involved.

I don't know if this is "more automated" or "less involved", but my preference for handling runtime accessible version numbers is to put them into a property file that can be read via the classpath. This has the advantage that the Java source code that you compile is identical to the source code in your sandbox ...

I don't think Eclipse is relevant to the problem. Eclipse is an IDE not a build tool. Besides, you can easily configure it to do builds using Ant and your Ant build files.

4

2 に答える 2

-1

SHA 暗号化のようなものを両側 (Java Script とアプレット) に実装します。

Java Script side : http://www.movable-type.co.uk/scripts/sha256.html
Java Side (applet) : http://www.mkyong.com/java/java-sha-hashing-example/
于 2012-07-30T14:41:23.213 に答える
-1

それらを起動パラメータにしないでください。

代わりに、アプレットをロードすると、最初に別の Web サービスに接続して値を取得します。このように、暗号化を実装するために自由に使用できるさまざまな方法があり、それを HTML に入れる必要はありません。

これは、アプリケーションをモバイル デバイスなどに移植する場合にも役立ちます。

于 2012-07-30T14:44:21.163 に答える