AniDB Java Applet?

Want to help out? Need help accessing the AniDB API? This is the place to ask questions.

Moderator: AniDB

PetriW
AniDB Staff
Posts: 1522
Joined: Sat May 24, 2003 2:34 pm

Post by PetriW »

Furcube wrote:maybe rewriting AOM to Java would be better?
I assume you have no idea how much time this would take. ;)
kidan
Posts: 319
Joined: Thu Feb 13, 2003 9:13 pm
Location: .DE

Post by kidan »

nich wrote:
Rar wrote:Can't the small(?) proportion of non-windows users just use a windows emulator?[...]
I wouldn't mind if I could. But wine doesn't run aom (yet! PetriW said 0.6 should be much more wine friendly :D ). And I'm not willing to use WMware.
I just wanted to point out qemu. It's a decent free alternative to vmware, which runs without a kernelpatch in userspace: http://fabrice.bellard.free.fr/qemu/
Elberet
Posts: 778
Joined: Sat Jul 19, 2003 8:14 pm

Post by Elberet »

DonGato wrote:We're talking about a small app here. Not AoM replacement.
exp, the problem is that it has to be signed
Applet != Application !
An Applet runs enclosed in a Java VM in a browser and is heavily restricted by that sandbox. An Application runs in a Java VM outside of a browser but is not enclosed in a sandbox - it runs with the full privileges of the user account it's been started in.

The reason for this difference is simple: An applet can be forced on a user without the user being able to decide whether he wants to have it or not (as long as Java-Support in the browser is active) - visiting a website with an embedded applet suffices. An application, however, needs to be downloaded, stored in some folder and run manually or through an installer. In either way, it requires the user's attention and explicit command before it runs.

In that regard, a Java application is no different from any other binary program...
DonGato
Posts: 1296
Joined: Sun Nov 17, 2002 9:08 pm
Location: The Pampas, The land of the Gaucho!
Contact:

Post by DonGato »

My first line was related to the comment about doing AoM in Java and my comment about doing a small application (C++) with the requested capabilities. Not with the applet thing. :roll:

The second line was directed to exp. ;)

I already know the difference between an applet and an application. Image
Furcube
Posts: 9
Joined: Thu Aug 12, 2004 12:00 pm
Location: RU
Contact:

Post by Furcube »

Maybe simple md5 or pgp would be sufficient?
Cheking is more troublesome. But it must be easy for security maniacs :)
Elberet
Posts: 778
Joined: Sat Jul 19, 2003 8:14 pm

Post by Elberet »

@DonGato: Sorry, that was a misunderstanding on my end. ;)

@Furcube: No, applet signing works differently. Basically, the applet's classes are packed into a .jar file which includes a checksum and a digital signature. The user's webbrowser, or rather, the Java VM that browser uses, needs to be able to check the signature's authenticity which is done by looking for a x.509 certificate signed by a commonly well trusted certificate authority (such as Thawte, Verisign and other companies).

And that's the problem... Browsers only consider a certificate valid if they have the issuing root certificate authority's signing public certificate. If you sign the Java applet with a certificate you issued for yourself, the applet won't be run.
nich
Posts: 33
Joined: Sat Feb 08, 2003 12:38 am

Post by nich »

kidan wrote:[...]I just wanted to point out qemu. It's a decent free alternative to vmware, which runs without a kernelpatch in userspace: http://fabrice.bellard.free.fr/qemu/
It still implies in:
  1. Wasting space with a windows install (for a single program? no, thanks)
  2. Having a windows copy
Doesn't look like it's free, for me. :wink:
But I guess this is getting a bit off-topic. :oops:
DonGato
Posts: 1296
Joined: Sun Nov 17, 2002 9:08 pm
Location: The Pampas, The land of the Gaucho!
Contact:

Post by DonGato »

The purpose of this request was to have an easy tool everybody could use to hash their files and add them to AniDB without having to install anything, just by accessing the site and clicking over an option.

I don't think we need another AoM, unless exp wants to have a minimal application in C++ or Java (platform independent) to do such a task.
exp
Site Admin
Posts: 2438
Joined: Tue Oct 01, 2002 9:42 pm
Location: Nowhere

Post by exp »

DonGato wrote:exp, the problem is that it has to be signed (you need a certificate for that and it's $$$). And another problem is that we need to take in account the browser he is using as it seems it's different for each one. :?
wasn't there a file in the jre directory which one could edit to give the needed privileges to an applet?
what about a self-signed certificate which we make available for download and which the user has to add to his keystore before using the applet?
DonGato wrote:The purpose of this request was to have an easy tool everybody could use to hash their files and add them to AniDB without having to install anything, just by accessing the site and clicking over an option.
well, if some "simple" action by the user is required before the applet can be used (like installing the sun jre and maybe double clicking on some certificate file) that would also be ok, I'd say.

BYe!
EXP
DonGato
Posts: 1296
Joined: Sun Nov 17, 2002 9:08 pm
Location: The Pampas, The land of the Gaucho!
Contact:

Post by DonGato »

The policies file is only valid for local Java Applets (I will never understand why someone would want to use that).

I don't know if it works with self signed certificates but that would mean to have a CA and issue the signing certificate. If it's that ok with you we might want to do it. :/
Elberet
Posts: 778
Joined: Sat Jul 19, 2003 8:14 pm

Post by Elberet »

As far as I'm concerned, I'd go with a single, self-signed certificate for code signing and have users install that as a trusted certificate. Doing that is one thing, but installing someone's certificate as a root CA is something completely different and shouldn't be taken lightly.
exp
Site Admin
Posts: 2438
Joined: Tue Oct 01, 2002 9:42 pm
Location: Nowhere

Post by exp »

Elberet wrote:As far as I'm concerned, I'd go with a single, self-signed certificate for code signing and have users install that as a trusted certificate. Doing that is one thing, but installing someone's certificate as a root CA is something completely different and shouldn't be taken lightly.
well, I'd say we go with which ever way is easier for the user to "install".
I don't think it makes much difference from a security standpoint if you install an "untrusted" certificate as trusted or root cert.

BYe!
EXP
Elberet
Posts: 778
Joined: Sat Jul 19, 2003 8:14 pm

Post by Elberet »

It does. If you install it as a root certificate, the owner of the root cert could possibly issue certificates for other malicious reasons, such as fake webserver or email identities.
exp
Site Admin
Posts: 2438
Joined: Tue Oct 01, 2002 9:42 pm
Location: Nowhere

Post by exp »

Elberet wrote:It does. If you install it as a root certificate, the owner of the root cert could possibly issue certificates for other malicious reasons, such as fake webserver or email identities.
the applet could as well install such certificates once it has been executed by the user with filesystem access permissions.
I don't see a big difference there.

BYe!
EXP
Elberet
Posts: 778
Joined: Sat Jul 19, 2003 8:14 pm

Post by Elberet »

Well, yes - if the applet requests full filesystem privileges and the user grants them. However, an AniDB applet only needs read privileges, and if only those are granted, it couldn't install other certificates. ;)
Locked