This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 41182
    
  45
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.


Ping & DNS - my free Android networking tools app
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....
 
Similar Threads
each time encryption gives different result......??
XML security doubt: Public key cryptography
How encrpyt all files on web server so decryptable by all users' keys?
problem in XOR of private key using public key....
How to read from a text file, a buffer at a time (specific bytes at a time)?