[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



        We store the private key that we generate of a password of this way:

PBEKey pbekey=new PBEKey("password");
 FileOutputStream ostream = new FileOutputStream("t1.tmp");
 ObjectOutputStream p = new ObjectOutputStream(ostream);
 Cipher pbeCipher = Cipher.getInstance("DES/ECB/PKCS5Padding");

        In the API'S we have read that the SealedObject can be used for
protecting the confidentiality of a Serializable object but we don´t
know how to use it. Can you explain us more?

        On the other hand we have a problem if the password don't have 8 bytes.
The error is:

                Key must be RAW and 8 bytes!

        how can we control it?

        Thank you for your help.

        Best Regast

        Sonia Martinez & Susana Cristobal

Mailinglist-archive at http://jcewww.iaik.tu-graz.ac.at/mailarchive/iaik-jce/maillist.html

To unsubscribe send an email to listserv@iaik.tu-graz.ac.at with the folowing content: UNSUBSCRIBE iaik-jce