i had to transfer an image over network. i thought to first encrypt it.
at sender i am using:

Image image;//
Cipher c=Cipher.gentIstance("DES/CBC/KCS5padding");
 SealedObject so=new SealedObject(i,c);
out.writeObject(so);//out is objectoutputstream object

at reciever:

Image image;
Cipher c=Cipher.gentIstance("DES/CBC/KCS5padding");
if((c=(Cipher)in.readObject())!=null){          //in is objectinputstream
object
image=((Image)so.getObject(c));//
}




i knows i am wrong somewhere but i actually don't understand how to use
crypto package plz help and send me correct code

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to 
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to