# Problem in encrypting using Applet....

M Sriram (sriram_m@lgsi.co.in)
Wed, 28 Apr 1999 17:29:59 +0530

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Kevin McConville: "Need Help Getting the API"
- Previous message: Jeff Nisewanger: "Re: Acess to certificate extensions in X.509 certificates?"

    Date: Wed, 28 Apr 1999 17:29:59 +0530

    From: "M Sriram" <sriram_m@lgsi.co.in>

    To: users@cryptix.org, java-security@java.sun.com

    Subject: Problem in encrypting using Applet....

Hi All,

I have an applet which creates "IDEA" key in the applet and encrypts the
data.

Browser Machine Environment :

Java1.1.6, Cryptix3.0.3, Netscape Communicator 4.5

Note: I have the entry in jdk\lib\security\java.security

# Added by Cryptix V3 installation program:
security.provider.2=cryptix.provider.Cryptix

If i load this applet from the local machine with File:// protocal this
works fine.

If i load this applet from the local machine with http:// protocol i get
the following error
I have a problem in executing the applet which generates the "IDEA"
Algorithm from
"Cryptix".
If i execute this statement cipher.getInstances("IDEA","Cryptix").

Java(TM) Plug-inUsing JRE version 1.1.7B
User home directory = C:\WINDOWS
Proxy Configuration: no proxy

sun.applet.AppletSecurityException: checksecurityaccess at
sun.applet.AppletSecurity.checkSecurityAccess(AppletSecurity.java:757)
at
java.security.Security.check(Security.java:496) at
java.security.Security.getProvider(Compiled Code) at
java.security.IJCE.getProviderInternal(IJCE.java:665) at
java.security.IJCE.getClassCandidate(Compiled Code) at
java.security.IJCE.getImplementationClass(IJCE.java:396) at
java.security.IJCE.getImplementation(IJCE.java:353) at
java.security.KeyGenerator.getInstance(KeyGenerator.java:140)
at Password.encryptData(Compiled Code) at
Password.action(Password.java:136) at
java.awt.Component.handleEvent(Compiled Code) at
java.awt.Component.postEvent(Compiled Code) at
java.awt.Component.postEvent(Compiled Code) at
java.awt.Component.postEvent(Compiled Code) at
java.awt.Component.dispatchEventImpl(Compiled Code) at
java.awt.Component.dispatchEvent(Compiled Code) at
java.awt.EventDispatchThread.run(Compiled Code)

If i execute this statement cipher.getInstances("IDEA").

Java(TM) Plug-in

Using JRE version 1.1.7B

User home directory = C:\WINDOWS

Proxy Configuration: no proxy

java.security.NoSuchAlgorithmException: algorithm IDEA is not available.

at java.security.IJCE.getClassCandidate(Compiled Code)

at java.security.IJCE.getImplementationClass(IJCE.java:396)

at java.security.IJCE.getImplementation(IJCE.java:353)

at java.security.IJCE.getImplementation(IJCE.java:327)

at Password.encryptData(Compiled Code)

at Password.action(Password.java:136)

at java.awt.Component.handleEvent(Compiled Code)

at java.awt.Component.postEvent(Compiled Code)

at java.awt.Component.postEvent(Compiled Code)

at java.awt.Component.postEvent(Compiled Code)

at java.awt.Component.dispatchEventImpl(Compiled Code)

at java.awt.Component.dispatchEvent(Compiled Code)

at java.awt.EventDispatchThread.run(Compiled Code)

This problem is seriously hampering our work is there any one who could
throw some light on this problem.

We tried with signing the JAR. (Self signed JAR) even the problem is not
solved.
1. Are the self signed jar's are ignored by IE and Netscape?
2. Can we assume that once jar is signed in java1.1.6 the applet has all
the permissions on the browser machine?
3. Is there any way to know from the browser, the codes signature is
understood by the browser?

Eagerly waiting to listen from you guys out there.

Regards ...

Sriram.M

- Next message: Kevin McConville: "Need Help Getting the API"
- Previous message: Jeff Nisewanger: "Re: Acess to certificate extensions in X.509 certificates?"