problem creating Cipher object in getInstance
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   deepali_mistry
Posted On:   Tuesday, March 12, 2002 07:06 PM

Hi all, Can anyone please help me with this? I am using jdk1.4 which has jce. I have put jce.jar jars in classpath. When I create Cipher object like Cipher itsocipher1 = Cipher.getInstance("DES"); it compiles fine but when I exicute it get following error java.lang.NoSuchMethodError at javax.crypto.SunJCE_d.a(DashoA6275) at javax.crypto.SunJCE_d.a(DashoA6275) at javax.crypto.SunJCE_d.verify(DashoA6275) at javax.crypto.SunJCE_b.f(DashoA6275) at javax.crypto.SunJCE_b. (DashoA6275) at javax.crypto.Cipher.getInstance(DashoA6275) at EncryptDecrypt.main(EncryptDecrypt.java:26) Please Guide. Thanks.    More>>

Hi all,
Can anyone please help me with this?

I am using jdk1.4 which has jce. I have put jce.jar jars in classpath. When I create Cipher object like
Cipher itsocipher1 = Cipher.getInstance("DES");

it compiles fine but when I exicute it

get following error
java.lang.NoSuchMethodError
at javax.crypto.SunJCE_d.a(DashoA6275)
at javax.crypto.SunJCE_d.a(DashoA6275)
at javax.crypto.SunJCE_d.verify(DashoA6275)
at javax.crypto.SunJCE_b.f(DashoA6275)
at javax.crypto.SunJCE_b. (DashoA6275)
at javax.crypto.Cipher.getInstance(DashoA6275)
at EncryptDecrypt.main(EncryptDecrypt.java:26)

Please Guide.
Thanks.

   <<Less

Re: problem creating Cipher object in getInstance

Posted By:   Deepa_Raghuraman  
Posted On:   Wednesday, March 13, 2002 04:39 AM

hi deepali,

try out this

Cipher.getInstance("DES/ECB/PKCSPadding")

it might be helpfull

regards
Deepa Raghuraman
About | Sitemap | Contact