How to secure an xml file?
-
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!
-
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!
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.
-
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.
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!
-
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!
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.
-
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!
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 :)