Go Back   Java Programming Forums > Java Standard Edition Programming Help > Java Networking


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 29-06-2009, 07:20 AM
Junior Member
 

Join Date: Jun 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
vikas is on a distinguished road
Default transferring and recieving encryted objects over a network

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
at reciever:

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));//

}
i knows i am wrong somewhere but i actually don't understand how to use
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
Reply With Quote Share this thread on Facebook
Sponsored Links
Java Training from DevelopIntelligence
  #2 (permalink)  
Old 07-07-2009, 04:00 PM
JavaPF's Avatar
mmm.. coffee
 
7 Highscores

Join Date: May 2008
Location: United Kingdom
Posts: 1,581
Thanks: 103
Thanked 93 Times in 86 Posts
JavaPF is someone you want to know!JavaPF is someone you want to know!JavaPF is someone you want to know!

I'm feeling Stressed
Default Re: transferring and recieving encryted objects over a network

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



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


100 most searched terms
Search Cloud
2d arraylist java actionlistener actionlistener in java actionlistener java addactionlistener addactionlistener in java addactionlistener java applications of oops could not create java virtual machine xp double format java double to int double to int java double to integer in java double to integer java eclipse shortcut keys eclipse tutorial for beginners exception in thread "awt-eventqueue-0" java.lang.outofmemoryerror: java heap space exception in thread "main" java.lang.nullpointerexception exception in thread "main" java.lang.outofmemoryerror: java heap space format double java get mouse position java java 2d arraylist java actionlistener java addactionlistener java convert list to map java double format java double formatting java double to int java double to integer java format double java forum java forums java get mouse position java list to map java mouse position java programming forum java programming forums java programming help java sendkeys java two dimensional arraylist java.lang.classformaterror: truncated class file java.lang.outofmemoryerror: java heap space java.util.arraylist jbutton actionlistener jtextarea font jtextfield font size jxl.read.biff.biffexception: unable to recognize ole stream programming mutators and generics two dimensional arraylist java writing ipod apps

All times are GMT. The time now is 08:10 AM.
Powered by vBulletin® Copyright ©2000-2009, Jelsoft Enterprises Ltd.