File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes problem in encryption of encrypted xml file.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "problem in encryption of encrypted xml file...." Watch "problem in encryption of encrypted xml file...." New topic
Author

problem in encryption of encrypted xml file....

sachin kataria
Ranch Hand

Joined: Mar 27, 2006
Posts: 45
hi,
i have one encrypted xml file which is encrypted using public key...
now i want to add some data in that encrypted xml file..
and again i want to encrypt that using another public key...

so, can anybody tell me how i can add text in encrypted xml file....
so, i can again encrypt that using public key..
pls, help me......
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42946
    
  69
That can be done in three steps: decrypt the XML file, append to the file using your favorite XMl API, encrypt the file. But this seems too obvious, so I think I'm missing something in your question. Are you possibly asking whether you can add to the file without decrypting it? That would be impossible.
Ashish Chopra
Ranch Hand

Joined: Nov 30, 2004
Posts: 134
let me answer in steps..

i have one encrypted xml file which is encrypted using public key...
now i want to add some data in that encrypted xml file..


To add any data in an encrypted file, you need to decrypt it first. Now as you are talking of encryption with a public key, you need to have the private key for decryption.
and again i want to encrypt that using another public key...

Once you have decrypted the file, edit it, add the data and then encrypt it using your public key

Hope this helps!


Quis Custodiet Ipsos Custodes<br /> <br />My blog: <a href="http://www.coherentrambling.blogspot.com" target="_blank" rel="nofollow">http://www.coherentrambling.blogspot.com</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in encryption of encrypted xml file....