• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Encrypting XML file

 
Greenhorn
Posts: 4
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 7582
176
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Saloon Keeper
Posts: 7582
176
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Saloon Keeper
Posts: 7582
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic