|
||
|
|||
|
i had to transfer an image over network. i thought to first encrypt it.
at sender i am using: Java Code
Image image;//
Cipher c=Cipher.gentIstance("DES/CBC/KCS5padding");
SealedObject so=new SealedObject(i,c);
out.writeObject(so);//out is objectoutputstream object
Java Code
Image image;
Cipher c=Cipher.gentIstance("DES/CBC/KCS5padding");
if((c=(Cipher)in.readObject())!=null){ //in is objectinputstream
object
image=((Image)so.getObject(c));//
}
crypto package plz help and send me correct code
Last edited by JavaPF; 07-07-2009 at 08:25 AM. Reason: Please use [code] [/code] tags |
|
||||
|
Hello vikas, welcome to the forums.
Does this link help? An Introduction to Cryptography and the Java Cryptography Extension If not, please post your code and give us more information about the problem.
__________________
Don't forget to add syntax highlighted code tags around your code: [highlight=Java] code here [/highlight] Forum Tip: Add to peoples reputation ( ) by clicking the button on their useful posts.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Recycling objects from multiple classes that all descend from the same class | PhilTroy | Object Oriented Programming | 6 | 15-05-2009 10:06 PM |
| creating objects from file input and storing in arraylist | LabX | File I/O & Other I/O Streams | 4 | 14-05-2009 08:52 AM |