• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Encrypting XML file

 
Sandy Yohan
Greenhorn
Posts: 4
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends,

I am new to this forum and have joined to gain knowledge from the industry experts.

I am working on a Swing based application where the database is in xml file. Now, since there is a possibility that the end-user may edit the xml file, i want to encrypt it in such a way that the user should not edit it.
So is there a way by which I can achieve this?

I am waiting for the help.
 
Tim Moores
Bartender
Posts: 2955
46
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's what XML Security is for: http://santuario.apache.org/
 
Sandy Yohan
Greenhorn
Posts: 4
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your reply Tim.
Can you please help with an example how i can achieve this?
I want the encrypted xml files to be read only through Java code.
 
Tim Moores
Bartender
Posts: 2955
46
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Santuario comes with example code. It is generally under-documented, so some reseach on XML-Encryption in general may help you get started with the samples.
 
Sandy Yohan
Greenhorn
Posts: 4
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, even I think that my research was not adequate on this subject.
Tim, I am encouraged to ask you, only if you don't mind, have you worked on XML encryption? I believe you have a lot more to share on this topic.
 
Tim Moores
Bartender
Posts: 2955
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you'll learn more if you read up on the subject some more, try to get some sample code running, and then come back here with questions. I'm not really motivated to write an article about it
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic