An urgent question for JCE1.2

Alireza Entezari (entezari@hotmail.com)
Tue, 21 Jul 1998 11:35:54 PDT

From: "Alireza Entezari" <entezari@hotmail.com>
To: java-security@java.sun.com
Subject: An urgent question for JCE1.2
Date: Tue, 21 Jul 1998 11:35:54 PDT

Dear sirs;
I have downloaded the JCE1.2 for my JD1.2beta3 version.
I am trying to write a simple program that does encryption.
When I tried to run the program it didn't go through properly.

1. Your example in the API_Users_Guide just before the Diffie Hellman
examples, the example that is encrypting "This is a simple text" and
again decrypting it to the cleartext1 array and I just printed that
cleartext1 out, but at the runtime only garbage is coming out of that
code: [B@f84e34d2 or something like that.

2. Almost the same problem with the CipherInputStream and
CipherOutputStream; they never worked properly. The only time that they
seemed to work(not even properly) was that I was reading byte by byte
using Cipher.read() method. the bytes that I was reading were totally
non-sense.

Are these steps that I've followed the proper steps that I should have
done?

-I downloaded JCE1.2
- I unpacked the zip file it was 242K not 246K
- I set the classpath to the proper one, otherwise it wouldn't compile.
- I registered the provider dynamically

in the doc directory there are apidoc and guide which has only
api_users_guide
in the lib directory there is only one JAR file

I would highly appreciate A PROMPT REPLY.
It is totally helpful if I accomplish this task with in 2 days
otherwise, a big project will be done in C++ instead of Java, so please
help me ;-)

With Regards

Reza Entezari
Canada

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com