Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. How to secure an xml file?

How to secure an xml file?

Scheduled Pinned Locked Moved IT & Infrastructure
xmltutorialquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Affan Toor
    wrote on last edited by
    #1

    Hi! i want to lock an xml file so that no onw can open or read its contents in any scenario. Is there any way to set a password or lock its contants so that only my application can open and retrieve/stote data in it and no one else should have access rights to it. Thanks in advance.. Regards, Affan Ahmad Toor

    .................. QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!

    P N 2 Replies Last reply
    0
    • A Affan Toor

      Hi! i want to lock an xml file so that no onw can open or read its contents in any scenario. Is there any way to set a password or lock its contants so that only my application can open and retrieve/stote data in it and no one else should have access rights to it. Thanks in advance.. Regards, Affan Ahmad Toor

      .................. QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      Not in its native format, no. XML is merely text, so any text reader can open it up and view it.

      Deja View - the feeling that you've seen this post before.

      A 1 Reply Last reply
      0
      • P Pete OHanlon

        Not in its native format, no. XML is merely text, so any text reader can open it up and view it.

        Deja View - the feeling that you've seen this post before.

        A Offline
        A Offline
        Affan Toor
        wrote on last edited by
        #3

        Thanks for reply... Actually i am using xml file to store contact numbers which i am reading from mobile, and i dont want any body to see these numbers. is there any relevant solution to this issue? Regards, Affan Ahmad Toor

        .................. QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!

        P 1 Reply Last reply
        0
        • A Affan Toor

          Thanks for reply... Actually i am using xml file to store contact numbers which i am reading from mobile, and i dont want any body to see these numbers. is there any relevant solution to this issue? Regards, Affan Ahmad Toor

          .................. QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          The only way to do this would be to encrypt your XML so that it is no longer native format text.

          Deja View - the feeling that you've seen this post before.

          1 Reply Last reply
          0
          • A Affan Toor

            Hi! i want to lock an xml file so that no onw can open or read its contents in any scenario. Is there any way to set a password or lock its contants so that only my application can open and retrieve/stote data in it and no one else should have access rights to it. Thanks in advance.. Regards, Affan Ahmad Toor

            .................. QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!

            N Offline
            N Offline
            NRusso
            wrote on last edited by
            #5

            Affan Toor wrote:

            Is there any way to set a password or lock its contants so that only my application can open and retrieve/stote data in it and no one else should have access rights to it.

            I can't tell from your question if mean "can I do this in a programmatic fashion", or "can I do this at all", so I'll answer the general case. I use PGP encryption for all of my sensitive information. You simply install a PGP app, create your own PGP key pair, then encrypt files like they're going out of style. I keep a small PGP executable distro on my thumb drive, just in case I need to access my senstive information from a system that doesn't have PGP installed. Pro: You take that plain-text document and scramble it up nice and good so people without your key can only see cyphertext. The NSA might be able to decrypt it in a few hours, but your nosy neighbor will need a supercomputer and a lifetime. Con: You have to decrypt the file before you can use it. Furthermore, you're royally screwed if you lose your key-pair or forget your passphrase :)

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups